Skip to content
Merged
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: 2 additions & 0 deletions scripts/drpc-health-check-argocd-sync-disable.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ echo "Starting DRPC health check and ArgoCD sync disable job..."
echo "This job will check DRPC health (Kubernetes objects and PVCs) and disable ArgoCD sync when healthy"

# Configuration from environment variables
# Target application namespace = pattern-clustergroup (global.pattern + "-" + main.clusterGroupName in values).
# The chart sets ARGOCD_APP_NAMESPACE and PROTECTED_NAMESPACE to this value.
DRPC_NAMESPACE="${DRPC_NAMESPACE:-openshift-dr-ops}"
DRPC_NAME="${DRPC_NAME:-gitops-vm-protection}"
PROTECTED_NAMESPACE="${PROTECTED_NAMESPACE:-gitops-vms}"
Expand Down
6 changes: 3 additions & 3 deletions templates/job-drpc-health-check-argocd-sync-disable.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,15 @@ spec:
{{ .Files.Get "scripts/drpc-health-check-argocd-sync-disable.sh" | indent 10 }}
env:
- name: DRPC_NAMESPACE
value: "openshift-dr-ops"
value: {{ (index (.Values.drpc | default dict) "namespace") | default "openshift-dr-ops" | quote }}
- name: DRPC_NAME
value: "gitops-vm-protection"
value: {{ (index (.Values.drpc | default dict) "name") | default "gitops-vm-protection" | quote }}
- name: PROTECTED_NAMESPACE
value: "gitops-vms"
- name: ARGOCD_APP_NAME
value: "regional-dr"
- name: ARGOCD_APP_NAMESPACE
value: "ramendr-starter-kit-hub"
value: {{ printf "%s-%s" (.Values.global.pattern | default "ramendr-starter-kit-hub") (index (.Values.main | default dict) "clusterGroupName" | default "hub") | quote }}
- name: KUBECONFIG
value: ""

6 changes: 6 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
---
global:
clusterDomain: cluster.example.com
# Pattern name; target application namespace = global.pattern-main.clusterGroupName
pattern: ramendr-starter-kit-hub

# Main cluster group (primary); target application namespace = global.pattern-main.clusterGroupName
main:
clusterGroupName: resilient

# Edge GitOps VMs deployment (script and helm chart)
edgeGitopsVms:
Expand Down
Loading