Skip to content

Commit

Permalink
Added support for PCR via helm chart
Browse files Browse the repository at this point in the history
  • Loading branch information
prafull01 committed Sep 11, 2024
1 parent 7d9b095 commit 8142b9a
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
7 changes: 7 additions & 0 deletions build/templates/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,13 @@ init:
securityContext:
enabled: true

# Setup Physical Cluster Replication (PCR) between primary and standby cluster.
# If isPrimary is set to true, the CockroachDB cluster created is the primary cluster.
# If isPrimary is set to false, the CockroachDB cluster created is the standby cluster.
pcr:
enabled: false
# isPrimary: true

provisioning:
enabled: false
# https://www.cockroachlabs.com/docs/stable/cluster-settings.html
Expand Down
7 changes: 7 additions & 0 deletions cockroachdb/templates/job.init.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,13 @@ spec:
{{- end }}
--host={{ template "cockroachdb.fullname" . }}-0.{{ template "cockroachdb.fullname" . -}}
:{{ .Values.service.ports.grpc.internal.port | int64 }} \
{{- if .Values.init.pcr.enabled -}}
{{- if .Values.init.pcr.isPrimary }}
--virtualized \
{{- else }}
--virtualized-empty \
{{- end }}
{{- end }}
2>&1);
local exitCode="$?";
Expand Down
7 changes: 7 additions & 0 deletions cockroachdb/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,13 @@ init:
securityContext:
enabled: true

# Setup Physical Cluster Replication (PCR) between primary and standby cluster.
# If isPrimary is set to true, the CockroachDB cluster created is the primary cluster.
# If isPrimary is set to false, the CockroachDB cluster created is the standby cluster.
pcr:
enabled: false
# isPrimary: true

provisioning:
enabled: false
# https://www.cockroachlabs.com/docs/stable/cluster-settings.html
Expand Down

0 comments on commit 8142b9a

Please sign in to comment.