-
Notifications
You must be signed in to change notification settings - Fork 14
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
Document charm commands #938
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work @eaudetcobello, thanks a lot! Left some minor comments.
```{include} ../../_parts/commands/charm/pre-upgrade-check.md | ||
``` | ||
|
||
```{include} ../../_parts/commands/charm/pre-upgrade-check.md |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think one of these should be get-kubeconfig.md
|
||
### Options | ||
|
||
None. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we have a server
param, at least according to the code: https://github.com/canonical/k8s-operator/blob/main/charms/worker/k8s/src/charm.py#L1053-L1068
|
||
### Synopsis | ||
|
||
Retrieve public Kubernetes cluster config, including credentials |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we can also mention that it's only executable on on control plane nodes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also Retrieve **the** public Kubernetes
, including **its** credentials
and some punctuation add the end please.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Etienne! Let's add a little bit of context here and there.
@@ -0,0 +1,9 @@ | |||
# Command reference |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# Command reference | |
# Charm command reference |
|
||
### Synopsis | ||
|
||
Run necessary pre-upgrade checks before executing a charm upgrade. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add some additional information on what this check does and why we run it before the upgrade.
### Options | ||
|
||
None. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we remove this section?
``` | ||
Retrieve the cluster config: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Switch lines 7 and 8 please and undo the indent on line 10.
|
||
### Synopsis | ||
|
||
Retrieve public Kubernetes cluster config, including credentials |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also Retrieve **the** public Kubernetes
, including **its** credentials
and some punctuation add the end please.
Document charm commands
This PR documents the k8s charm commands.