mirror of
https://github.com/bitnami/charts.git
synced 2026-08-10 14:15:55 +08:00
* Update in preparation for the next chart release. Signed-off-by: Michael Nelson <minelson@vmware.com> * Revert two changes that we overwrote with our dev changes. Signed-off-by: Michael Nelson <minelson@vmware.com> * Avoid empty envFrom Co-authored-by: Juan Ariza Toledano <jariza@vmware.com> Signed-off-by: Michael Nelson <absoludity@gmail.com> * Update param comment for ociCatalog. Co-authored-by: Juan Ariza Toledano <jariza@vmware.com> Signed-off-by: Michael Nelson <absoludity@gmail.com> * Update README.md with readme-generator-for-helm Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com> * Update oci-catalog tag. Signed-off-by: Michael Nelson <absoludity@gmail.com> * Update README.md with readme-generator-for-helm Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com> * Bump PostgreSQL subchart major version Signed-off-by: Carlos Rodríguez Hernández <carlosrh@vmware.com> * Update tests for the new version Signed-off-by: Carlos Rodríguez Hernández <carlosrh@vmware.com> * Update container images version Signed-off-by: Carlos Rodríguez Hernández <carlosrh@vmware.com> * Update README.md with readme-generator-for-helm Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com> --------- Signed-off-by: Michael Nelson <minelson@vmware.com> Signed-off-by: Michael Nelson <absoludity@gmail.com> Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com> Signed-off-by: Carlos Rodríguez Hernández <carlosrh@vmware.com> Co-authored-by: Michael Nelson <minelson@vmware.com> Co-authored-by: Michael Nelson <absoludity@gmail.com> Co-authored-by: Juan Ariza Toledano <jariza@vmware.com> Co-authored-by: Bitnami Containers <bitnami-bot@vmware.com>
155 lines
8.8 KiB
YAML
155 lines
8.8 KiB
YAML
{{- /*
|
|
Copyright VMware, Inc.
|
|
SPDX-License-Identifier: APACHE-2.0
|
|
*/}}
|
|
|
|
{{- if .Values.packaging.helm.enabled }}
|
|
apiVersion: {{ include "common.capabilities.deployment.apiVersion" . }}
|
|
kind: Deployment
|
|
metadata:
|
|
name: {{ template "kubeapps.apprepository.fullname" . }}
|
|
namespace: {{ .Release.Namespace | quote }}
|
|
labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }}
|
|
app.kubernetes.io/component: apprepository
|
|
{{- if .Values.commonAnnotations }}
|
|
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
|
|
{{- end }}
|
|
spec:
|
|
replicas: {{ .Values.apprepository.replicaCount }}
|
|
{{- if .Values.apprepository.updateStrategy }}
|
|
strategy: {{- toYaml .Values.apprepository.updateStrategy | nindent 4 }}
|
|
{{- end }}
|
|
{{- $podLabels := include "common.tplvalues.merge" ( dict "values" ( list .Values.apprepository.podLabels .Values.commonLabels ) "context" . ) }}
|
|
selector:
|
|
matchLabels: {{- include "common.labels.matchLabels" ( dict "customLabels" $podLabels "context" $ ) | nindent 6 }}
|
|
app.kubernetes.io/component: apprepository
|
|
template:
|
|
metadata:
|
|
{{- if .Values.apprepository.podAnnotations }}
|
|
annotations: {{- include "common.tplvalues.render" (dict "value" .Values.apprepository.podAnnotations "context" $) | nindent 8 }}
|
|
{{- end }}
|
|
labels: {{- include "common.labels.standard" ( dict "customLabels" $podLabels "context" $ ) | nindent 8 }}
|
|
app.kubernetes.io/component: apprepository
|
|
spec:
|
|
{{- include "kubeapps.imagePullSecrets" . | indent 6 }}
|
|
serviceAccountName: {{ template "kubeapps.apprepository.serviceAccountName" . }}
|
|
{{- if .Values.apprepository.hostAliases }}
|
|
hostAliases: {{- include "common.tplvalues.render" (dict "value" .Values.apprepository.hostAliases "context" $) | nindent 8 }}
|
|
{{- end }}
|
|
{{- if .Values.apprepository.affinity }}
|
|
affinity: {{- include "common.tplvalues.render" (dict "value" .Values.apprepository.affinity "context" $) | nindent 8 }}
|
|
{{- else }}
|
|
affinity:
|
|
podAffinity: {{- include "common.affinities.pods" (dict "type" .Values.apprepository.podAffinityPreset "component" "apprepository" "customLabels" $podLabels "context" $) | nindent 10 }}
|
|
podAntiAffinity: {{- include "common.affinities.pods" (dict "type" .Values.apprepository.podAntiAffinityPreset "component" "apprepository" "customLabels" $podLabels "context" $) | nindent 10 }}
|
|
nodeAffinity: {{- include "common.affinities.nodes" (dict "type" .Values.apprepository.nodeAffinityPreset.type "key" .Values.apprepository.nodeAffinityPreset.key "values" .Values.apprepository.nodeAffinityPreset.values) | nindent 10 }}
|
|
{{- end }}
|
|
{{- if .Values.apprepository.schedulerName }}
|
|
schedulerName: {{ .Values.apprepository.schedulerName }}
|
|
{{- end }}
|
|
{{- if .Values.apprepository.topologySpreadConstraints }}
|
|
topologySpreadConstraints: {{- include "common.tplvalues.render" (dict "value" .Values.apprepository.topologySpreadConstraints "context" .) | nindent 8 }}
|
|
{{- end }}
|
|
{{- if .Values.apprepository.nodeSelector }}
|
|
nodeSelector: {{- include "common.tplvalues.render" (dict "value" .Values.apprepository.nodeSelector "context" $) | nindent 8 }}
|
|
{{- end }}
|
|
{{- if .Values.apprepository.tolerations }}
|
|
tolerations: {{- include "common.tplvalues.render" (dict "value" .Values.apprepository.tolerations "context" $) | nindent 8 }}
|
|
{{- end }}
|
|
{{- if .Values.apprepository.priorityClassName }}
|
|
priorityClassName: {{ .Values.apprepository.priorityClassName | quote }}
|
|
{{- end }}
|
|
{{- if .Values.apprepository.podSecurityContext.enabled }}
|
|
securityContext: {{- omit .Values.apprepository.podSecurityContext "enabled" | toYaml | nindent 8 }}
|
|
{{- end }}
|
|
{{- if .Values.apprepository.initContainers }}
|
|
initContainers: {{- include "common.tplvalues.render" (dict "value" .Values.apprepository.initContainers "context" $) | trim | nindent 8 }}
|
|
{{- end }}
|
|
containers:
|
|
- name: controller
|
|
image: {{ include "kubeapps.apprepository.image" . }}
|
|
imagePullPolicy: {{ .Values.apprepository.image.pullPolicy | quote }}
|
|
{{- if .Values.apprepository.containerSecurityContext.enabled }}
|
|
securityContext: {{- omit .Values.apprepository.containerSecurityContext "enabled" | toYaml | nindent 12 }}
|
|
{{- end }}
|
|
{{- if .Values.apprepository.lifecycleHooks }}
|
|
lifecycle: {{- include "common.tplvalues.render" (dict "value" .Values.apprepository.lifecycleHooks "context" $) | nindent 12 }}
|
|
{{- end }}
|
|
{{- if .Values.apprepository.command }}
|
|
command: {{- include "common.tplvalues.render" (dict "value" .Values.apprepository.command "context" $) | nindent 12 }}
|
|
{{- else }}
|
|
command:
|
|
- /apprepository-controller
|
|
{{- end }}
|
|
{{- if .Values.apprepository.args }}
|
|
args: {{- include "common.tplvalues.render" (dict "value" .Values.apprepository.args "context" $) | nindent 12 }}
|
|
{{- else }}
|
|
args:
|
|
- --user-agent-comment={{ printf "kubeapps/%s" .Chart.AppVersion }}
|
|
- --repo-sync-image=$(REPO_SYNC_IMAGE)
|
|
{{- if .Values.global }}
|
|
{{- if.Values.global.imagePullSecrets }}
|
|
{{- range $key, $value := .Values.global.imagePullSecrets }}
|
|
- --repo-sync-image-pullsecrets={{ $value | quote }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- end }}
|
|
- --repo-sync-cmd=/asset-syncer
|
|
- --namespace={{ .Release.Namespace }}
|
|
- --global-repos-namespace={{ include "kubeapps.helmGlobalPackagingNamespace" . }}
|
|
- --database-secret-name={{ include "kubeapps.postgresql.secretName" . }}
|
|
- --database-secret-key=postgres-password
|
|
- --database-url={{ printf "%s:%d" (include "kubeapps.postgresql.host" .) (int (include "kubeapps.postgresql.port" .)) }}
|
|
- --database-user={{ .Values.postgresql.auth.username }}
|
|
- --database-name={{ .Values.postgresql.auth.database }}
|
|
{{- if .Values.apprepository.crontab }}
|
|
- --crontab={{ .Values.apprepository.crontab }}
|
|
{{- end }}
|
|
- --repos-per-namespace={{ .Values.apprepository.watchAllNamespaces }}
|
|
{{- if.Values.apprepository.customAnnotations }}
|
|
{{- range $key, $value := .Values.apprepository.customAnnotations }}
|
|
- --custom-annotations={{ (print $key "=" $value) | quote }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- if.Values.apprepository.customLabels }}
|
|
{{- range $key, $value := .Values.apprepository.customLabels }}
|
|
- --custom-labels={{ (print $key "=" $value) | quote }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- range .Values.apprepository.extraFlags }}
|
|
- {{ . }}
|
|
{{- end }}
|
|
{{- end }}
|
|
env:
|
|
- name: REPO_SYNC_IMAGE
|
|
value: {{ include "kubeapps.apprepository.syncImage" . }}
|
|
{{- if .Values.ociCatalog.enabled }}
|
|
- name: OCI_CATALOG_URL
|
|
value: {{ printf "%s:%d" (include "kubeapps.kubeappsapis.fullname" .) (int .Values.ociCatalog.containerPorts.grpc) | quote }}
|
|
{{- end }}
|
|
{{- if .Values.apprepository.extraEnvVars }}
|
|
{{- include "common.tplvalues.render" (dict "value" .Values.apprepository.extraEnvVars "context" $) | nindent 12 }}
|
|
{{- end }}
|
|
envFrom:
|
|
{{- if .Values.apprepository.extraEnvVarsCM }}
|
|
- configMapRef:
|
|
name: {{ include "common.tplvalues.render" (dict "value" .Values.apprepository.extraEnvVarsCM "context" $) }}
|
|
{{- end }}
|
|
{{- if .Values.apprepository.extraEnvVarsSecret }}
|
|
- secretRef:
|
|
name: {{ include "common.tplvalues.render" (dict "value" .Values.apprepository.extraEnvVarsSecret "context" $) }}
|
|
{{- end }}
|
|
{{- if .Values.apprepository.extraVolumeMounts }}
|
|
volumeMounts: {{- include "common.tplvalues.render" (dict "value" .Values.apprepository.extraVolumeMounts "context" $) | nindent 12 }}
|
|
{{- end }}
|
|
{{- if .Values.apprepository.resources }}
|
|
resources: {{- toYaml .Values.apprepository.resources | nindent 12 }}
|
|
{{- end }}
|
|
{{- if .Values.apprepository.sidecars }}
|
|
{{- include "common.tplvalues.render" (dict "value" .Values.apprepository.sidecars "context" $) | trim | nindent 8 }}
|
|
{{- end }}
|
|
{{- if .Values.apprepository.extraVolumes }}
|
|
volumes: {{- include "common.tplvalues.render" (dict "value" .Values.apprepository.extraVolumes "context" $) | nindent 8 }}
|
|
{{- end }}
|
|
{{- end }}
|