Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/actions/deploy-cluster/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ runs:
env:
NAMESPACE: ${{ inputs.namespace }}
run: |
cat <<EOF | kubectl apply -f -
cat <<EOF | kubectl apply -f --server-side --validate=strict -f -
# Example of PostgreSQL cluster
apiVersion: postgresql.cnpg.io/v1
kind: Cluster
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/deploy-operator/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ runs:
helm dependency update charts/cloudnative-pg

helm upgrade
--install
--install
--namespace $NAMESPACE
--create-namespace
--set config.clusterWide=$CLUSTER_WIDE
Expand Down
11 changes: 9 additions & 2 deletions charts/cluster/templates/_external_clusters.tpl
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
{{- define "cluster.externalClusters" -}}
externalClusters:
{{- if eq .Values.mode "standalone" }}
{{- else if eq .Values.mode "recovery" }}
{{- if .Values.cluster.externalClusters }}
externalClusters:
{{- range .Values.cluster.externalClusters }}
- {{- toYaml . | nindent 4 }}
{{- end }}
{{- end }}
{{- else }}
externalClusters:
{{- if eq .Values.mode "recovery" }}
{{- if eq .Values.recovery.method "pg_basebackup" }}
- name: pgBaseBackupSource
{{- include "cluster.externalSourceCluster" .Values.recovery.pgBaseBackup.source | nindent 4 }}
Expand Down