From: Andreas Geissler Date: Wed, 15 Jan 2025 15:20:03 +0000 (+0100) Subject: [COMMON] Fix errors in mariadb operator template X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=8cdc9776491fed958e6b5f52677aa74e7b6482c6;p=oom.git [COMMON] Fix errors in mariadb operator template - remove SecurytyContext settings - remove fixed primary pod index from template Issue-ID: OOM-3324 Change-Id: I535477ec43cde42cc63f1ab2620cf632eb64c943 Signed-off-by: Andreas Geissler --- diff --git a/kubernetes/common/common/Chart.yaml b/kubernetes/common/common/Chart.yaml index 591f24f4ee..6fce57f83b 100644 --- a/kubernetes/common/common/Chart.yaml +++ b/kubernetes/common/common/Chart.yaml @@ -17,4 +17,4 @@ apiVersion: v2 description: Common templates for inclusion in other charts name: common -version: 13.2.10 +version: 13.2.11 diff --git a/kubernetes/common/common/templates/_mariadb.tpl b/kubernetes/common/common/templates/_mariadb.tpl index 0e46e5ef26..c1447cd0ac 100644 --- a/kubernetes/common/common/templates/_mariadb.tpl +++ b/kubernetes/common/common/templates/_mariadb.tpl @@ -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: