Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/cnpg-cluster/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: v2
name: cnpg-cluster
description: A Helm chart to create cloudnative-pg.io clusters
type: application
version: 2.0.1
version: 2.0.2
appVersion: "14.5-6"
4 changes: 4 additions & 0 deletions charts/cnpg-cluster/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,15 @@ Common labels
*/}}
{{- define "cnpg-cluster.labels" -}}
helm.sh/chart: {{ include "cnpg-cluster.chart" . }}
{{- if and (hasKey .Values "labels") (.Values.labels) }}
{{ toYaml .Values.labels }}
{{- else }}
{{ include "cnpg-cluster.selectorLabels" . }}
{{- if .Chart.AppVersion }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- end -}}
{{- end }}

{{/*
Expand Down
10 changes: 10 additions & 0 deletions charts/cnpg-cluster/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,16 @@ nameOverride: ""
# -- String to fully override cnpg-cluster.fullname template with a string
fullnameOverride: ""

# -- Labels for the cluster
# This field allows adding extra labels to cluster.
# Note: The following labels cannot be set through this field, as they are reserved:
# - helm.sh/chart
# Attempting to use these labels will be cause a conflict.
labels:
# app.kubernetes.io/name: monkey-cluster
# app.kubernetes.io/instance: monkey-moon
# env: production

# -- CPU/Memory resource requests/limits
resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious
Expand Down