File tree Expand file tree Collapse file tree 2 files changed +28
-1
lines changed
kubernetes/linera-validator Expand file tree Collapse file tree 2 files changed +28
-1
lines changed Original file line number Diff line number Diff line change @@ -97,8 +97,30 @@ releases:
9797 - scylla-operator/scylla-operator
9898 values :
9999 - {{ env "LINERA_HELMFILE_VALUES_SCYLLA" | default "scylla.values.yaml.gotmpl" }}
100- {{- if and .Values.gcpRun .Values.usingLocalSsd }}
101100 hooks :
101+ - events : ["presync"]
102+ showlogs : true
103+ command : bash
104+ args :
105+ - -c
106+ - |
107+ set -euxo pipefail
108+
109+ kube_args=(
110+ {{- if .Values.kubeContext }}
111+ --context {{ .Values.kubeContext }}
112+ {{- end }}
113+ {{- if .Values.kubeConfigPath }}
114+ --kubeconfig {{ .Values.kubeConfigPath }}
115+ {{- end }}
116+ )
117+
118+ echo "Ensuring scylla namespace exists..."
119+ kubectl "${kube_args[@]}" create namespace scylla 2>/dev/null || true
120+
121+ echo "Ensuring scylla-config ConfigMap exists before deploying ScyllaCluster..."
122+ kubectl "${kube_args[@]}" apply -f templates/scylla-config.yaml
123+ {{- if and .Values.gcpRun .Values.usingLocalSsd }}
102124 - events : ["presync"]
103125 showlogs : true
104126 command : bash
Original file line number Diff line number Diff line change @@ -3,6 +3,11 @@ kind: ConfigMap
33metadata :
44 name : scylla-config
55 namespace : scylla
6+ labels :
7+ app.kubernetes.io/managed-by : Helm
8+ annotations :
9+ meta.helm.sh/release-name : linera-core
10+ meta.helm.sh/release-namespace : default
611data :
712 scylla.yaml : |
813 query_tombstone_page_limit: 200000
You can’t perform that action at this time.
0 commit comments