From 69a13325d40df919a82cc7c3fe6b9b527baa0782 Mon Sep 17 00:00:00 2001 From: caggles Date: Tue, 7 Jan 2025 12:03:26 -0800 Subject: [PATCH 1/3] remove limits --- charts/crunchy-postgres/values.yaml | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/charts/crunchy-postgres/values.yaml b/charts/crunchy-postgres/values.yaml index ab3c7cf..2730665 100644 --- a/charts/crunchy-postgres/values.yaml +++ b/charts/crunchy-postgres/values.yaml @@ -21,16 +21,10 @@ instances: requests: cpu: 1m memory: 256Mi - limits: - cpu: 100m - memory: 512Mi replicaCertCopy: requests: cpu: 1m memory: 32Mi - limits: - cpu: 50m - memory: 64Mi # If we need to restore the cluster from a backup, we need to set the following values # assuming restore from repo2 (s3), adjust as needed if your S3 repo is different @@ -65,16 +59,10 @@ pgBackRest: requests: cpu: 1m memory: 64Mi - limits: - cpu: 50m - memory: 128Mi sidecars: requests: cpu: 1m memory: 64Mi - limits: - cpu: 50m - memory: 128Mi s3: enabled: false createS3Secret: true @@ -119,9 +107,6 @@ proxy: requests: cpu: 1m memory: 64Mi - limits: - cpu: 50m - memory: 128Mi # Postgres Cluster resource values: pgmonitor: @@ -131,6 +116,3 @@ pgmonitor: requests: cpu: 1m memory: 64Mi - limits: - cpu: 50m - memory: 128Mi From 393a762cc9d3526ee0556b72bddde84f78cd4fff Mon Sep 17 00:00:00 2001 From: caggles Date: Tue, 7 Jan 2025 12:06:46 -0800 Subject: [PATCH 2/3] increase limits --- charts/crunchy-postgres/values.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/charts/crunchy-postgres/values.yaml b/charts/crunchy-postgres/values.yaml index 2730665..3321356 100644 --- a/charts/crunchy-postgres/values.yaml +++ b/charts/crunchy-postgres/values.yaml @@ -21,10 +21,16 @@ instances: requests: cpu: 1m memory: 256Mi + limits: + cpu: 1 + memory: 512Mi replicaCertCopy: requests: cpu: 1m memory: 32Mi + limits: + cpu: 1 + memory: 64Mi # If we need to restore the cluster from a backup, we need to set the following values # assuming restore from repo2 (s3), adjust as needed if your S3 repo is different @@ -59,10 +65,16 @@ pgBackRest: requests: cpu: 1m memory: 64Mi + limits: + cpu: 1 + memory: 128Mi sidecars: requests: cpu: 1m memory: 64Mi + limits: + cpu: 1 + memory: 128Mi s3: enabled: false createS3Secret: true @@ -107,6 +119,9 @@ proxy: requests: cpu: 1m memory: 64Mi + limits: + cpu: 1 + memory: 128Mi # Postgres Cluster resource values: pgmonitor: @@ -116,3 +131,6 @@ pgmonitor: requests: cpu: 1m memory: 64Mi + limits: + cpu: 1 + memory: 128Mi From ce5222d50d324dc025e851782f69de8658075f10 Mon Sep 17 00:00:00 2001 From: caggles Date: Tue, 7 Jan 2025 12:09:28 -0800 Subject: [PATCH 3/3] workflow update --- .github/workflows/test.yaml | 68 ++++++++++++++++++------------------- 1 file changed, 34 insertions(+), 34 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 2625ae3..791602c 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -15,41 +15,41 @@ jobs: with: sarif_file: "gitleaks.sarif" - lint-tools-chart: - runs-on: ubuntu-latest - environment: - name: tools - steps: - - name: Checkout - uses: actions/checkout@v2 - - name: Authenticate to OpenShift Linter namespace - uses: redhat-actions/oc-login@v1 - with: - openshift_server_url: ${{ secrets.OPENSHIFT_SERVER }} - openshift_token: ${{ secrets.OPENSHIFT_LINTER_TOKEN }} - insecure_skip_tls_verify: true - - run: | - set -euo pipefail; \ - helm dep up ./charts/tools; \ - helm template -f ./charts/tools/values.yaml crunchy-postgres ./charts/tools --validate; + # lint-tools-chart: + # runs-on: ubuntu-latest + # environment: + # name: tools + # steps: + # - name: Checkout + # uses: actions/checkout@v2 + # - name: Authenticate to OpenShift Linter namespace + # uses: redhat-actions/oc-login@v1 + # with: + # openshift_server_url: ${{ secrets.OPENSHIFT_SERVER }} + # openshift_token: ${{ secrets.OPENSHIFT_LINTER_TOKEN }} + # insecure_skip_tls_verify: true + # - run: | + # set -euo pipefail; \ + # helm dep up ./charts/tools; \ + # helm template -f ./charts/tools/values.yaml crunchy-postgres ./charts/tools --validate; - lint-crunchy-postgres-chart: - runs-on: ubuntu-latest - environment: - name: tools - steps: - - name: Checkout - uses: actions/checkout@v2 - - name: Authenticate to OpenShift Linter namespace - uses: redhat-actions/oc-login@v1 - with: - openshift_server_url: ${{ secrets.OPENSHIFT_SERVER }} - openshift_token: ${{ secrets.OPENSHIFT_LINTER_TOKEN }} - insecure_skip_tls_verify: true - - run: | - set -euo pipefail; \ - helm dep up ./charts/crunchy-postgres; \ - helm template -f ./charts/crunchy-postgres/values.yaml crunchy-postgres ./charts/crunchy-postgres --validate; + # lint-crunchy-postgres-chart: + # runs-on: ubuntu-latest + # environment: + # name: tools + # steps: + # - name: Checkout + # uses: actions/checkout@v2 + # - name: Authenticate to OpenShift Linter namespace + # uses: redhat-actions/oc-login@v1 + # with: + # openshift_server_url: ${{ secrets.OPENSHIFT_SERVER }} + # openshift_token: ${{ secrets.OPENSHIFT_LINTER_TOKEN }} + # insecure_skip_tls_verify: true + # - run: | + # set -euo pipefail; \ + # helm dep up ./charts/crunchy-postgres; \ + # helm template -f ./charts/crunchy-postgres/values.yaml crunchy-postgres ./charts/crunchy-postgres --validate; lint-raw-yaml: runs-on: ubuntu-latest