[COMMON] Fix errors in mariadb operator template 09/139909/1
authorAndreas Geissler <andreas-geissler@telekom.de>
Wed, 15 Jan 2025 15:20:03 +0000 (16:20 +0100)
committerAndreas Geissler <andreas-geissler@telekom.de>
Wed, 15 Jan 2025 15:20:03 +0000 (16:20 +0100)
- remove SecurytyContext settings
- remove fixed primary pod index from template

Issue-ID: OOM-3324

Change-Id: I535477ec43cde42cc63f1ab2620cf632eb64c943
Signed-off-by: Andreas Geissler <andreas-geissler@telekom.de>
kubernetes/common/common/Chart.yaml
kubernetes/common/common/templates/_mariadb.tpl

index 591f24f..6fce57f 100644 (file)
@@ -17,4 +17,4 @@
 apiVersion: v2
 description: Common templates for inclusion in other charts
 name: common
-version: 13.2.10
+version: 13.2.11
index 0e46e5e..c1447cd 100644 (file)
@@ -312,6 +312,7 @@ spec:
         authDelegatorRoleName: {{ $dbinst }}-auth
       gracefulShutdownTimeout: 5s
       securityContext:
+        readOnlyFileSystem: true
         allowPrivilegeEscalation: false
         capabilities:
           drop:
@@ -320,11 +321,8 @@ spec:
         privileged: false
         runAsNonRoot: true
         runAsUser: 10001
-        seccompProfile:
-          type: RuntimeDefault
     primary:
       automaticFailover: true
-      podIndex: 0
     recovery:
       enabled: true
       clusterHealthyTimeout: 30s
@@ -344,8 +342,6 @@ spec:
         privileged: false
         runAsNonRoot: true
         runAsUser: 10001
-        seccompProfile:
-          type: RuntimeDefault
     config:
       reuseStorageVolume: false
       volumeClaimTemplate: