kubernetes/docs
Kubernetes Submit Queue afd3db25cf Merge pull request #41146 from shiywang/apply-view1
Automatic merge from submit-queue (batch tested with PRs 41146, 41486, 41482, 41538, 41784)

 Add apply view-last-applied subcommand

reopen pr https://github.com/kubernetes/kubernetes/pull/40984, implement part of https://github.com/kubernetes/community/pull/287
for now unit test all pass, the output looks like:

```console
shiywang@dhcp-140-33 template $ ./kubectl apply view last-applied deployment nginx-deployment 
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  creationTimestamp: null
  name: nginx-deployment
spec:
  strategy: {}
  template:
    metadata:
      creationTimestamp: null
      labels:
        app: nginx
    spec:
      containers:
      - image: nginx:1.12.10
        name: nginx
        ports:
        - containerPort: 80
        resources: {}
status: {}
```

```release-note
Support new kubectl apply view-last-applied command for viewing the last configuration file applied
```

not sure if there is any flag I should updated or the some error handling I should changed.
will generate docs when you guys think is ok.
cc @pwittrock @jessfraz @AdoHe @ymqytw
2017-02-22 21:09:31 -08:00
..
admin run hack/update-generated-docs.sh to strip munge tags 2017-02-16 10:17:17 -08:00
api-reference Auto generated stuff. 2017-02-22 09:27:42 -05:00
design replace contents of docs/design with stubs 2017-01-11 08:23:44 -05:00
devel replace contents of docs/devel with stubs 2016-12-21 20:26:48 -05:00
getting-started-guides Fix broken link to logging documentation 2017-01-15 00:14:12 -08:00
images Updated for v1.2.0. 2016-03-18 14:20:56 -07:00
man/man1 Add apply view last-applied subcommand 2017-02-21 20:08:25 +08:00
proposals replace contents of docs/proposals with stubs 2016-12-21 21:15:09 -05:00
user-guide Add apply view last-applied subcommand 2017-02-21 20:08:25 +08:00
yaml/kubectl autogenerated 2016-11-08 06:33:46 -08:00
.generated_docs Add apply view last-applied subcommand 2017-02-21 20:08:25 +08:00
api.md fix munge-docs build errors 2016-11-17 16:49:00 +01:00
BUILD Enable auto-generating sources rules 2017-01-05 14:14:13 -08:00
OWNERS Move .generated_docs to docs/ so docs OWNERS can review / approve 2017-02-16 10:11:57 -08:00
README.md fix munge-docs build errors 2016-11-17 16:49:00 +01:00
reporting-security-issues.md Remove 'this is HEAD' warning on docs 2016-10-26 00:06:59 +02:00

Kubernetes Documentation: releases.k8s.io/HEAD

Analytics