Releases: spoved/k8s.cr
Releases · spoved/k8s.cr
v0.1.11
v0.1.10
v0.1.9
v0.1.8
v0.1.7
v0.1.6
Full Changelog: v0.1.5...v0.1.6
Some minor fixes. Biggest change is that k8s_new_resource
will throw a K8S::Error::UnknownResource
error now that includes the K8S::Kubernetes::Resource::Generic
, so that the object can be recovered and used if you are ok with it.
v0.1.5
Full Changelog: v0.1.4...v0.1.5
v0.1.4
Full Changelog: v0.1.3...v0.1.4
v0.1.3
Full Changelog: v0.1.2...v0.1.3
add ability to pass snakecase keys to objects via hash
example:
::K8S::Kubernetes::Resource.define_object("ImageSpec", "K8S::Types", [
{name: "name", kind: String, nilable: false},
{name: "pull_policy", kind: String, nilable: true, key: "imagePullPolicy"},
{name: "pull_secret", kind: String, nilable: true, key: "imagePullSecret"},
])
image = K8S::Types::ImageSpec.new(
name: "nginx:latest",
pull_policy: "IfNotPresent",
)
# is the same as:
image = K8S::Types::ImageSpec.new(
name: "nginx:latest",
imagePullPolicy: "IfNotPresent",
)