Add apply view last-applied subcommand
change to GetOriginalConfiguration add bazel refactor apply view-last-applied command update some changes minor change add unit tests, update update some codes and genreate docs update LongDesc
This commit is contained in:
21
test/fixtures/pkg/kubectl/cmd/apply/rc-lastapplied.yaml
vendored
Normal file
21
test/fixtures/pkg/kubectl/cmd/apply/rc-lastapplied.yaml
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
apiVersion: v1
|
||||
kind: ReplicationController
|
||||
metadata:
|
||||
annotations:
|
||||
kubectl.kubernetes.io/last-applied-configuration: |
|
||||
{"test":1234}
|
||||
name: test-rc
|
||||
labels:
|
||||
name: test-rc
|
||||
spec:
|
||||
replicas: 1
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
name: test-rc
|
||||
spec:
|
||||
containers:
|
||||
- name: test-rc
|
||||
image: nginx
|
||||
ports:
|
||||
- containerPort: 80
|
Reference in New Issue
Block a user