-
Notifications
You must be signed in to change notification settings - Fork 336
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(kuma-cp) automatic readme generation for chart (#1209)
Signed-off-by: Tharun <[email protected]>
- Loading branch information
Showing
7 changed files
with
260 additions
and
127 deletions.
There are no files selected for viewing
136 changes: 93 additions & 43 deletions
136
app/kumactl/pkg/install/k8s/control-plane/helmtemplates_vfsdata.go
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Charts to ignore from helm-docs |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
[![][kuma-logo]][kuma-url] | ||
|
||
{{ template "chart.description" . }} | ||
|
||
{{ template "chart.typeBadge" . }}{{ template "chart.versionBadge" . }}{{ template "chart.appVersionBadge" . }} | ||
|
||
{{ template "chart.homepageLine" . }} | ||
|
||
{{ template "chart.valuesSection" . }} | ||
|
||
## Custom Resource Definitions | ||
|
||
All Kuma CRDs are loaded via the [`crds`](crds) directory. For more detailed information on CRDs and Helm, | ||
please refer to [the Helm documentation][helm-crd]. | ||
|
||
## Deleting | ||
|
||
As part of [Helm's limitations][helm-crd-limitations], CRDs will not be deleted when the `kuma` chart is deleted and | ||
must be deleted manually. When a CRD is deleted Kubernetes deletes all resources of that kind as well, so this should | ||
be done carefully. | ||
|
||
To do this with `kubectl` on *nix platforms, run: | ||
|
||
```shell | ||
kubectl get crds | grep kuma.io | tr -s " " | cut -d " " -f1 | xargs kubectl delete crd | ||
|
||
# or with jq | ||
kubectl get crds -o json | jq '.items[].metadata.name | select(.|test(".*kuma\\.io"))' | xargs kubectl delete crd | ||
``` | ||
|
||
## Note to Chart developers | ||
|
||
The charts are used internally in `kumactl install`, therefore the following rules apply when developing new chat features: | ||
* use `make generate/kumactl/install/k8s/control-plane` to sync the Helm Chart and `kumactl install` templates | ||
* all templates that start with `pre-` and `post-` are omitted when processing in `kumactl install` | ||
|
||
[kuma-url]: https://kuma.io/ | ||
[kuma-logo]: https://kuma-public-assets.s3.amazonaws.com/kuma-logo-v2.png | ||
[helm-crd]: https://helm.sh/docs/chart_best_practices/custom_resource_definitions/ | ||
[helm-crd-limitations]: https://helm.sh/docs/topics/charts/#limitations-on-crds |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters