From 6e864b292d96f0910acf2bac6cf34ae2c32eddc6 Mon Sep 17 00:00:00 2001 From: Manuel Esberger <esberger.manuel@live.at> Date: Thu, 17 Oct 2024 18:12:30 +0200 Subject: [PATCH] add patch script for ltbpass --- helm/dbrepo/values.yaml | 2 +- helm/fix_identity.sh | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/helm/dbrepo/values.yaml b/helm/dbrepo/values.yaml index 6b02c06b4c..415b8c61e8 100644 --- a/helm/dbrepo/values.yaml +++ b/helm/dbrepo/values.yaml @@ -801,7 +801,7 @@ identityservice: allowPrivilegeEscalation: false runAsUser: null #todo: does not overwrite ltb-passwd: - enabled: false + enabled: true ingress: enabled: false global: diff --git a/helm/fix_identity.sh b/helm/fix_identity.sh index a5772e2e98..1d4cf69841 100644 --- a/helm/fix_identity.sh +++ b/helm/fix_identity.sh @@ -65,4 +65,21 @@ oc patch statefulset $STATEFULSET_NAME -n $NAMESPACE --type='json' -p='[ "op": "remove", "path": "/spec/template/spec/containers/0/securityContext/runAsUser" } +]' + + +oc patch deployment dbrepo-ltb-passwd -n $NAMESPACE --type='json' -p='[ + { + "op": "add", + "path": "/spec/template/spec/containers/0/resources", + "value": { + "limits": { + "memory": "512Mi" + }, + "requests": { + "cpu": "25m", + "memory": "256Mi" + } + } + } ]' \ No newline at end of file -- GitLab