-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into allow-update-strategy
- Loading branch information
Showing
15 changed files
with
437 additions
and
223 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Deploy a CNPG Cluster | ||
description: Deploys a CNPG Cluster | ||
inputs: | ||
namespace: | ||
description: 'The name of the namespace where the Cluster will be deployed' | ||
required: false | ||
default: 'default' | ||
runs: | ||
using: composite | ||
steps: | ||
- name: Deploy a cluster | ||
shell: bash | ||
env: | ||
NAMESPACE: ${{ inputs.namespace }} | ||
run: | | ||
cat <<EOF | kubectl apply -f - | ||
# Example of PostgreSQL cluster | ||
apiVersion: postgresql.cnpg.io/v1 | ||
kind: Cluster | ||
metadata: | ||
name: cluster-example | ||
namespace: $NAMESPACE | ||
spec: | ||
instances: 3 | ||
storage: | ||
size: 1Gi | ||
EOF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,29 @@ | ||
name: Deploy the CNPG Operator | ||
description: Deploys the CNPG Operator to a Kubernetes cluster | ||
inputs: | ||
namespace: | ||
description: 'The name of the namespace where the operator will be deployed' | ||
required: false | ||
default: 'cnpg-system' | ||
cluster-wide: | ||
description: 'If the operator should be deployed cluster-wide or in single-namespace mode' | ||
required: false | ||
default: 'true' | ||
runs: | ||
using: composite | ||
steps: | ||
- name: Deploy the operator | ||
shell: bash | ||
env: | ||
NAMESPACE: ${{ inputs.namespace }} | ||
CLUSTER_WIDE: ${{ inputs.cluster-wide }} | ||
run: | ||
helm dependency update charts/cloudnative-pg | ||
|
||
helm upgrade | ||
--install | ||
--namespace cnpg-system | ||
--namespace $NAMESPACE | ||
--create-namespace | ||
--set config.clusterWide=$CLUSTER_WIDE | ||
--wait | ||
cnpg charts/cloudnative-pg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,21 @@ | ||
|
||
CloudNativePG operator should be installed in namespace "{{ .Release.Namespace }}". | ||
You can now create a PostgreSQL cluster with 3 nodes in the current namespace as follows: | ||
You can now create a PostgreSQL cluster with 3 nodes as follows: | ||
|
||
cat <<EOF | kubectl apply -f - | ||
# Example of PostgreSQL cluster | ||
apiVersion: postgresql.cnpg.io/v1 | ||
kind: Cluster | ||
metadata: | ||
name: cluster-example | ||
{{if not .Values.config.clusterWide -}} | ||
namespace: {{ .Release.Namespace }} | ||
{{- end }} | ||
spec: | ||
instances: 3 | ||
storage: | ||
size: 1Gi | ||
EOF | ||
|
||
kubectl get cluster | ||
kubectl get -A cluster | ||
|
Oops, something went wrong.