Helm-Toolkit: Add basic documentation for the metadata labels function
This PS adds basic documentation for the metadata labels function. Change-Id: I8ef3093aafabb64c61396a721b6c6b66dc5de9e8 Signed-off-by: Pete Birley <pete@port.direct>
This commit is contained in:
parent
fd242d2656
commit
87b3b5b907
@ -14,6 +14,19 @@ See the License for the specific language governing permissions and
|
|||||||
limitations under the License.
|
limitations under the License.
|
||||||
*/}}
|
*/}}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
abstract: |
|
||||||
|
Renders a set of standardised labels
|
||||||
|
values: |
|
||||||
|
release_group: null
|
||||||
|
usage: |
|
||||||
|
{{ tuple . "foo" "bar" | include "helm-toolkit.snippets.kubernetes_metadata_labels" }}
|
||||||
|
return: |
|
||||||
|
release_group: RELEASE-NAME
|
||||||
|
application: foo
|
||||||
|
component: bar
|
||||||
|
*/}}
|
||||||
|
|
||||||
{{- define "helm-toolkit.snippets.kubernetes_metadata_labels" -}}
|
{{- define "helm-toolkit.snippets.kubernetes_metadata_labels" -}}
|
||||||
{{- $envAll := index . 0 -}}
|
{{- $envAll := index . 0 -}}
|
||||||
{{- $application := index . 1 -}}
|
{{- $application := index . 1 -}}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user