mirror of
https://github.com/kubernetes/client-go.git
synced 2025-07-18 17:21:23 +00:00
Merge pull request #72494 from johanneswuerbach/rm-rollback-example
Remove outdated rollback step from CRUD deployment example Kubernetes-commit: a9f40b50f04b55c3e9f3d92ea05b3e36a80b3992
This commit is contained in:
commit
7ab9b6348c
102
Godeps/Godeps.json
generated
102
Godeps/Godeps.json
generated
@ -408,207 +408,207 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/api/apitesting",
|
"ImportPath": "k8s.io/apimachinery/pkg/api/apitesting",
|
||||||
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
|
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/api/apitesting/fuzzer",
|
"ImportPath": "k8s.io/apimachinery/pkg/api/apitesting/fuzzer",
|
||||||
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
|
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/api/apitesting/roundtrip",
|
"ImportPath": "k8s.io/apimachinery/pkg/api/apitesting/roundtrip",
|
||||||
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
|
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/api/equality",
|
"ImportPath": "k8s.io/apimachinery/pkg/api/equality",
|
||||||
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
|
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/api/errors",
|
"ImportPath": "k8s.io/apimachinery/pkg/api/errors",
|
||||||
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
|
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/api/meta",
|
"ImportPath": "k8s.io/apimachinery/pkg/api/meta",
|
||||||
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
|
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/api/resource",
|
"ImportPath": "k8s.io/apimachinery/pkg/api/resource",
|
||||||
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
|
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/fuzzer",
|
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/fuzzer",
|
||||||
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
|
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/internalversion",
|
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/internalversion",
|
||||||
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
|
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/v1",
|
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/v1",
|
||||||
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
|
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured",
|
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured",
|
||||||
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
|
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/v1beta1",
|
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/v1beta1",
|
||||||
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
|
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/conversion",
|
"ImportPath": "k8s.io/apimachinery/pkg/conversion",
|
||||||
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
|
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/conversion/queryparams",
|
"ImportPath": "k8s.io/apimachinery/pkg/conversion/queryparams",
|
||||||
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
|
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/fields",
|
"ImportPath": "k8s.io/apimachinery/pkg/fields",
|
||||||
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
|
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/labels",
|
"ImportPath": "k8s.io/apimachinery/pkg/labels",
|
||||||
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
|
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/runtime",
|
"ImportPath": "k8s.io/apimachinery/pkg/runtime",
|
||||||
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
|
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/runtime/schema",
|
"ImportPath": "k8s.io/apimachinery/pkg/runtime/schema",
|
||||||
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
|
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer",
|
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer",
|
||||||
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
|
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/json",
|
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/json",
|
||||||
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
|
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/protobuf",
|
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/protobuf",
|
||||||
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
|
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/recognizer",
|
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/recognizer",
|
||||||
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
|
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/streaming",
|
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/streaming",
|
||||||
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
|
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/versioning",
|
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/versioning",
|
||||||
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
|
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/selection",
|
"ImportPath": "k8s.io/apimachinery/pkg/selection",
|
||||||
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
|
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/types",
|
"ImportPath": "k8s.io/apimachinery/pkg/types",
|
||||||
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
|
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/util/cache",
|
"ImportPath": "k8s.io/apimachinery/pkg/util/cache",
|
||||||
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
|
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/util/clock",
|
"ImportPath": "k8s.io/apimachinery/pkg/util/clock",
|
||||||
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
|
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/util/diff",
|
"ImportPath": "k8s.io/apimachinery/pkg/util/diff",
|
||||||
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
|
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/util/errors",
|
"ImportPath": "k8s.io/apimachinery/pkg/util/errors",
|
||||||
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
|
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/util/framer",
|
"ImportPath": "k8s.io/apimachinery/pkg/util/framer",
|
||||||
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
|
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/util/httpstream",
|
"ImportPath": "k8s.io/apimachinery/pkg/util/httpstream",
|
||||||
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
|
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/util/httpstream/spdy",
|
"ImportPath": "k8s.io/apimachinery/pkg/util/httpstream/spdy",
|
||||||
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
|
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/util/intstr",
|
"ImportPath": "k8s.io/apimachinery/pkg/util/intstr",
|
||||||
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
|
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/util/json",
|
"ImportPath": "k8s.io/apimachinery/pkg/util/json",
|
||||||
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
|
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/util/mergepatch",
|
"ImportPath": "k8s.io/apimachinery/pkg/util/mergepatch",
|
||||||
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
|
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/util/naming",
|
"ImportPath": "k8s.io/apimachinery/pkg/util/naming",
|
||||||
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
|
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/util/net",
|
"ImportPath": "k8s.io/apimachinery/pkg/util/net",
|
||||||
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
|
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/util/remotecommand",
|
"ImportPath": "k8s.io/apimachinery/pkg/util/remotecommand",
|
||||||
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
|
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/util/runtime",
|
"ImportPath": "k8s.io/apimachinery/pkg/util/runtime",
|
||||||
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
|
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/util/sets",
|
"ImportPath": "k8s.io/apimachinery/pkg/util/sets",
|
||||||
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
|
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/util/strategicpatch",
|
"ImportPath": "k8s.io/apimachinery/pkg/util/strategicpatch",
|
||||||
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
|
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/util/validation",
|
"ImportPath": "k8s.io/apimachinery/pkg/util/validation",
|
||||||
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
|
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/util/validation/field",
|
"ImportPath": "k8s.io/apimachinery/pkg/util/validation/field",
|
||||||
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
|
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/util/wait",
|
"ImportPath": "k8s.io/apimachinery/pkg/util/wait",
|
||||||
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
|
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/util/yaml",
|
"ImportPath": "k8s.io/apimachinery/pkg/util/yaml",
|
||||||
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
|
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/version",
|
"ImportPath": "k8s.io/apimachinery/pkg/version",
|
||||||
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
|
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/watch",
|
"ImportPath": "k8s.io/apimachinery/pkg/watch",
|
||||||
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
|
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/third_party/forked/golang/json",
|
"ImportPath": "k8s.io/apimachinery/third_party/forked/golang/json",
|
||||||
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
|
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/third_party/forked/golang/netutil",
|
"ImportPath": "k8s.io/apimachinery/third_party/forked/golang/netutil",
|
||||||
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
|
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/third_party/forked/golang/reflect",
|
"ImportPath": "k8s.io/apimachinery/third_party/forked/golang/reflect",
|
||||||
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
|
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/klog",
|
"ImportPath": "k8s.io/klog",
|
||||||
|
@ -36,15 +36,9 @@ Running this command will execute the following operations on your cluster:
|
|||||||
image to `nginx:1.13`. You are encouraged to inspect the retry loop that
|
image to `nginx:1.13`. You are encouraged to inspect the retry loop that
|
||||||
handles conflicts. Verify the new replica count and container image with
|
handles conflicts. Verify the new replica count and container image with
|
||||||
`kubectl describe deployment demo`.
|
`kubectl describe deployment demo`.
|
||||||
3. **Rollback Deployment:** This will rollback the Deployment to the last
|
3. **List Deployments:** This will retrieve Deployments in the `default`
|
||||||
revision. In this case, it's the revision that was created in Step 1.
|
|
||||||
Use `kubectl describe` to verify the container image is now `nginx:1.12`.
|
|
||||||
Also note that the Deployment's replica count is still 1; this is because a
|
|
||||||
Deployment revision is created if and only if the Deployment's pod template
|
|
||||||
(`.spec.template`) is changed.
|
|
||||||
4. **List Deployments:** This will retrieve Deployments in the `default`
|
|
||||||
namespace and print their names and replica counts.
|
namespace and print their names and replica counts.
|
||||||
5. **Delete Deployment:** This will delete the Deployment object and its
|
4. **Delete Deployment:** This will delete the Deployment object and its
|
||||||
dependent ReplicaSet resource. Verify with `kubectl get deployments`.
|
dependent ReplicaSet resource. Verify with `kubectl get deployments`.
|
||||||
|
|
||||||
Each step is separated by an interactive prompt. You must hit the
|
Each step is separated by an interactive prompt. You must hit the
|
||||||
@ -63,10 +57,6 @@ Updating deployment...
|
|||||||
Updated deployment...
|
Updated deployment...
|
||||||
-> Press Return key to continue.
|
-> Press Return key to continue.
|
||||||
|
|
||||||
Rolling back deployment...
|
|
||||||
Rolled back deployment...
|
|
||||||
-> Press Return key to continue.
|
|
||||||
|
|
||||||
Listing deployments in namespace "default":
|
Listing deployments in namespace "default":
|
||||||
* demo-deployment (1 replicas)
|
* demo-deployment (1 replicas)
|
||||||
-> Press Return key to continue.
|
-> Press Return key to continue.
|
||||||
|
Loading…
Reference in New Issue
Block a user