Skip to content

Commit 5efcfc5

Browse files
authored
fix: ck ops commands (#2477)
Co-authored-by: loomts <loomts@users.noreply.github.com>
1 parent b12c6fd commit 5efcfc5

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

addons/clickhouse/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ spec:
8484
- name: clickhouse
8585
shards: 1
8686
template:
87+
name: clickhouse
8788
replicas: 1
8889
systemAccounts:
8990
- name: admin

addons/clickhouse/scripts/post-for-rebuild.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/bin/bash
2-
source /scripts/common.sh
32

43
component_name=${instanceName%-*}
54
instance_fqdn=${instanceName}.${component_name}-headless

addons/clickhouse/scripts/post-for-scale-out-shard.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/bin/bash
2-
source /scripts/common.sh
32

43
declare -a new_shard_pod_fqdns=()
54
declare -a old_shard_available_pod_fqdns=()

addons/clickhouse/templates/opsdefinition.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ spec:
4949
- bash
5050
- -c
5151
- |
52+
{{- .Files.Get "scripts/common.sh" | nindent 18 }}
5253
{{- .Files.Get "scripts/post-for-rebuild.sh" | nindent 18 }}
5354
---
5455
apiVersion: operations.kubeblocks.io/v1alpha1
@@ -97,4 +98,5 @@ spec:
9798
- bash
9899
- -c
99100
- |
100-
{{- .Files.Get "scripts/post-for-scale-out-shard.sh" | nindent 18 }}
101+
{{- .Files.Get "scripts/common.sh" | nindent 18 }}
102+
{{- .Files.Get "scripts/post-for-scale-out-shard.sh" | nindent 18 }}

0 commit comments

Comments
 (0)