-
Notifications
You must be signed in to change notification settings - Fork 337
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(helm-charts-docs) Automatic readme generation for chart (bp #1209)…
… (#1274) * feat(kuma-cp) automatic readme generation for chart (#1209) Co-authored-by: Tharun Rajendran <[email protected]> Co-authored-by: Nikolay Nikolaev <[email protected]>
- Loading branch information
1 parent
d247e2c
commit e960e20
Showing
7 changed files
with
222 additions
and
95 deletions.
There are no files selected for viewing
66 changes: 58 additions & 8 deletions
66
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