diff --git a/helm-repo/index.yaml b/helm-repo/index.yaml index 53e391b..da87a61 100644 --- a/helm-repo/index.yaml +++ b/helm-repo/index.yaml @@ -3,9 +3,9 @@ entries: phase-kubernetes-operator: - apiVersion: v2 appVersion: 0.1.0 - created: "2023-11-16T16:40:17.321166811+05:30" + created: "2023-11-17T13:37:17.319489737+05:30" description: A Helm chart for deploying the Phase Kubernetes Operator - digest: 77767653ec8a7dc0e5350291daf343e45aa5e8e9782d0f4e3d40d6a59a7482a5 + digest: b52696267af72b43a41c62ae801b1e507d37b40ee6ec14cafd03a0fc3f407d9a home: https://github.com/phasehq/kubernetes-secrets-operator keywords: - phase @@ -20,6 +20,6 @@ entries: - https://github.com/phasehq/kubernetes-secrets-operator type: application urls: - - https://helm.phase.dev/phase-kubernetes-operator-0.1.0.tgz + - https://helm.phase.dev/helm-repo/phase-kubernetes-operator-0.1.0.tgz version: 0.1.0 -generated: "2023-11-16T16:40:17.320828271+05:30" +generated: "2023-11-17T13:37:17.319169201+05:30" diff --git a/helm-repo/phase-kubernetes-operator-0.1.0.tgz b/helm-repo/phase-kubernetes-operator-0.1.0.tgz index fada1c3..702be7f 100644 Binary files a/helm-repo/phase-kubernetes-operator-0.1.0.tgz and b/helm-repo/phase-kubernetes-operator-0.1.0.tgz differ diff --git a/phase-kubernetes-operator/templates/_helpers.tpl b/phase-kubernetes-operator/templates/_helpers.tpl new file mode 100644 index 0000000..7404cea --- /dev/null +++ b/phase-kubernetes-operator/templates/_helpers.tpl @@ -0,0 +1,23 @@ +{{/* +Expand the name of the chart. +*/}} +{{- define "phase-kubernetes-operator.name" -}} +{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}} +{{- end -}} + +{{/* +Create a default fully qualified app name. +We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). +*/}} +{{- define "phase-kubernetes-operator.fullname" -}} +{{- if .Values.fullnameOverride -}} +{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}} +{{- else -}} +{{- $name := default .Chart.Name .Values.nameOverride -}} +{{- if contains $name .Release.Name -}} +{{- .Release.Name | trunc 63 | trimSuffix "-" -}} +{{- else -}} +{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} +{{- end -}} +{{- end -}} +{{- end -}}