New ask Hacker News story: Testing of K8s resources using Raku and Sparrow

Testing of K8s resources using Raku and Sparrow
3 by melezhik | 0 comments on Hacker News.
Hi! I've recently added 2 new plugins to validate k8s resources: deployments statefull sets config maps secrets They are written on Raku and have Raku API. For example, to verify k8s deployment and access it's entries: my %data = task-run "dpl check", "k8s-deployment-check" %( name => "animals", namespace => "pets", cat => %( command => "/usr/bin/cat", args => [ "eat", "milk", "fish" ], env => [ "ENABLE_LOGGING" ] volume-mounts => { foo-bar => "/opt/foo/bar", } ) ); # Access k8s resource say %data.keys.perl; # ("env", "image", "imagePullPolicy", "command", # "terminationMessagePolicy", "name", "envFrom", "ports", # "__data__", # "args", # "terminationMessagePath", "livenessProbe", "resources", "volumeMounts").Seq say %data.command; Find more information here: https://ift.tt/3znZkdc https://ift.tt/3BhETiQ I'd like to hear if this useful for others. Thanks

Comments