Compare commits
2 Commits
postgres-c
...
postgres-c
Author | SHA1 | Date | |
---|---|---|---|
69a554bd9d | |||
2aacb4115a |
@@ -1,6 +1,6 @@
|
|||||||
apiVersion: v2
|
apiVersion: v2
|
||||||
name: postgres-cluster
|
name: postgres-cluster
|
||||||
version: 5.0.1
|
version: 5.0.3
|
||||||
description: Cloudnative-pg Cluster
|
description: Cloudnative-pg Cluster
|
||||||
keywords:
|
keywords:
|
||||||
- database
|
- database
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
# postgres-cluster
|
# postgres-cluster
|
||||||
|
|
||||||
 
|
 
|
||||||
|
|
||||||
Cloudnative-pg Cluster
|
Cloudnative-pg Cluster
|
||||||
|
|
||||||
|
@@ -20,8 +20,8 @@ Create chart name and version as used by the chart label.
|
|||||||
Common labels
|
Common labels
|
||||||
*/}}
|
*/}}
|
||||||
{{- define "cluster.labels" -}}
|
{{- define "cluster.labels" -}}
|
||||||
helm.sh/chart: {{ include "cluster.chart" . }}
|
helm.sh/chart: {{ include "cluster.chart" $ }}
|
||||||
{{ include "cluster.selectorLabels" . }}
|
{{ include "cluster.selectorLabels" $ }}
|
||||||
{{- if .Chart.AppVersion }}
|
{{- if .Chart.AppVersion }}
|
||||||
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
|
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
@@ -32,7 +32,7 @@ app.kubernetes.io/managed-by: {{ .Release.Service }}
|
|||||||
Selector labels
|
Selector labels
|
||||||
*/}}
|
*/}}
|
||||||
{{- define "cluster.selectorLabels" -}}
|
{{- define "cluster.selectorLabels" -}}
|
||||||
app.kubernetes.io/name: {{ include "cluster.name" . }}
|
app.kubernetes.io/name: {{ include "cluster.name" $ }}
|
||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
app.kubernetes.io/part-of: cloudnative-pg
|
app.kubernetes.io/part-of: cloudnative-pg
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@@ -2,10 +2,10 @@
|
|||||||
apiVersion: monitoring.coreos.com/v1
|
apiVersion: monitoring.coreos.com/v1
|
||||||
kind: PrometheusRule
|
kind: PrometheusRule
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ include "cluster.name" . }}-alert-rules
|
name: {{ include "cluster.name" $ }}-alert-rules
|
||||||
namespace: {{ include "cluster.namespace" . }}
|
namespace: {{ include "cluster.namespace" $ }}
|
||||||
labels:
|
labels:
|
||||||
{{- include "cluster.labels" . | nindent 4 }}
|
{{- include "cluster.labels" $ | nindent 4 }}
|
||||||
{{- with .Values.cluster.additionalLabels }}
|
{{- with .Values.cluster.additionalLabels }}
|
||||||
{{ toYaml . | nindent 4 }}
|
{{ toYaml . | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@@ -8,7 +8,7 @@ metadata:
|
|||||||
name: {{ include "cluster.name" $context }}-{{ .name }}-scheduled-backup
|
name: {{ include "cluster.name" $context }}-{{ .name }}-scheduled-backup
|
||||||
namespace: {{ include "cluster.namespace" $ }}
|
namespace: {{ include "cluster.namespace" $ }}
|
||||||
labels:
|
labels:
|
||||||
{{- include "cluster.labels" . | nindent 4 }}
|
{{- include "cluster.labels" $ | nindent 4 }}
|
||||||
{{- with .Values.cluster.additionalLabels }}
|
{{- with .Values.cluster.additionalLabels }}
|
||||||
{{ toYaml . | nindent 4 }}
|
{{ toYaml . | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
Reference in New Issue
Block a user