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
4
likes
160
points
126
downloads
screenshot

Publisher

verified publisherfatihsever.com

Weekly Downloads

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