kubectl: recreating resources for immutable fields when force is applied

This commit is contained in:
Di Xu
2018-07-25 17:09:56 +08:00
parent 41d66aaf87
commit 0af6faed09
4 changed files with 40 additions and 1 deletions

10
hack/testdata/service-revision1.yaml vendored Normal file
View File

@@ -0,0 +1,10 @@
apiVersion: v1
kind: Service
metadata:
name: a
spec:
selector:
app: test
clusterIP: None
ports:
- port: 80

10
hack/testdata/service-revision2.yaml vendored Normal file
View File

@@ -0,0 +1,10 @@
apiVersion: v1
kind: Service
metadata:
name: a
spec:
selector:
app: test
clusterIP: 10.0.0.12
ports:
- port: 80