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
24 changes: 23 additions & 1 deletion kubernetes/linera-validator/helmfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,30 @@ releases:
- scylla-operator/scylla-operator
values:
- {{ env "LINERA_HELMFILE_VALUES_SCYLLA" | default "scylla.values.yaml.gotmpl" }}
{{- if and .Values.gcpRun .Values.usingLocalSsd }}
hooks:
- events: ["presync"]
showlogs: true
command: bash
args:
- -c
- |
set -euxo pipefail

kube_args=(
{{- if .Values.kubeContext }}
--context {{ .Values.kubeContext }}
{{- end }}
{{- if .Values.kubeConfigPath }}
--kubeconfig {{ .Values.kubeConfigPath }}
{{- end }}
)

echo "Ensuring scylla namespace exists..."
kubectl "${kube_args[@]}" create namespace scylla 2>/dev/null || true

echo "Ensuring scylla-config ConfigMap exists before deploying ScyllaCluster..."
kubectl "${kube_args[@]}" apply -f templates/scylla-config.yaml
{{- if and .Values.gcpRun .Values.usingLocalSsd }}
- events: ["presync"]
showlogs: true
command: bash
Expand Down
4 changes: 2 additions & 2 deletions kubernetes/linera-validator/templates/block-exporter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ spec:
memory: "128Mi"
cpu: "100m"
command:
- sh
- bash
- -c
- |
set -euo pipefail
Expand Down Expand Up @@ -128,7 +128,7 @@ spec:
- sh
- -c
- |
set -euo pipefail
set -eu
# Validate extracted values
if [ -z "$INDEXER_ENDPOINT" ] || [ -z "$INDEXER_PORT" ]; then
echo "Error: INDEXER_ENDPOINT or INDEXER_PORT is empty"
Expand Down
5 changes: 5 additions & 0 deletions kubernetes/linera-validator/templates/scylla-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ kind: ConfigMap
metadata:
name: scylla-config
namespace: scylla
labels:
app.kubernetes.io/managed-by: Helm
annotations:
meta.helm.sh/release-name: linera-core
meta.helm.sh/release-namespace: default
data:
scylla.yaml: |
query_tombstone_page_limit: 200000
Expand Down
Loading