1 # Bitnami Common Library Chart
3 A [Helm Library Chart](https://helm.sh/docs/topics/library_charts/#helm) for grouping common logic between Bitnami charts.
11 repository: oci://registry-1.docker.io/bitnamicharts
15 helm dependency update
22 name: {{ include "common.names.fullname" . }}
24 myvalue: "Hello World"
27 Looking to use our applications in production? Try [VMware Tanzu Application Catalog](https://bitnami.com/enterprise), the enterprise edition of Bitnami Application Catalog.
31 This chart provides a common template helpers which can be used to develop new charts using [Helm](https://helm.sh) package manager.
33 Bitnami charts can be used with [Kubeapps](https://kubeapps.dev/) for deployment and management of Helm Charts in clusters.
42 ## Special input schemas
49 description: Docker registry where the image is located
54 description: Repository and image name
55 example: bitnami/nginx
59 description: image tag
60 example: 1.16.1-debian-10-r63
64 description: Specify a imagePullPolicy. Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
70 description: Optionally specify an array of imagePullSecrets (evaluated as templates).
74 description: Set to true if you would like to see extra information on logs
77 ## An instance would be:
79 # repository: bitnami/nginx
80 # tag: 1.16.1-debian-10-r63
81 # pullPolicy: IfNotPresent
90 description: Whether enable persistence.
95 description: Ghost data Persistent Volume Storage Class, If set to "-", storageClassName: "" which disables dynamic provisioning.
100 description: Access mode for the Persistent Volume Storage.
101 example: ReadWriteOnce
105 description: Size the Persistent Volume Storage.
110 description: Path to be persisted.
113 ## An instance would be:
116 # accessMode: ReadWriteOnce
126 description: Name of the existing secret.
129 description: Mapping between the expected key name and the name of the key in the existing secret.
132 ## An instance would be:
135 # password: myPasswordKey
140 When we store sensitive data for a deployment in a secret, some times we want to give to users the possibility of using theirs existing secrets.
143 # templates/secret.yaml
148 name: {{ include "common.names.fullname" . }}
150 app: {{ include "common.names.fullname" . }}
153 password: {{ .Values.password | b64enc | quote }}
162 name: {{ include "common.secrets.name" (dict "existingSecret" .Values.existingSecret "context" $) }}
163 key: {{ include "common.secrets.key" (dict "existingSecret" .Values.existingSecret "key" "password") }}
170 password: myPasswordKey
178 {{- $validateValueConf00 := (dict "valueKey" "path.to.value00" "secret" "secretName" "field" "password-00") -}}
179 {{- $validateValueConf01 := (dict "valueKey" "path.to.value01" "secret" "secretName" "field" "password-01") -}}
181 {{ include "common.validations.values.multiple.empty" (dict "required" (list $validateValueConf00 $validateValueConf01) "context" $) }}
184 If we force those values to be empty we will see some alerts
187 helm install test mychart --set path.to.value00="",path.to.value01=""
188 'path.to.value00' must not be empty, please add '--set path.to.value00=$PASSWORD_00' to the command. To get the current value:
190 export PASSWORD_00=$(kubectl get secret --namespace default secretName -o jsonpath="{.data.password-00}" | base64 -d)
192 'path.to.value01' must not be empty, please add '--set path.to.value01=$PASSWORD_01' to the command. To get the current value:
194 export PASSWORD_01=$(kubectl get secret --namespace default secretName -o jsonpath="{.data.password-01}" | base64 -d)
201 [On November 13, 2020, Helm v2 support was formally finished](https://github.com/helm/charts#status-of-the-project), this major version is the result of the required changes applied to the Helm Chart to be able to incorporate the different features added in Helm v3 and to be consistent with the Helm project itself regarding the Helm v2 EOL.
203 #### What changes were introduced in this major version?
205 - Previous versions of this Helm Chart use `apiVersion: v1` (installable by both Helm 2 and 3), this Helm Chart was updated to `apiVersion: v2` (installable by Helm 3 only). [Here](https://helm.sh/docs/topics/charts/#the-apiversion-field) you can find more information about the `apiVersion` field.
206 - Use `type: library`. [Here](https://v3.helm.sh/docs/faq/#library-chart-support) you can find more information.
207 - The different fields present in the *Chart.yaml* file has been ordered alphabetically in a homogeneous way for all the Bitnami Helm Charts
209 #### Considerations when upgrading to this version
211 - If you want to upgrade to this version from a previous one installed with Helm v3, you shouldn't face any issues
212 - If you want to upgrade to this version using Helm v2, this scenario is not supported as this version doesn't support Helm v2 anymore
213 - If you installed the previous version with Helm v2 and wants to upgrade to this version with Helm v3, please refer to the [official Helm documentation](https://helm.sh/docs/topics/v2_v3_migration/#migration-use-cases) about migrating from Helm v2 to v3
217 - <https://docs.bitnami.com/tutorials/resolve-helm2-helm3-post-migration-issues/>
218 - <https://helm.sh/docs/topics/v2_v3_migration/>
219 - <https://helm.sh/blog/migrate-from-helm-v2-to-helm-v3/>
223 Copyright © 2024 Broadcom. The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
225 Licensed under the Apache License, Version 2.0 (the "License");
226 you may not use this file except in compliance with the License.
227 You may obtain a copy of the License at
229 <http://www.apache.org/licenses/LICENSE-2.0>
231 Unless required by applicable law or agreed to in writing, software
232 distributed under the License is distributed on an "AS IS" BASIS,
233 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
234 See the License for the specific language governing permissions and
235 limitations under the License.