Compare commits

..

1 Commits

Author SHA1 Message Date
Andrei Kvapil
884fbf94d4 Update CNPG to 1.22.2
Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
2024-03-15 21:07:22 +01:00
12 changed files with 13262 additions and 5575 deletions

View File

@@ -3,8 +3,8 @@ name: piraeus
description: |
The Piraeus Operator manages software defined storage clusters using LINSTOR in Kubernetes.
type: application
version: 2.4.1
appVersion: "v2.4.1"
version: 2.3.0
appVersion: "v2.3.0"
maintainers:
- name: Piraeus Datastore
url: https://piraeus.io

View File

@@ -17,19 +17,19 @@ data:
# quay.io/piraeusdatastore/piraeus-server:v1.24.2
components:
linstor-controller:
tag: v1.26.2
tag: v1.25.1
image: piraeus-server
linstor-satellite:
tag: v1.26.2
tag: v1.25.1
image: piraeus-server
linstor-csi:
tag: v1.4.0
tag: v1.3.0
image: piraeus-csi
drbd-reactor:
tag: v1.4.0
image: drbd-reactor
ha-controller:
tag: v1.2.0
tag: v1.1.4
image: piraeus-ha-controller
drbd-shutdown-guard:
tag: v1.0.0
@@ -38,7 +38,7 @@ data:
tag: v0.10
image: ktls-utils
drbd-module-loader:
tag: v9.2.8
tag: v9.2.6
# The special "match" attribute is used to select an image based on the node's reported OS.
# The operator will first check the k8s node's ".status.nodeInfo.osImage" field, and compare it against the list
# here. If one matches, that specific image name will be used instead of the fallback image.
@@ -54,18 +54,12 @@ data:
image: drbd9-almalinux8
- osImage: AlmaLinux 9
image: drbd9-almalinux9
- osImage: Rocky Linux 8
image: drbd9-almalinux8
- osImage: Rocky Linux 9
image: drbd9-almalinux9
- osImage: Ubuntu 18\.04
image: drbd9-bionic
- osImage: Ubuntu 20\.04
image: drbd9-focal
- osImage: Ubuntu 22\.04
image: drbd9-jammy
- osImage: Debian GNU/Linux 12
image: drbd9-bookworm
- osImage: Debian GNU/Linux 11
image: drbd9-bullseye
- osImage: Debian GNU/Linux 10
@@ -75,25 +69,25 @@ data:
base: registry.k8s.io/sig-storage
components:
csi-attacher:
tag: v4.5.0
tag: v4.4.2
image: csi-attacher
csi-livenessprobe:
tag: v2.12.0
tag: v2.11.0
image: livenessprobe
csi-provisioner:
tag: v4.0.0
tag: v3.6.2
image: csi-provisioner
csi-snapshotter:
tag: v7.0.1
tag: v6.3.2
image: csi-snapshotter
csi-resizer:
tag: v1.10.0
tag: v1.9.2
image: csi-resizer
csi-external-health-monitor-controller:
tag: v0.11.0
tag: v0.10.0
image: csi-external-health-monitor-controller
csi-node-driver-registrar:
tag: v2.10.0
tag: v2.9.1
image: csi-node-driver-registrar
{{- range $idx, $value := .Values.imageConfigOverride }}
{{ add $idx 1 }}_helm_override.yaml: |

View File

@@ -152,27 +152,3 @@ webhooks:
resources:
- linstorsatelliteconfigurations
sideEffects: None
- admissionReviewVersions:
- v1
clientConfig:
service:
name: '{{ include "piraeus-operator.fullname" . }}-webhook-service'
namespace: '{{ .Release.Namespace }}'
path: /validate-storage-k8s-io-v1-storageclass
{{- if not .Values.tls.certManagerIssuerRef }}
caBundle: {{ $ca }}
{{- end }}
failurePolicy: {{ .Values.webhook.failurePolicy }}
timeoutSeconds: {{ .Values.webhook.timeoutSeconds }}
name: vstorageclass.kb.io
rules:
- apiGroups:
- storage.k8s.io
apiVersions:
- v1
operations:
- CREATE
- UPDATE
resources:
- storageclasses
sideEffects: None

View File

@@ -1,9 +1,11 @@
apiVersion: v2
appVersion: 1.21.1
description: CloudNativePG Helm Chart
appVersion: 1.22.2
description: CloudNativePG Operator Helm Chart
home: https://cloudnative-pg.io
icon: https://raw.githubusercontent.com/cloudnative-pg/artwork/main/cloudnativepg-logo.svg
keywords:
- operator
- controller
- postgresql
- postgres
- database
@@ -14,4 +16,4 @@ name: cloudnative-pg
sources:
- https://github.com/cloudnative-pg/charts
type: application
version: 0.19.1
version: 0.20.2

File diff suppressed because one or more lines are too long

View File

@@ -31,8 +31,9 @@ spec:
{{- include "cloudnative-pg.selectorLabels" . | nindent 6 }}
template:
metadata:
{{- with .Values.podAnnotations }}
annotations:
checksum/config: {{ include (print $.Template.BasePath "/config.yaml") . | sha256sum }}
{{- with .Values.podAnnotations }}
{{- toYaml . | nindent 8 }}
{{- end }}
labels:

View File

@@ -0,0 +1,12 @@
{{- if .Values.monitoring.grafanaDashboard.create -}}
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ .Values.monitoring.grafanaDashboard.configMapName }}
namespace: {{ default .Release.Namespace .Values.monitoring.grafanaDashboard.namespace }}
labels:
{{ .Values.monitoring.grafanaDashboard.sidecarLabel }}: {{ .Values.monitoring.grafanaDashboard.sidecarLabelValue | quote }}
data:
cnp.json: |-
{{ .Files.Get "monitoring/grafana-dashboard.json" | indent 6 }}
{{- end -}}

View File

@@ -95,6 +95,26 @@
"monitoring": {
"type": "object",
"properties": {
"grafanaDashboard": {
"type": "object",
"properties": {
"configMapName": {
"type": "string"
},
"create": {
"type": "boolean"
},
"namespace": {
"type": "string"
},
"sidecarLabel": {
"type": "string"
},
"sidecarLabelValue": {
"type": "string"
}
}
},
"podMonitorEnabled": {
"type": "boolean"
}

View File

@@ -139,6 +139,16 @@ affinity: {}
monitoring:
# -- Specifies whether the monitoring should be enabled. Requires Prometheus Operator CRDs.
podMonitorEnabled: false
grafanaDashboard:
create: false
# -- Allows overriding the namespace where the ConfigMap will be created, defaulting to the same one as the Release.
namespace: ""
# -- The name of the ConfigMap containing the dashboard.
configMapName: "cnpg-grafana-dashboard"
# -- Label that ConfigMaps should have to be loaded as dashboards.
sidecarLabel: "grafana_dashboard"
# -- Label value that ConfigMaps should have to be loaded as dashboards.
sidecarLabelValue: "1"
# Default monitoring queries
monitoringQueriesConfigMap: