File tree 4 files changed +143
-0
lines changed
4 files changed +143
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Copyright Broadcom, Inc. All Rights Reserved.
2
+ # SPDX-License-Identifier: APACHE-2.0
3
+
4
+
Original file line number Diff line number Diff line change
1
+ # Adding an extra initial delay to avoid race conditions with the
2
+ # deployment and Goss stages (so the operator has time to deploy
3
+ # ClickHouse and ClickHouse Keeper instances)
4
+ readinessProbe :
5
+ initialDelaySeconds : 30
6
+ extraDeploy :
7
+ # ref: https://github.com/Altinity/clickhouse-operator/tree/master/docs/chi-examples
8
+ - |
9
+ apiVersion: clickhouse.altinity.com/v1
10
+ kind: ClickHouseInstallation
11
+ metadata:
12
+ name: test
13
+ spec:
14
+ defaults:
15
+ templates:
16
+ podTemplate: default-pod-template
17
+ configuration:
18
+ settings:
19
+ http_port: 8124
20
+ tcp_port: 9001
21
+ interserver_http_port: 9010
22
+ clusters:
23
+ - name: test
24
+ layout:
25
+ shardsCount: 1
26
+ replicasCount: 1
Original file line number Diff line number Diff line change
1
+ {
2
+ "phases" : {
3
+ "package" : {
4
+ "context" : {
5
+ "credentials" : [
6
+ {
7
+ "url" : " {VIB_ENV_CHARTS_REGISTRY}" ,
8
+ "authn" : {
9
+ "username" : " {VIB_ENV_CHARTS_REGISTRY_USERNAME}" ,
10
+ "password" : " {VIB_ENV_CHARTS_REGISTRY_PASSWORD}"
11
+ }
12
+ }
13
+ ],
14
+ "resources" : {
15
+ "url" : " {SHA_ARCHIVE}" ,
16
+ "path" : " /bitnami/clickhouse-operator"
17
+ }
18
+ },
19
+ "actions" : [
20
+ {
21
+ "action_id" : " helm-package"
22
+ },
23
+ {
24
+ "action_id" : " helm-lint"
25
+ }
26
+ ]
27
+ },
28
+ "publish" : {
29
+ "actions" : [
30
+ {
31
+ "action_id" : " helm-publish" ,
32
+ "params" : {
33
+ "repository" : {
34
+ "kind" : " S3" ,
35
+ "url" : " {VIB_ENV_S3_URL}" ,
36
+ "authn" : {
37
+ "access_key_id" : " {VIB_ENV_S3_ACCESS_KEY_ID}" ,
38
+ "secret_access_key" : " {VIB_ENV_S3_SECRET_ACCESS_KEY}" ,
39
+ "role" : " {VIB_ENV_S3_ROLE_ARN}"
40
+ }
41
+ }
42
+ }
43
+ }
44
+ ]
45
+ }
46
+ }
47
+ }
Original file line number Diff line number Diff line change
1
+ {
2
+ "phases" : {
3
+ "package" : {
4
+ "context" : {
5
+ "credentials" : [
6
+ {
7
+ "url" : " {VIB_ENV_CHARTS_REGISTRY}" ,
8
+ "authn" : {
9
+ "username" : " {VIB_ENV_CHARTS_REGISTRY_USERNAME}" ,
10
+ "password" : " {VIB_ENV_CHARTS_REGISTRY_PASSWORD}"
11
+ }
12
+ }
13
+ ],
14
+ "resources" : {
15
+ "url" : " {SHA_ARCHIVE}" ,
16
+ "path" : " /bitnami/clickhouse-operator"
17
+ }
18
+ },
19
+ "actions" : [
20
+ {
21
+ "action_id" : " helm-package"
22
+ },
23
+ {
24
+ "action_id" : " helm-lint"
25
+ }
26
+ ]
27
+ },
28
+ "verify" : {
29
+ "context" : {
30
+ "resources" : {
31
+ "url" : " {SHA_ARCHIVE}" ,
32
+ "path" : " /bitnami/clickhouse-operator"
33
+ },
34
+ "target_platform" : {
35
+ "target_platform_id" : " {VIB_ENV_ALTERNATIVE_TARGET_PLATFORM}" ,
36
+ "size" : {
37
+ "name" : " M4"
38
+ }
39
+ }
40
+ },
41
+ "actions" : [
42
+ {
43
+ "action_id" : " goss" ,
44
+ "params" : {
45
+ "resources" : {
46
+ "path" : " /.vib"
47
+ },
48
+ "tests_file" : " clickhouse-operator/goss/goss.yaml" ,
49
+ "vars_file" : " clickhouse-operator/runtime-parameters.yaml" ,
50
+ "remote" : {
51
+ "pod" : {
52
+ "workload" : " TODO"
53
+ }
54
+ }
55
+ }
56
+ },
57
+ {
58
+ "action_id" : " kubescape" ,
59
+ "params" : {
60
+ "threshold" : {VIB_ENV_KUBESCAPE_SCORE_THRESHOLD }
61
+ }
62
+ }
63
+ ]
64
+ }
65
+ }
66
+ }
You can’t perform that action at this time.
0 commit comments