From 75268935e9d7787ac6921b725257e0a242ce0ed0 Mon Sep 17 00:00:00 2001 From: Stanislav Chesnovskii Date: Thu, 21 Oct 2021 21:57:45 +0300 Subject: [PATCH] add crds resources pool to the crds container (#1621) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * add crds resources pool to the crds container Signed-off-by: Stanislav Chesnovskii * [~] manifests Signed-off-by: Stanislav Chesnovskii Co-authored-by: Sertaç Özercan <852750+sozercan@users.noreply.github.com> --- cmd/build/helmify/static/templates/upgrade-crds-hook.yaml | 2 ++ cmd/build/helmify/static/values.yaml | 2 ++ .../charts/gatekeeper/templates/upgrade-crds-hook.yaml | 2 ++ manifest_staging/charts/gatekeeper/values.yaml | 2 ++ 4 files changed, 8 insertions(+) diff --git a/cmd/build/helmify/static/templates/upgrade-crds-hook.yaml b/cmd/build/helmify/static/templates/upgrade-crds-hook.yaml index 78fcaf81cd2..00533bb90d9 100644 --- a/cmd/build/helmify/static/templates/upgrade-crds-hook.yaml +++ b/cmd/build/helmify/static/templates/upgrade-crds-hook.yaml @@ -83,6 +83,8 @@ spec: - apply - -f - crds/ + resources: + {{- toYaml .Values.crds.resources | nindent 10 }} securityContext: allowPrivilegeEscalation: false capabilities: diff --git a/cmd/build/helmify/static/values.yaml b/cmd/build/helmify/static/values.yaml index a6ab8fd3b43..9371ec43aff 100644 --- a/cmd/build/helmify/static/values.yaml +++ b/cmd/build/helmify/static/values.yaml @@ -80,6 +80,8 @@ audit: requests: cpu: 100m memory: 256Mi +crds: + resources: {} pdb: controllerManager: minAvailable: 1 diff --git a/manifest_staging/charts/gatekeeper/templates/upgrade-crds-hook.yaml b/manifest_staging/charts/gatekeeper/templates/upgrade-crds-hook.yaml index 78fcaf81cd2..00533bb90d9 100644 --- a/manifest_staging/charts/gatekeeper/templates/upgrade-crds-hook.yaml +++ b/manifest_staging/charts/gatekeeper/templates/upgrade-crds-hook.yaml @@ -83,6 +83,8 @@ spec: - apply - -f - crds/ + resources: + {{- toYaml .Values.crds.resources | nindent 10 }} securityContext: allowPrivilegeEscalation: false capabilities: diff --git a/manifest_staging/charts/gatekeeper/values.yaml b/manifest_staging/charts/gatekeeper/values.yaml index a6ab8fd3b43..9371ec43aff 100644 --- a/manifest_staging/charts/gatekeeper/values.yaml +++ b/manifest_staging/charts/gatekeeper/values.yaml @@ -80,6 +80,8 @@ audit: requests: cpu: 100m memory: 256Mi +crds: + resources: {} pdb: controllerManager: minAvailable: 1