kubeconfig

Last updated:

0 purchases

kubeconfig Image
kubeconfig Images
Add to Cart

Description:

kubeconfig

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
copied to clipboard
With Flutter:
flutter pub add kubeconfig
copied to clipboard
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();
}
copied to clipboard
Examples 📋 #
dart example/example.dart
copied to clipboard

Validate: example/validate.dart
Convert: example/convert.dart
Merge: example/merge.dart

dart example/validate.dart
dart example/convert.dart
dart example/merge.dart
copied to clipboard

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.