common
A Library Helm Chart for grouping common logic between bitnami charts. This chart is not deployable by itself.
About this chart
Bitnami Common Library Chart
A Helm Library Chart for grouping common logic between Bitnami charts.
TL;DR
dependencies:
- name: common
version: 2.x.x
repository: oci://registry-1.docker.io/bitnamicharts
helm dependency update
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "common.names.fullname" . }}
data:
myvalue: "Hello World"
Looking to use our applications in production? Try VMware Tanzu Application Catalog, the commercial edition of the Bitnami catalog.
⚠️ Important Notice: Upcoming changes to the Bitnami Catalog
Beginning August 28th, 2025, Bitnami will evolve its public catalog to offer a curated set of hardened, security-focused images under the new Bitnami Secure Images initiative. As part of this transition:
- Granting community users access for the first time to security-optimized versions of popular container images.
- Bitnami will begin deprecating support for non-hardened, Debian-based software images in its free tier and will gradually remove non-latest tags from the public catalog. As a result, community users will have access to a reduced number of hardened images. These images are published only under the “latest” tag and are intended for development purposes
- Starting August 28th, over two weeks, all existing container images, including older or versioned tags (e.g., 2.50.0, 10.6), will be migrated from the public catalog (docker.io/bitnami) to the “Bitnami Legacy” repository (docker.io/bitnamilegacy), where they will no longer receive updates.
- For production workloads and long-term support, users are encouraged to adopt Bitnami Secure Images, which include hardened containers, smaller attack surfaces, CVE transparency (via VEX/KEV), SBOMs, and enterprise support.
These changes aim to improve the security posture of all Bitnami users by promoting best practices for software supply chain integrity and up-to-date deployments. For more details, visit the Bitnami Secure Images announcement.
Introduction
This chart provides a common template helpers which can be used to develop new charts using Helm package manager.
Prerequisites
- Kubernetes 1.23+
- Helm 3.8.0+
Parameters
The following table lists the helpers available in the library which are scoped in different sections.
Affinities
| Helper identifier | Description | Expected Input |
|---|---|---|
common.affinities.nodes.soft | Return a soft nodeAffinity definition | dict "key" "FOO" "values" (list "BAR" "BAZ") |
common.affinities.nodes.hard | Return a hard nodeAffinity definition | dict "key" "FOO" "values" (list "BAR" "BAZ") |
common.affinities.nodes | Return a nodeAffinity definition | dict "type" "soft" "key" "FOO" "values" (list "BAR" "BAZ") |
common.affinities.topologyKey | Return a topologyKey definition | dict "topologyKey" "FOO" |
common.affinities.pods.soft | Return a soft podAffinity/podAntiAffinity definition | dict "component" "FOO" "context" $ |
common.affinities.pods.hard | Return a hard podAffinity/podAntiAffinity definition | dict "component" "FOO" "context" $ |
common.affinities.pods | Return a podAffinity/podAntiAffinity definition | dict "type" "soft" "key" "FOO" "values" (list "BAR" "BAZ") |
Capabilities
| Helper identifier | Description | Expected Input |
|---|---|---|
common.capabilities.kubeVersion | Return the target Kubernetes version (using client default if .Values.kubeVersion is not set). | . Chart context |
common.capabilities.apiVersions.has | Return true if the apiVersion is supported | dict "version" "batch/v1" "context" $ |
common.capabilities.job.apiVersion | Return the appropriate apiVersion for job. | . Chart context |
common.capabilities.cronjob.apiVersion | Return the appropriate apiVersion for cronjob. | . Chart context |
common.capabilities.daemonset.apiVersion | Return the appropriate apiVersion for daemonset. | . Chart context |
common.capabilities.cronjob.apiVersion | Return the appropriate apiVersion for cronjob. | . Chart context |
common.capabilities.deployment.apiVersion | Return the appropriate apiVersion for deployment. | . Chart context |
common.capabilities.statefulset.apiVersion | Return the appropriate apiVersion for statefulset. | . Chart context |
common.capabilities.ingress.apiVersion | Return the appropriate apiVersion for ingress. | . Chart context |
common.capabilities.rbac.apiVersion | Return the appropriate apiVersion for RBAC resources. | . Chart context |
common.capabilities.crd.apiVersion | Return the appropriate apiVersion for CRDs. | . Chart context |
common.capabilities.policy.apiVersion | Return the appropriate apiVersion for podsecuritypolicy. | . Chart context |
common.capabilities.networkPolicy.apiVersion | Return the appropriate apiVersion for networkpolicy. | . Chart context |
common.capabilities.apiService.apiVersion | Return the appropriate apiVersion for APIService. | . Chart context |
common.capabilities.hpa.apiVersion | Return the appropriate apiVersion for Horizontal Pod Autoscaler | . Chart context |
common.capabilities.vpa.apiVersion | Return the appropriate apiVersion for Vertical Pod Autoscaler. | . Chart context |
common.capabilities.psp.supported | Returns true if PodSecurityPolicy is supported | . Chart context |
common.capabilities.supportsHelmVersion | Returns true if the used Helm version is 3.3+ | . Chart context |
common.capabilities.admissionConfiguration.supported | Returns true if AdmissionConfiguration is supported | . Chart context |
common.capabilities.admissionConfiguration.apiVersion | Return the appropriate apiVersion for AdmissionConfiguration. | . Chart context |
common.capabilities.podSecurityConfiguration.apiVersion | Return the appropriate apiVersion for PodSecurityConfiguration. | . Chart context |
Compatibility
| Helper identifier | Description | Expected Input |
|---|---|---|
common.compatibility.isOpenshift | Return true if the detected platform is Openshift | . Chart context |
common.compatibility.renderSecurityContext | Render a compatible securityContext depending on the platform. By default it is maintained as it is. In other platforms like Openshift we remove default user/group values that do not work out of the box with the restricted-v1 SCC | dict "secContext" .Values.containerSecurityContext "context" $ |
Errors
| Helper identifier | Description | Expected Input |
|---|---|---|
common.errors.upgrade.passwords.empty | It will ensure required passwords are given when we are upgrading a chart. If validationErrors is not empty it will throw an error and will stop the upgrade action. | dict "validationErrors" (list $validationError00 $validationError01) "context" $ |
common.errors.insecureImages | Throw error when original container images are replaced. The error can be bypassed by setting the global.security.allowInsecureImages to true. | dict "images" (list .Values.path.to.the.imageRoot) "context" $ |
Images
| Helper identifier | Description | Expected Input |
|---|---|---|
common.images.image | Return the proper and full image name | dict "imageRoot" .Values.path.to.the.image "global" $, see ImageRoot for the structure. |
common.images.pullSecrets | Return the proper Docker Image Registry Secret Names (deprecated: use common.images.renderPullSecrets instead) | dict "images" (list .Values.path.to.the.image1, .Values.path.to.the.image2) "global" .Values.global |
common.images.renderPullSecrets | Return the proper Docker Image Registry Secret Names (evaluates values as templates) | dict "images" (list .Values.path.to.the.image1, .Values.path.to.the.image2) "context" $ |
common.images.version | Return the proper image version | dict "imageRoot" .Values.path.to.the.image "chart" .Chart , see ImageRoot for the structure. |
Ingress
| Helper identifier | Description | Expected Input |
|---|---|---|
common.ingress.backend | Generate a proper Ingress backend entry depending on the API version | dict "serviceName" "foo" "servicePort" "bar", see the Ingress deprecation notice for the syntax differences |
common.ingress.supportsPathType | Prints "true" if the pathType field is supported |
Deploy common with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has common on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartcommon is pinned at v2.31.3 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply