Skip to content

add kubectl diff to cheatsheet #18481

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

zhouya0
Copy link
Contributor

@zhouya0 zhouya0 commented Jan 6, 2020

Add kubectl diff to cheatsheet as kubectl diff is already GA.
Part of kubernetes/kubernetes#86525.

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jan 6, 2020
@k8s-ci-robot k8s-ci-robot requested review from krousey and tengqm January 6, 2020 03:32
@k8s-ci-robot k8s-ci-robot added language/en Issues or PRs related to English language sig/docs Categorizes an issue or PR as relevant to SIG Docs. labels Jan 6, 2020
@zhouya0
Copy link
Contributor Author

zhouya0 commented Jan 6, 2020

/assign @apelisse

@apelisse
Copy link
Member

apelisse commented Jan 8, 2020

Thanks a lot @zhouya0 !
/approve
/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jan 8, 2020
@apelisse
Copy link
Member

apelisse commented Jan 8, 2020

/assign @jimangel

@@ -195,6 +195,9 @@ kubectl get pods -o json | jq '.items[].spec.containers[].env[]?.valueFrom.secre

# List Events sorted by timestamp
kubectl get events --sort-by=.metadata.creationTimestamp

# Diff configurations with the current online configuration
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think there can be a clearer description here but I'm not sure how to word it. My concern is mainly around the word "online" which can be confusing, especially if your cluster is on-prem.

Maybe replace w/ cluster-state ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's be clear about what this does: it compares the current state of the cluster against the state that the cluster would be in if you had applied that configuration. I suspect with could almost use that sentence as-is.

# Compares the current state of the cluster against the state that the cluster would be in if the manifest was applied.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot @apelisse. My native language is not english, to be honest i have to read multiple times with this sentence. But I aggree with the better explaination about the online cluster :)

@zhouya0 zhouya0 force-pushed the add_kubectl_diff_to_cheatsheet branch from 728ee34 to 27de9e2 Compare January 10, 2020 04:07
@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jan 10, 2020
@apelisse
Copy link
Member

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jan 10, 2020
@zhouya0
Copy link
Contributor Author

zhouya0 commented Jan 13, 2020

@jimangel please review this, thanks!

@jimangel
Copy link
Member

/lgtm
/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: apelisse, jimangel

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 13, 2020
@k8s-ci-robot k8s-ci-robot merged commit 0c57f2c into kubernetes:master Jan 13, 2020
wawa0210 pushed a commit to wawa0210/website that referenced this pull request Mar 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. language/en Issues or PRs related to English language lgtm "Looks good to me", indicates that a PR is ready to be merged. sig/docs Categorizes an issue or PR as relevant to SIG Docs. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants