Skip to content

Commit

Permalink
Release edb-postgres-for-kubernetes-v0.20.4
Browse files Browse the repository at this point in the history
Signed-off-by: Tao Li <[email protected]>
  • Loading branch information
litaocdl committed Oct 14, 2024
1 parent 661750b commit 1dc1bda
Show file tree
Hide file tree
Showing 13 changed files with 745 additions and 167 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/continuous-delivery.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
ep4k-changed: ${{ steps.filter.outputs.ep4k-changed }}
steps:
- name: Checkout
uses: actions/[email protected].2
uses: actions/[email protected].7

- name: Check for changes
uses: dorny/[email protected]
Expand All @@ -34,25 +34,25 @@ jobs:
if: needs.change-triage.outputs.ep4k-changed == 'true'
steps:
- name: Checkout
uses: actions/[email protected].2
uses: actions/[email protected].7
with:
fetch-depth: 0

- name: Set up Helm
uses: azure/setup-helm@v3.5
uses: azure/setup-helm@v4
with:
version: v3.11.3

- name: Create kind cluster
uses: helm/kind-action@v1.9.0
uses: helm/kind-action@v1.10.0

- name: Deploy using helm chart
run: |
helm upgrade --install edb-pg4k --namespace postgresql-operator-system \
--create-namespace charts/edb-postgres-for-kubernetes --wait
- name: Install kubectl
uses: azure/setup-kubectl@v3.2
uses: azure/setup-kubectl@v4

- name: Deploy a cluster
run: |
Expand All @@ -68,17 +68,17 @@ jobs:
if: needs.change-triage.outputs.pg4k-pgd-changed == 'true'
steps:
- name: Checkout
uses: actions/[email protected].2
uses: actions/[email protected].7
with:
fetch-depth: 0

- name: Set up Helm
uses: azure/setup-helm@v3.5
uses: azure/setup-helm@v4
with:
version: v3.11.3

- name: Create kind cluster
uses: helm/kind-action@v1.9.0
uses: helm/kind-action@v1.10.0

- name: Deploy using helm chart
run: |
Expand All @@ -91,7 +91,7 @@ jobs:
- name: Install kubectl
uses: azure/setup-kubectl@v3.2
uses: azure/setup-kubectl@v4

- name: Deploy a cluster
run: |
Expand All @@ -110,25 +110,25 @@ jobs:
if: needs.change-triage.outputs.ep4k-changed == 'true'
steps:
- name: Checkout
uses: actions/[email protected].1
uses: actions/[email protected].7
with:
fetch-depth: 0

- name: Set up Helm
uses: azure/setup-helm@v3.5
uses: azure/setup-helm@v4
with:
version: v3.11.3

- name: Create kind cluster
uses: helm/kind-action@v1.8.0
uses: helm/kind-action@v1.10.0

- name: Deploy in single-namespace mode using helm chart
run: |
helm upgrade --install edb-pg4k --namespace single-install \
--set config.clusterWide=false \
--create-namespace charts/edb-postgres-for-kubernetes --wait
- name: Install kubectl
uses: azure/setup-kubectl@v3.2
uses: azure/setup-kubectl@v4

- name: Deploy a cluster in the watched namespace
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ jobs:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/[email protected].2
uses: actions/[email protected].7
with:
fetch-depth: 0

- name: Set up Helm
uses: azure/setup-helm@v3.5
uses: azure/setup-helm@v4
with:
version: v3.11.3

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
steps:
-
name: Checkout
uses: actions/[email protected].2
uses: actions/[email protected].7
-
name: Get tag
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/[email protected].2
uses: actions/[email protected].7
with:
fetch-depth: 0

Expand All @@ -24,7 +24,7 @@ jobs:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/[email protected].2
uses: actions/[email protected].7
with:
ref: gh-pages
fetch-depth: 0
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
steps:
-
name: Checkout
uses: actions/[email protected].2
uses: actions/[email protected].7
-
name: Temporarily disable "include administrators" branch protection
if: ${{ always() && github.ref == 'refs/heads/main' }}
Expand Down
2 changes: 2 additions & 0 deletions charts/edb-postgres-distributed-for-kubernetes/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,5 @@ EDB Postgres Distributed for Kubernetes Helm Chart
| webhook.validating.create | bool | `true` | |
| webhook.validating.failurePolicy | string | `"Fail"` | |

----------------------------------------------
Autogenerated from chart metadata using [helm-docs v1.11.0](https://github.com/norwoodj/helm-docs/releases/v1.11.0)
4 changes: 2 additions & 2 deletions charts/edb-postgres-for-kubernetes/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ name: edb-postgres-for-kubernetes
description: EDB Postgres for Kubernetes Helm Chart
icon: https://www.enterprisedb.com/themes/custom/edb_bootstrap_sass/edb-logo-disc-dark-2.svg
type: application
version: "0.20.3"
version: "0.20.4"
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "1.22.2"
appVersion: "1.22.6"
sources:
- https://github.com/EnterpriseDB/edb-postgres-for-kubernetes-charts
keywords:
Expand Down
7 changes: 5 additions & 2 deletions charts/edb-postgres-for-kubernetes/README.md

Large diffs are not rendered by default.

12 changes: 0 additions & 12 deletions charts/edb-postgres-for-kubernetes/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -372,14 +372,6 @@ namespace scope or clusterwide
Define the set of rules that must be applied clusterwide
*/}}
{{- define "edb-postgres-for-kubernetes.clusterwideRules" }}
- apiGroups:
- ""
resources:
- namespaces
verbs:
- get
- list
- watch
- apiGroups:
- ""
resources:
Expand All @@ -394,18 +386,14 @@ Define the set of rules that must be applied clusterwide
- mutatingwebhookconfigurations
verbs:
- get
- list
- patch
- update
- apiGroups:
- admissionregistration.k8s.io
resources:
- validatingwebhookconfigurations
verbs:
- get
- list
- patch
- update
- apiGroups:
- apiextensions.k8s.io
resources:
Expand Down
12 changes: 9 additions & 3 deletions charts/edb-postgres-for-kubernetes/templates/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,14 @@ metadata:
{{- toYaml . | nindent 4 }}
{{- end }}
data:
{{- if .Values.config.clusterWide -}}
{{- if .Values.config.clusterWide -}}
{{- toYaml .Values.config.data | nindent 2 }}
{{- else -}}
{{- $watchNamespaceMap := dict "WATCH_NAMESPACE" .Release.Namespace -}}
{{- $fullConfiguration := merge .Values.config.data $watchNamespaceMap -}}
{{- toYaml $fullConfiguration | nindent 2 }}
{{- end -}}
{{- end }}
{{- else -}}
{{- else }}
apiVersion: v1
kind: Secret
type: Opaque
Expand All @@ -46,5 +45,12 @@ metadata:
{{- toYaml . | nindent 4 }}
{{- end }}
stringData:
{{- if .Values.config.clusterWide -}}
{{- toYaml .Values.config.data | nindent 2 }}
{{- else -}}
{{- $watchNamespaceMap := dict "WATCH_NAMESPACE" .Release.Namespace -}}
{{- $fullConfiguration := merge .Values.config.data $watchNamespaceMap -}}
{{- toYaml $fullConfiguration | nindent 2 }}
{{- end -}}
{{- end }}
{{- end }}
Loading

0 comments on commit 1dc1bda

Please sign in to comment.