bitnamicharts/common

Verified Publisher

By VMware

Updated 15 days ago

Bitnami Helm chart for Common

Helm
Image
Artifact
Security
Integration & delivery
Monitoring & observability
0

10M+

bitnamicharts/common repository overview

Bitnami Common Library Chart

A Helm Library Chart for grouping common logic between Bitnami charts.

TL;DR

helm install my-release oci://REGISTRY_NAME/REPOSITORY_NAME/common

Note: You need to substitute the placeholders REGISTRY_NAME and REPOSITORY_NAME with a reference to your Helm chart registry and repository.

Introduction

This chart provides a common template helpers which can be used to develop new charts using Helm package manager.

Before you begin

  • Kubernetes 1.23+
  • Helm 3.8.0+

Parameters

The following subsections list global, common, and component-specific parameters.

Affinities
Helper identifierDescriptionExpected Input
common.affinities.nodes.softReturn a soft nodeAffinity definitiondict "key" "FOO" "values" (list "BAR" "BAZ")
common.affinities.nodes.hardReturn a hard nodeAffinity definitiondict "key" "FOO" "values" (list "BAR" "BAZ")
common.affinities.nodesReturn a nodeAffinity definitiondict "type" "soft" "key" "FOO" "values" (list "BAR" "BAZ")
common.affinities.topologyKeyReturn a topologyKey definitiondict "topologyKey" "FOO"
common.affinities.pods.softReturn a soft podAffinity/podAntiAffinity definitiondict "component" "FOO" "context" $
common.affinities.pods.hardReturn a hard podAffinity/podAntiAffinity definitiondict "component" "FOO" "context" $
common.affinities.podsReturn a podAffinity/podAntiAffinity definitiondict "type" "soft" "key" "FOO" "values" (list "BAR" "BAZ")
Capabilities
Helper identifierDescriptionExpected Input
common.capabilities.kubeVersionReturn the target Kubernetes version (using client default if .Values.kubeVersion is not set).. Chart context
common.capabilities.apiVersions.hasReturn true if the apiVersion is supporteddict "version" "batch/v1" "context" $
common.capabilities.job.apiVersionReturn the appropriate apiVersion for job.. Chart context
common.capabilities.cronjob.apiVersionReturn the appropriate apiVersion for cronjob.. Chart context
common.capabilities.daemonset.apiVersionReturn the appropriate apiVersion for daemonset.. Chart context
common.capabilities.deployment.apiVersionReturn the appropriate apiVersion for deployment.. Chart context
common.capabilities.statefulset.apiVersionReturn the appropriate apiVersion for statefulset.. Chart context
common.capabilities.ingress.apiVersionReturn the appropriate apiVersion for ingress.. Chart context
common.capabilities.rbac.apiVersionReturn the appropriate apiVersion for RBAC resources.. Chart context
common.capabilities.crd.apiVersionReturn the appropriate apiVersion for CRDs.. Chart context
common.capabilities.policy.apiVersionReturn the appropriate apiVersion for podsecuritypolicy.. Chart context
common.capabilities.networkPolicy.apiVersionReturn the appropriate apiVersion for networkpolicy.. Chart context
common.capabilities.apiService.apiVersionReturn the appropriate apiVersion for APIService.. Chart context
common.capabilities.hpa.apiVersionReturn the appropriate apiVersion for Horizontal Pod Autoscaler. Chart context
common.capabilities.vpa.apiVersionReturn the appropriate apiVersion for Vertical Pod Autoscaler.. Chart context
common.capabilities.psp.supportedReturns true if PodSecurityPolicy is supported. Chart context
common.capabilities.supportsHelmVersionReturns true if the used Helm version is 3.3+. Chart context
common.capabilities.admissionConfiguration.supportedReturns true if AdmissionConfiguration is supported. Chart context
common.capabilities.admissionConfiguration.apiVersionReturn the appropriate apiVersion for AdmissionConfiguration.. Chart context
common.capabilities.podSecurityConfiguration.apiVersionReturn the appropriate apiVersion for PodSecurityConfiguration.. Chart context
Certificates
Helper identifierDescriptionExpected Input
common.certs.sansReturns a space-separated list of Subject Alternative Names (SANs) to create a TLS certificatedict "namespace" "default" "clusterDomain" "cluster.local" "serviceName" "my-service" "headlessServiceName" "my-service-headless"
Compatibility
Helper identifierDescriptionExpected Input
common.compatibility.isOpenshiftReturn true if the detected platform is Openshift. Chart context
common.compatibility.renderSecurityContextRender 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 SCCdict "secContext" .Values.containerSecurityContext "context" $
Errors
Helper identifierDescriptionExpected Input
common.errors.upgrade.passwords.emptyIt 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.insecureImagesThrow 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 identifierDescriptionExpected Input
common.images.imageReturn the proper and full image namedict "imageRoot" .Values.path.to.the.image "global" $, see ImageRoot for the structure.
common.images.pullSecretsReturn 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.renderPullSecretsReturn 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.versionReturn the proper image versiondict "imageRoot" .Values.path.to.the.image "chart" .Chart , see ImageRoot for the structure.
Ingress
Helper identifierDescriptionExpected Input
common.ingress.backendGenerate a proper Ingress backend entry depending on the API versiondict "serviceName" "foo" "servicePort" "bar", see the Ingress deprecation notice for the syntax differences
common.ingress.certManagerRequestPrints "true" if required cert-manager annotations for TLS signed certificates are set in the Ingress annotationsdict "annotations" .Values.path.to.the.ingress.annotations
Labels
Helper identifierDescriptionExpected Input
common.labels.standardReturn Kubernetes standard labels. Chart context
common.labels.matchLabelsLabels to use on deploy.spec.selector.matchLabels and svc.spec.selector. Chart context
Names
Helper identifierDescriptionExpected Input
common.names.nameExpand the name of the chart or use .Values.nameOverride. Chart context
common.names.fullnameCreate a default fully qualified app name.. Chart context
common.names.namespaceAllow the release namespace to be overridden. Chart context
common.names.fullname.namespaceCreate a fully qualified app name adding the installation's namespace. Chart context
common.names.chartChart name plus version. Chart context
common.names.dependency.fullnameCreate a default fully qualified dependency name.dict "chartName" "dependency-chart-name" "chartValues" .Values.dependency-chart "context" $
Resources
Helper identifierDescriptionExpected Input
common.resources.presetReturn a resource request/limit object based on a given preset. These presets are for basic testing and not meant to be used in production.dict "type" "nano"
Secrets
Helper identifierDescriptionExpected Input
common.secrets.nameGenerate the name of the secret.dict "existingSecret" .Values.path.to.the.existingSecret "defaultNameSuffix" "mySuffix" "context" $ see ExistingSecret for the structure.
common.secrets.keyGenerate secret key.dict "existingSecret" .Values.path.to.the.existingSecret "key" "keyName" see ExistingSecret for the structure.
common.secrets.passwords.manageGenerate secret password or retrieve one if already created.dict "secret" "secret-name" "key" "keyName" "providedValues" (list "path.to.password1" "path.to.password2") "length" 10 "strong" false "chartName" "chartName" "honorProvidedValues" false "context" $, length, strong, honorProvidedValues and chartName fields are optional.
common.secrets.existsReturns whether a previous generated secret already exists.dict "secret" "secret-name" "context" $
common.secrets.lookupReuses the value from an existing secret, otherwise sets its value to a default value.dict "secret" "secret-name" "key" "keyName" "defaultValue" .Values.myValue "context" $
Storage
Helper identifierDescriptionExpected Input
common.storage.classReturn the proper Storage Classdict "persistence" .Values.path.to.the.persistence "global" $, see Persistence for the structure.
TplValues
Helper identifierDescriptionExpected Input
common.tplvalues.renderRenders a value that contains templatedict "value" .Values.path.to.the.Value "context" $, value is the value should rendered as template, context frequently is the chart context $ or .
common.tplvalues.mergeMerge a list of values that contains template after rendering them.dict "values" (list .Values.path.to.the.Value1 .Values.path.to.the.Value2) "context" $
common.tplvalues.merge-overwriteMerge a list of values that contains template after rendering them.dict "values" (list .Values.path.to.the.Value1 .Values.path.to.the.Value2) "context" $
Utils
Helper identifierDescriptionExpected Input
common.utils.fieldToEnvVarBuild environment variable name given a field.dict "field" "my-password"
common.utils.secret.getvaluePrint instructions to get a secret value.dict "secret" "secret-name" "field" "secret-value-field" "context" $
common.utils.getValueFromKeyGets a value from .Values object given its key pathdict "key" "path.to.key" "context" $
common.utils.getKeyFromListReturns first .Values key with a defined value or first of the list if all non-defineddict "keys" (list "path.to.key1" "path.to.key2") "context" $
common.utils.checksumTemplateChecksum a template at "path" containing a single resource (ConfigMap,Secret) for use in pod annotations, excluding the metadata (see #18376)dict "path" "/configmap.yaml" "context" $
Validations
Helper identifierDescriptionExpected Input
common.validations.values.single.emptyValidate a value must not be empty.dict "valueKey" "path.to.value" "secret" "secret.name" "field" "my-password" "subchart" "subchart" "context" $ secret, field and subchart are optional. In case they are given, the helper will generate a how to get instruction. See ValidateValue
common.validations.values.multiple.emptyValidate a multiple values must not be empty. It returns a shared error for all the values.dict "required" (list $validateValueConf00 $validateValueConf01) "context" $. See ValidateValue
common.validations.values.mariadb.passwordsThis helper will ensure required password for MariaDB are not empty. It returns a shared error for all the values.dict "secret" "mariadb-secret" "subchart" "true" "context" $ subchart field is optional and could be true or false it depends on

Note: the README for this chart is longer than the DockerHub length limit of 25000, so it has been trimmed. The full README can be found at https://techdocs.broadcom.com/us/en/vmware-tanzu/bitnami-secure-images/bitnami-secure-images/services/bsi-app-doc/apps-charts-common-index.html

Tag summary

Content type

Image

Digest

sha256:4a5f2b6ef

Size

7.8 kB

Last updated

15 days ago

docker pull bitnamicharts/common:sha256-2d5e6b9301e29a87c51e5b7365d2d6c5a8a392f9a0b9f6e6ea43aec01b66f3d0

This week's pulls

Pulls:

496,909

Jun 29 to Jul 5

Bitnami