From 6cea6c423641e7961cf082d061221ea8bde3c7de Mon Sep 17 00:00:00 2001 From: matthias Date: Tue, 2 Apr 2024 08:31:40 +0200 Subject: [PATCH 1/2] some modifications --- ...perator-service-account-rbac-openshift.yaml | 18 +++++++++--------- .../postgresql-operator-configuration.yaml | 6 +++--- setup/helm/operator/values.yaml | 1 + 3 files changed, 13 insertions(+), 12 deletions(-) diff --git a/setup/helm/operator/templates/operator-service-account-rbac-openshift.yaml b/setup/helm/operator/templates/operator-service-account-rbac-openshift.yaml index 8005f3c..8ad0ccc 100644 --- a/setup/helm/operator/templates/operator-service-account-rbac-openshift.yaml +++ b/setup/helm/operator/templates/operator-service-account-rbac-openshift.yaml @@ -50,15 +50,15 @@ rules: # - update # - watch # to create or get/update CRDs when starting up -- apiGroups: - - apiextensions.k8s.io - resources: - - customresourcedefinitions - verbs: - - create - - get - - patch - - update +# - apiGroups: +# - apiextensions.k8s.io +# resources: +# - customresourcedefinitions +# verbs: +# - create +# - get +# - patch +# - update # to read configuration and manage ConfigMaps used by Patroni - apiGroups: - "" diff --git a/setup/helm/operator/templates/postgresql-operator-configuration.yaml b/setup/helm/operator/templates/postgresql-operator-configuration.yaml index caa2a02..4e0cdd7 100644 --- a/setup/helm/operator/templates/postgresql-operator-configuration.yaml +++ b/setup/helm/operator/templates/postgresql-operator-configuration.yaml @@ -3,7 +3,7 @@ kind: OperatorConfiguration metadata: name: postgresql-operator-configuration configuration: - docker_image: docker.io/cybertecpostgresql/cybertec-pg-container:postgres-15.2-4 + docker_image: {{ .Values.operatorSettings.postgresImage }} # enable_crd_registration: true # crd_categories: # - all @@ -52,7 +52,7 @@ configuration: cluster_domain: cluster.local cluster_labels: application: cpo - cluster_name_label: cluster-name + cluster_name_label: cluster.cpo.opensource.cybertec.at/name inherited_labels: - cpo_monitoring_stack # custom_pod_annotations: @@ -95,7 +95,7 @@ configuration: # pod_environment_secret: "my-custom-secret" pod_management_policy: "ordered_ready" # pod_priority_class_name: "postgres-pod-priority" - pod_role_label: spilo-role + pod_role_label: member.cpo.opensource.cybertec.at/role # pod_service_account_definition: "" pod_service_account_name: cpo-pod # pod_service_account_role_binding_definition: "" diff --git a/setup/helm/operator/values.yaml b/setup/helm/operator/values.yaml index ecee6d3..f58a968 100644 --- a/setup/helm/operator/values.yaml +++ b/setup/helm/operator/values.yaml @@ -16,6 +16,7 @@ imagePullSecretNames: [] # Define the operator settings to add to the configmap operatorSettings: operatorImage: 'docker.io/cybertecpostgresql/cybertec-pg-operator:v0.7.0-2-rc1' + postgresImage: 'docker.io/cybertecpostgresql/cybertec-pg-container:postgres-16.2-2-rc1' watched_namespace: '*' enable_pod_antiaffinity: 'true' operator_namespace: 'cpo' From 7c93b65955d64447f0d856fed96aa7d6e1bbefc2 Mon Sep 17 00:00:00 2001 From: matthias Date: Tue, 2 Apr 2024 08:39:00 +0200 Subject: [PATCH 2/2] some modifications --- ...erator-service-account-rbac-openshift.yaml | 32 ++++++------------- 1 file changed, 9 insertions(+), 23 deletions(-) diff --git a/setup/helm/operator/templates/operator-service-account-rbac-openshift.yaml b/setup/helm/operator/templates/operator-service-account-rbac-openshift.yaml index 8ad0ccc..22a2fc3 100644 --- a/setup/helm/operator/templates/operator-service-account-rbac-openshift.yaml +++ b/setup/helm/operator/templates/operator-service-account-rbac-openshift.yaml @@ -35,30 +35,16 @@ rules: - get - list - watch -# all verbs allowed for event streams (Zalando-internal feature) -# - apiGroups: -# - zalando.org -# resources: -# - fabriceventstreams -# verbs: -# - create -# - delete -# - deletecollection -# - get -# - list -# - patch -# - update -# - watch # to create or get/update CRDs when starting up -# - apiGroups: -# - apiextensions.k8s.io -# resources: -# - customresourcedefinitions -# verbs: -# - create -# - get -# - patch -# - update +- apiGroups: + - apiextensions.k8s.io + resources: + - customresourcedefinitions + verbs: + - create + - get + - patch + - update # to read configuration and manage ConfigMaps used by Patroni - apiGroups: - ""