Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
chathuryaadapa committed Feb 13, 2025
1 parent 830d407 commit 31dbfc2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/cloud-api-adaptor/test/utils/checkout_kbs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ KBS_SHA="$(git rev-parse HEAD)"

YAML_FILE="kbs/config/kubernetes/base/deployment.yaml"

yq -i '.spec.template.spec.containers[0].volumeMounts += [{"name": "kbs-https-certificate", "mountPath": "/etc/kbs"}, {"name": "kbs-https-key", "mountPath": "/etc/kbs"}]' "$YAML_FILE"
yq -i '.spec.template.spec.containers[0].volumeMounts += [{"name": "kbs-https-certificate", "mountPath": "/etc/kbs1"}, {"name": "kbs-https-key", "mountPath": "/etc/kbs2"}]' "$YAML_FILE"

yq -i '.spec.template.spec.volumes += [{"name": "kbs-https-certificate", "secret": {"secretName": "kbs-https-certificate"}}, {"name": "kbs-https-key", "secret": {"secretName": "kbs-https-key"}}]' "$YAML_FILE"

Expand All @@ -40,8 +40,8 @@ TOML_FILE="kbs/config/kubernetes/base/kbs-config.toml"

sed -i '/insecure_http = true/c\
insecure_api = true \
private_key = "/etc/kbs/https-key.pem" \
certificate = "/etc/kbs/https-cert.pem"' "$TOML_FILE"
private_key = "/etc/kbs2/https-key.pem" \
certificate = "/etc/kbs1/https-cert.pem"' "$TOML_FILE"

cat "$TOML_FILE"

Expand Down

0 comments on commit 31dbfc2

Please # to comment.