diff --git a/README.md b/README.md index 475ae537..370d00e9 100644 --- a/README.md +++ b/README.md @@ -144,21 +144,21 @@ pods = client.api("v1").resource("pods", namespace: "default").delete_collection ```crystal pod = K8S::Api::Core::V1::Pod.new( - metadata: ::K8S::ObjectMeta.new( - name: name.nil? ? random_string(10) : name, + metadata: { + name: "pod-name", namespace: "default", labels: { "app" => "kube-client-test", }, - ), - spec: K8S::Api::Core::V1::PodSpec.new( + }, + spec: { containers: [ - K8S::Api::Core::V1::Container.new( + { name: "test", image: "test", - ), + }, ], - ) + } ) logger.info "Create pod=#{pod.metadata!.name} in namespace=#{pod.metadata!.namespace}" diff --git a/shard.yml b/shard.yml index b757186f..216fcde2 100644 --- a/shard.yml +++ b/shard.yml @@ -5,7 +5,7 @@ authors: repository: "https://github.com/spoved/kube-client.cr" license: MIT -version: 0.3.2 +version: 0.4.0 crystal: ">= 1.2.2, < 2.0.0" dependencies: diff --git a/src/kube-client/version.cr b/src/kube-client/version.cr index f220e7f9..cfab9720 100644 --- a/src/kube-client/version.cr +++ b/src/kube-client/version.cr @@ -1,5 +1,5 @@ module Kube class Client - VERSION = "0.3.2" + VERSION = "0.4.0" end end