From c833d5ee161ce2ed0a82e4d6011d2d1da423e94a Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 16 Aug 2026 19:50:15 +0300 Subject: [PATCH 1/2] chore(deps): update actions/checkout action to v7.0.1 (#960) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Itay Grudev --- .github/workflows/lint.yml | 4 ++-- .github/workflows/release-pr.yml | 2 +- .github/workflows/release-publish.yml | 2 +- .github/workflows/tests-cluster-chainsaw.yaml | 4 ++-- .github/workflows/tests-operator.yml | 4 ++-- .github/workflows/tests-plugin-barman-cloud.yaml | 4 ++-- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index fac76092b1..38573738eb 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -16,7 +16,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: fetch-depth: 0 @@ -29,7 +29,7 @@ jobs: runs-on: ubuntu-24.04 steps: - name: Checkout - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: fetch-depth: 0 diff --git a/.github/workflows/release-pr.yml b/.github/workflows/release-pr.yml index 2338025e31..b85cf1ea10 100644 --- a/.github/workflows/release-pr.yml +++ b/.github/workflows/release-pr.yml @@ -17,7 +17,7 @@ jobs: pull-requests: write steps: - name: Checkout - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - name: Create Pull Request id: create-pr env: diff --git a/.github/workflows/release-publish.yml b/.github/workflows/release-publish.yml index f20670b7b1..11893777d2 100644 --- a/.github/workflows/release-publish.yml +++ b/.github/workflows/release-publish.yml @@ -21,7 +21,7 @@ jobs: id-token: write # Required for signing steps: - name: Checkout - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: fetch-depth: 0 # important for fetching all history to run comparison against diff --git a/.github/workflows/tests-cluster-chainsaw.yaml b/.github/workflows/tests-cluster-chainsaw.yaml index 140a8cb129..fd6db351fe 100644 --- a/.github/workflows/tests-cluster-chainsaw.yaml +++ b/.github/workflows/tests-cluster-chainsaw.yaml @@ -14,7 +14,7 @@ jobs: tests: ${{ steps.listTests.outputs.tests }} steps: - name: Checkout - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: fetch-depth: 1 - id: listTests @@ -29,7 +29,7 @@ jobs: name: ${{matrix.test}} steps: - name: Checkout - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: fetch-depth: 0 diff --git a/.github/workflows/tests-operator.yml b/.github/workflows/tests-operator.yml index fe32fb2829..1e44c537b2 100644 --- a/.github/workflows/tests-operator.yml +++ b/.github/workflows/tests-operator.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-24.04 steps: - name: Checkout - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: fetch-depth: 0 @@ -37,7 +37,7 @@ jobs: runs-on: ubuntu-24.04 steps: - name: Checkout - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: fetch-depth: 0 diff --git a/.github/workflows/tests-plugin-barman-cloud.yaml b/.github/workflows/tests-plugin-barman-cloud.yaml index c1a6cc0dc4..46905894c6 100644 --- a/.github/workflows/tests-plugin-barman-cloud.yaml +++ b/.github/workflows/tests-plugin-barman-cloud.yaml @@ -14,7 +14,7 @@ jobs: tests: ${{ steps.listTests.outputs.tests }} steps: - name: Checkout - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: fetch-depth: 1 - id: listTests @@ -31,7 +31,7 @@ jobs: name: ${{ matrix.test }} steps: - name: Checkout - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: fetch-depth: 0 From ca455db32c13c5a22573c8fcb58c403bae524339 Mon Sep 17 00:00:00 2001 From: rabbidby Date: Tue, 1 Sep 2026 19:36:21 +0300 Subject: [PATCH 2/2] feat(cluster): add ephemeralVolumeSource support Signed-off-by: rabbidby --- charts/cluster/README.md | 1 + charts/cluster/templates/cluster.yaml | 4 ++++ .../01-non_default_configuration_cluster-assert.yaml | 9 +++++++++ .../01-non_default_configuration_cluster.yaml | 9 +++++++++ charts/cluster/values.schema.json | 5 +++++ charts/cluster/values.yaml | 11 +++++++++++ 6 files changed, 39 insertions(+) diff --git a/charts/cluster/README.md b/charts/cluster/README.md index b3d37062ad..cbb3324135 100644 --- a/charts/cluster/README.md +++ b/charts/cluster/README.md @@ -202,6 +202,7 @@ Kubernetes: `>=1.29.0-0` | cluster.enableSuperuserAccess | bool | `true` | When this option is enabled, the operator will use the SuperuserSecret to update the postgres user password. If the secret is not present, the operator will automatically create one. When this option is disabled, the operator will ignore the SuperuserSecret content, delete it when automatically created, and then blank the password of the postgres user by setting it to NULL. | | cluster.env | list | `[]` | Env follows the Env format to pass environment variables to the pods created in the cluster | | cluster.envFrom | list | `[]` | EnvFrom follows the EnvFrom format to pass environment variables sources to the pods to be used by Env | +| cluster.ephemeralVolumeSource | object | `{}` | Override the default emptyDir used by CNPG for temporary storage. See: https://cloudnative-pg.io/documentation/current/cluster_conf/#ephemeral-volumes | | cluster.imageCatalogRef | object | `{}` | Reference to `ImageCatalog` of `ClusterImageCatalog`, if specified takes precedence over `cluster.imageName` | | cluster.imageName | string | `""` | Name of the container image, supporting both tags (:) and digests for deterministic and repeatable deployments: :@sha256: | | cluster.imagePullPolicy | string | `"IfNotPresent"` | Image pull policy. One of Always, Never or IfNotPresent. If not defined, it defaults to IfNotPresent. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images | diff --git a/charts/cluster/templates/cluster.yaml b/charts/cluster/templates/cluster.yaml index ecf04b6de2..b090c94e99 100644 --- a/charts/cluster/templates/cluster.yaml +++ b/charts/cluster/templates/cluster.yaml @@ -31,6 +31,10 @@ spec: storageClass: {{ .Values.cluster.walStorage.storageClass }} {{- end }} {{- end }} + {{- with .Values.cluster.ephemeralVolumeSource }} + ephemeralVolumeSource: + {{- toYaml . | nindent 4 }} + {{- end }} {{- with .Values.cluster.resources }} resources: {{- toYaml . | nindent 4 }} diff --git a/charts/cluster/test/postgresql-cluster-configuration/01-non_default_configuration_cluster-assert.yaml b/charts/cluster/test/postgresql-cluster-configuration/01-non_default_configuration_cluster-assert.yaml index 9d899a0237..6877877ab1 100644 --- a/charts/cluster/test/postgresql-cluster-configuration/01-non_default_configuration_cluster-assert.yaml +++ b/charts/cluster/test/postgresql-cluster-configuration/01-non_default_configuration_cluster-assert.yaml @@ -70,6 +70,15 @@ spec: walStorage: size: 256Mi storageClass: standard + ephemeralVolumeSource: + volumeClaimTemplate: + spec: + accessModes: + - ReadWriteOnce + storageClassName: scratch-storage-class + resources: + requests: + storage: 1Gi affinity: topologyKey: kubernetes.io/hostname nodeAffinity: diff --git a/charts/cluster/test/postgresql-cluster-configuration/01-non_default_configuration_cluster.yaml b/charts/cluster/test/postgresql-cluster-configuration/01-non_default_configuration_cluster.yaml index 13805d3335..c08b2689df 100644 --- a/charts/cluster/test/postgresql-cluster-configuration/01-non_default_configuration_cluster.yaml +++ b/charts/cluster/test/postgresql-cluster-configuration/01-non_default_configuration_cluster.yaml @@ -13,6 +13,15 @@ cluster: enabled: true size: 256Mi storageClass: standard + ephemeralVolumeSource: + volumeClaimTemplate: + spec: + accessModes: + - ReadWriteOnce + storageClassName: scratch-storage-class + resources: + requests: + storage: 1Gi postgresUID: 1001 postgresGID: 1002 resources: diff --git a/charts/cluster/values.schema.json b/charts/cluster/values.schema.json index cf581a8577..1444635279 100644 --- a/charts/cluster/values.schema.json +++ b/charts/cluster/values.schema.json @@ -318,6 +318,11 @@ }, "type": "array" }, + "ephemeralVolumeSource": { + "description": "Override the default emptyDir used by CNPG for temporary storage.\nSee: https://cloudnative-pg.io/documentation/current/cluster_conf/#ephemeral-volumes", + "required": [], + "type": "object" + }, "imageCatalogRef": { "description": "Reference to `ImageCatalog` of `ClusterImageCatalog`, if specified takes precedence over `cluster.imageName`", "required": [], diff --git a/charts/cluster/values.yaml b/charts/cluster/values.yaml index a85aa39f9b..e6cdfeb629 100644 --- a/charts/cluster/values.yaml +++ b/charts/cluster/values.yaml @@ -222,6 +222,17 @@ cluster: size: 1Gi storageClass: "" + # -- Override the default emptyDir used by CNPG for temporary storage. + # See: https://cloudnative-pg.io/documentation/current/cluster_conf/#ephemeral-volumes + ephemeralVolumeSource: {} + # volumeClaimTemplate: + # spec: + # accessModes: ["ReadWriteOnce"] + # storageClassName: "scratch-storage-class" + # resources: + # requests: + # storage: 1Gi + # -- The UID of the postgres user inside the image, defaults to 26 postgresUID: -1