File tree Expand file tree Collapse file tree 10 files changed +33
-14
lines changed
app-proxy/_components/codefresh-base
argo-cd/_components/codefresh-base Expand file tree Collapse file tree 10 files changed +33
-14
lines changed Original file line number Diff line number Diff line change 1- 0.1.22
1+ 0.1.23
Original file line number Diff line number Diff line change 11FROM bitnami/kubectl:1.24
22
3+ # curl was removed in the latest patches of bitnami/kubectl. Needs install it again.
4+ USER root
5+ RUN apt-get update && apt-get install -y curl
6+
7+ # set back user used in bitnami/kubectl
8+ USER 1001
39WORKDIR /src
410
511COPY add-cluster.sh .
Original file line number Diff line number Diff line change 77# LABELS (cm - optional)
88# ANNOTATIONS (cm - optional)
99# CSDP_TOKEN_SECRET
10+ # SKIP_TLS_VALIDATION (cm - optional)
1011
1112SECRET_NAME=" "
1213
@@ -40,20 +41,20 @@ echo "Server: ${SERVER}"
4041
4142# Path to ServiceAccount token
4243SERVICEACCOUNT=/var/run/secrets/kubernetes.io/serviceaccount
43-
4444# Read this Pod's namespace
4545NAMESPACE=$( cat ${SERVICEACCOUNT} /namespace)
46-
47- # Reference the internal certificate authority (CA)
48- CACERT=${SERVICEACCOUNT} /ca.crt
49-
5046# get ServiceAccount token
5147get_service_account_secret_name || exit 1
5248BEARER_TOKEN=$( kubectl get secret ${SECRET_NAME} -n ${NAMESPACE} -o jsonpath=' {.data.token}' | base64 -d)
53-
5449# write KUBE_COPNFIG_DATA to local file
5550CLUSTER_NAME=$( echo ${SERVER} | sed s/' http[s]\?:\/\/' //)
56- kubectl config set-cluster " ${CLUSTER_NAME} " --server=" ${SERVER} " --certificate-authority=" ${CACERT} " || exit 1
51+ if [[ $SKIP_TLS_VALIDATION == ' true' ]]
52+ then
53+ kubectl config set-cluster " ${CLUSTER_NAME} " --server=" ${SERVER} " || exit 1
54+ else
55+ # Reference the internal certificate authority (CA)
56+ kubectl config set-cluster " ${CLUSTER_NAME} " --server=" ${SERVER} " --certificate-authority=" ${SERVICEACCOUNT} /ca.crt" || exit 1
57+ fi
5758kubectl config set-credentials " ${SERVICE_ACCOUNT_NAME} " --token " ${BEARER_TOKEN} " || exit 1
5859kubectl config set-context " ${CONTEXT_NAME} " --cluster=" ${CLUSTER_NAME} " --user=" ${SERVICE_ACCOUNT_NAME} " || exit 1
5960
Original file line number Diff line number Diff line change 4444 configMapKeyRef :
4545 name : csdp-add-cluster-cm
4646 key : server
47+ - name : SKIP_TLS_VALIDATION
48+ valueFrom :
49+ configMapKeyRef :
50+ name : csdp-add-cluster-cm
51+ key : skipTLSValidation
52+ optional : true
4753 - name : CSDP_TOKEN_SECRET
4854 value : $(CSDP_ADD_CLUSTER_SECRET)
4955 volumeMounts :
Original file line number Diff line number Diff line change @@ -161,6 +161,12 @@ spec:
161161 name : cap-app-proxy-cm
162162 key : stripPrefix
163163 optional : true
164+ - name : SKIP_PERMISSIONS_VALIDATION
165+ valueFrom :
166+ configMapKeyRef :
167+ name : cap-app-proxy-cm
168+ key : skipPermissionsValidation
169+ optional : true
164170 - name : NODE_EXTRA_CA_CERTS
165171 value : /app/config/all/all.cer
166172 image : quay.io/codefresh/cap-app-proxy
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ kind: Component
33images :
44 - name : quay.io/codefresh/cap-app-proxy
55 newName : quay.io/codefresh/cap-app-proxy
6- newTag : 1.2084.2
6+ newTag : 1.2098.1
77resources :
88 - app-proxy.deploy.yaml
99 - app-proxy.svc.yaml
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ resources:
55
66images :
77 - name : quay.io/codefresh/argocd
8- newTag : v2.5.5-cap-CR-fix-kustomize-v3
8+ newTag : v2.5.5-cap-CR-verify-aud-claim
99 - name : quay.io/codefresh/applicationset
1010 newTag : v0.4.2-CR-13254-remove-private-logs
1111
Original file line number Diff line number Diff line change @@ -9,8 +9,8 @@ configMapGenerator:
99 - name : codefresh-cm
1010 behavior : create
1111 literals : # order matters - DO NOT change
12- - version=0.1.22 # Runtime version
13- - bootstrapRevision=0.1.22 # Tag to use for bootstrap (change this to the name of your branch if you want to test changes)
12+ - version=0.1.23 # Runtime version
13+ - bootstrapRevision=0.1.23 # Tag to use for bootstrap (change this to the name of your branch if you want to test changes)
1414 - appsetRequeueTime=15
1515replacements :
1616 # template the version from the configmap into the applicationset generators
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ metadata:
55 namespace : " {{ namespace }}"
66spec :
77 requiredCLIVersion : ^0.1.0
8- version : 0.1.22
8+ version : 0.1.23
99 bootstrapSpecifier : github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-cd
1010 components :
1111 - name : events
Original file line number Diff line number Diff line change 1- # For backward compatibility - After change in csdp-managed-runtimes needs to be removed
1+ # For backward compatibility - After change in csdp-managed-runtimes needs to be removed
22apiVersion : kustomize.config.k8s.io/v1beta1
33kind : Kustomization
44
You can’t perform that action at this time.
0 commit comments