kubeconfig 1.0.3 copy "kubeconfig: ^1.0.3" to clipboard
kubeconfig: ^1.0.3 copied to clipboard

Kubeconfig library for Dart. Validate, convert, or merge kubeconfig files.

example/example.dart

import 'dart:async';
import 'dart:io';

import 'package:kubeconfig/kubeconfig.dart';

Future<void> main() async {
  final kubeconfigYaml =
      await File('test/files/invalid_current_context.yaml').readAsString();
  final kubeconfig = Kubeconfig.fromYaml(kubeconfigYaml);
  final validationResult = kubeconfig.validate();

  if (validationResult.code != ValidationCode.valid) {
    print('${validationResult.description}');
  }
}

// ignore_for_file: avoid_print
3
likes
140
pub points
61%
popularity
screenshot

Publisher

verified publisherfatihsever.com

Kubeconfig library for Dart. Validate, convert, or merge kubeconfig files.

Repository (GitHub)
View/report issues

Topics

#kubernetes #kubeconfig

Documentation

API reference

License

MIT (LICENSE)

Dependencies

collection, copy_with_extension, equatable, json_annotation, meta, yaml

More

Packages that depend on kubeconfig