kuberneteslib 0.3.4 kuberneteslib: ^0.3.4 copied to clipboard
A library that implements the Kubernetes API natively. It is written using the direct specs and currently covers most of the V1 Core, Apps, and Batch resources.
example/kuberneteslib_example.dart
import 'package:kuberneteslib/kuberneteslib.dart';
main() async {
final config = Config.fromYaml('<kubernetes cluster yaml>');
final auth = ClusterAuth.fromConfig(config!);
await auth.ensureInitialization();
final resources = Resource.list(
auth: auth,
resourceKind: 'pod',
);
}