Skip to content
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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Document charm commands #938

wants to merge 1 commit into from

Conversation

eaudetcobello
Copy link
Contributor

@eaudetcobello eaudetcobello commented Jan 8, 2025

Document charm commands

This PR documents the k8s charm commands.

@eaudetcobello eaudetcobello requested a review from a team as a code owner January 8, 2025 20:40
Copy link
Contributor

@HomayoonAlimohammadi HomayoonAlimohammadi left a 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
Copy link
Contributor

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.
Copy link
Contributor

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
Copy link
Contributor

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.

Copy link
Contributor

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.

@louiseschmidtgen louiseschmidtgen changed the title document charm commands Document charm commands Jan 9, 2025
Copy link
Contributor

@louiseschmidtgen louiseschmidtgen left a 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
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
# Command reference
# Charm command reference


### Synopsis

Run necessary pre-upgrade checks before executing a charm upgrade.
Copy link
Contributor

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.

Comment on lines +17 to +19
### Options

None.
Copy link
Contributor

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?

Comment on lines +7 to +8
```
Retrieve the cluster config:
Copy link
Contributor

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
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants