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.

Kubeconfig Logo

CI Coverage License: MIT pub


A library that simplifies the management of kubeconfig files. It offers a bunch of features, such as validating, merging, and converting kubeconfig files, to ensure that you have a consistent and optimized configuration for accessing multiple Kubernetes clusters.

Developed with 💙 by Kubeec Team

Features ✨ #

  • Validate: Check the syntax and structure of kubeconfig files for common errors or inconsistencies.
  • Convert: Convert between different formats (YAML to JSON or JSON to YAML).
  • Merge: Combine multiple kubeconfig files into a single file, preserving context and cluster information, and avoiding duplication.

Installation 💻 #

For quick start, please use this package as a library

With Dart:

dart pub add kubeconfig

With Flutter:

flutter pub add kubeconfig

For more information, please visit the pub.dev

Quick Start 🚀 #

Validating a kubeconfig file:

import 'dart:io';
import 'package:kubeconfig/kubeconfig.dart';

void main() {
  final kubeconfigYaml = await File('kube/config.yaml').readAsString();
  final kubeconfig = Kubeconfig.fromYaml(kubeconfigYaml);
  final validationResult = kubeconfig.validate();
}

Examples 📋 #

dart example/example.dart
dart example/validate.dart
dart example/convert.dart
dart example/merge.dart
4
likes
160
points
112
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