-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: increasing reuse of chart doc templates
- Loading branch information
Showing
24 changed files
with
224 additions
and
485 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
@@ -1,31 +1,7 @@ | ||
{{ template "chart.header" . }} | ||
{{ template "chart.description" . }} | ||
|
||
{{ template "chart.versionBadge" . }}{{ template "chart.typeBadge" . }}{{ template "chart.appVersionBadge" . }} | ||
## Requirements | ||
|
||
## Additional Information | ||
|
||
The `common` chart is a library of common resources that are shared across all other charts in the repository. It has no templates, but provides helm template functions and default values that can be used by other charts. | ||
|
||
{{ template "chart.requirementsSection" . }} | ||
|
||
{{ template "chart.valuesHeader" . }} | ||
|
||
The values in the `defaults:` section can be reused from other charts by using the lookup function "common.getKeyValue". It implements lookup on three levels: | ||
|
||
1. Looks for `keyOverride` in the chart's values.yaml | ||
2. Looks for `global.key` in the chart's or parent chart's values.yaml | ||
3. Uses the `key` in the chart's values.yaml | ||
4. Uses the `common.defaults.key` value from the table below. | ||
|
||
1 has precendence over 2 over 3 over 4 respectively. This approach allows for individual charts to have minimal configuration, while still being able to override parameters locally. | ||
|
||
Example | ||
``` | ||
1) .Values.deployment.resources.limits.memoryOveride = 4096MB | ||
2) .Values.global.deployment.resources.limits.memory = 2048MB | ||
3) .Values.deployment.resources.limits.memory = 1024MB | ||
4) .Values.common.defaults.deployment.resources.limits.memory = default 512MB | ||
``` | ||
|
||
{{ template "chart.valuesTable" . }} | ||
| Repository | Name | Description | Sources | | ||
|------------|------|-------------|---------| | ||
| `oci://ghcr.io/openmfp/helm-charts` | `common` | The `common` chart is a library of common resources that are shared across all other charts in the repository. It has no templates, but provides helm template functions and [default values](https://github.com/openmfp/helm-charts/blob/main/charts/common/values.yaml) that can be used by other charts. |[source](https://github.com/openmfp/helm-charts/tree/main/charts/common)| | ||
| `oci://ghcr.io/openmfp/helm-charts` | `account-operator-crds` | The `account-operator-crds` chart provides CRDS introduced by the `account-operator`. |[source](https://github.com/openmfp/helm-charts/tree/main/charts/account-operator-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 was deleted.
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
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 |
---|---|---|
@@ -1,31 +1,6 @@ | ||
{{ template "chart.header" . }} | ||
{{ template "chart.description" . }} | ||
|
||
{{ template "chart.versionBadge" . }}{{ template "chart.typeBadge" . }}{{ template "chart.appVersionBadge" . }} | ||
## Requirements | ||
|
||
## Additional Information | ||
|
||
The `common` chart is a library of common resources that are shared across all other charts in the repository. It has no templates, but provides helm template functions and default values that can be used by other charts. | ||
|
||
{{ template "chart.requirementsSection" . }} | ||
|
||
{{ template "chart.valuesHeader" . }} | ||
|
||
The values in the `defaults:` section can be reused from other charts by using the lookup function "common.getKeyValue". It implements lookup on three levels: | ||
|
||
1. Looks for `keyOverride` in the chart's values.yaml | ||
2. Looks for `global.key` in the chart's or parent chart's values.yaml | ||
3. Uses the `key` in the chart's values.yaml | ||
4. Uses the `common.defaults.key` value from the table below. | ||
|
||
1 has precendence over 2 over 3 over 4 respectively. This approach allows for individual charts to have minimal configuration, while still being able to override parameters locally. | ||
|
||
Example | ||
``` | ||
1) .Values.deployment.resources.limits.memoryOveride = 4096MB | ||
2) .Values.global.deployment.resources.limits.memory = 2048MB | ||
3) .Values.deployment.resources.limits.memory = 1024MB | ||
4) .Values.common.defaults.deployment.resources.limits.memory = default 512MB | ||
``` | ||
|
||
{{ template "chart.valuesTable" . }} | ||
| Repository | Name | Description | Sources | | ||
|------------|------|-------------|---------| | ||
| `oci://ghcr.io/openmfp/helm-charts` | `common` | The `common` chart is a library of common resources that are shared across all other charts in the repository. It has no templates, but provides helm template functions and [default values](https://github.com/openmfp/helm-charts/blob/main/charts/common/values.yaml) that can be used by other charts. |[source](https://github.com/openmfp/helm-charts/tree/main/charts/common)| |
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
Oops, something went wrong.