Skip to content

Commit 8aa5f09

Browse files
CR-13036 sa name bug (#14)
added "" to add-cluster
1 parent 8db831a commit 8aa5f09

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

add-cluster/add-cluster.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ BEARER_TOKEN=$(kubectl get secret ${SECRET_NAME} -n ${NAMESPACE} -o jsonpath='{.
2727

2828
# write KUBE_COPNFIG_DATA to local file
2929
CLUSTER_NAME=$(echo ${SERVER} | sed s/'http[s]\?:\/\/'//)
30-
kubectl config set-cluster "${CLUSTER_NAME}" --server=${SERVER} --certificate-authority=${CACERT}
31-
kubectl config set-credentials ${SERVICE_ACCOUNT_NAME} --token ${BEARER_TOKEN}
32-
kubectl config set-context "${CONTEXT_NAME}" --cluster="${CLUSTER_NAME}" --user=${SERVICE_ACCOUNT_NAME}
30+
kubectl config set-cluster "${CLUSTER_NAME}" --server="${SERVER}" --certificate-authority="${CACERT}"
31+
kubectl config set-credentials "${SERVICE_ACCOUNT_NAME}" --token "${BEARER_TOKEN}"
32+
kubectl config set-context "${CONTEXT_NAME}" --cluster="${CLUSTER_NAME}" --user="${SERVICE_ACCOUNT_NAME}"
3333
KUBE_CONFIG_B64=$(kubectl config view --minify --flatten --output json --context="${CONTEXT_NAME}" | base64 -w 0)
3434

3535
STATUS_CODE=$(curl -X POST ${INGRESS_URL}/app-proxy/api/clusters \

add-cluster/helm/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ type: application
66

77
version: 0.2.0
88

9-
appVersion: 0.3.1
9+
appVersion: 0.4.0

add-cluster/kustomize/kustomization.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ namespace: kube-system
44

55
images:
66
- name: quay.io/codefresh/csdp-add-cluster
7-
newTag: 0.3.1
7+
newTag: 0.4.0
88

99
resources:
1010
- configmap.yaml

csdp/base/kustomization.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ configMapGenerator:
1111
- name: codefresh-cm
1212
behavior: create
1313
literals:
14-
- version=0.0.425
14+
- version=0.0.428

0 commit comments

Comments
 (0)