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 1
1
FROM bitnami/kubectl:1.24
2
2
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
3
9
WORKDIR /src
4
10
5
11
COPY add-cluster.sh .
Original file line number Diff line number Diff line change 7
7
# LABELS (cm - optional)
8
8
# ANNOTATIONS (cm - optional)
9
9
# CSDP_TOKEN_SECRET
10
+ # SKIP_TLS_VALIDATION (cm - optional)
10
11
11
12
SECRET_NAME=" "
12
13
@@ -40,20 +41,20 @@ echo "Server: ${SERVER}"
40
41
41
42
# Path to ServiceAccount token
42
43
SERVICEACCOUNT=/var/run/secrets/kubernetes.io/serviceaccount
43
-
44
44
# Read this Pod's namespace
45
45
NAMESPACE=$( cat ${SERVICEACCOUNT} /namespace)
46
-
47
- # Reference the internal certificate authority (CA)
48
- CACERT=${SERVICEACCOUNT} /ca.crt
49
-
50
46
# get ServiceAccount token
51
47
get_service_account_secret_name || exit 1
52
48
BEARER_TOKEN=$( kubectl get secret ${SECRET_NAME} -n ${NAMESPACE} -o jsonpath=' {.data.token}' | base64 -d)
53
-
54
49
# write KUBE_COPNFIG_DATA to local file
55
50
CLUSTER_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
57
58
kubectl config set-credentials " ${SERVICE_ACCOUNT_NAME} " --token " ${BEARER_TOKEN} " || exit 1
58
59
kubectl config set-context " ${CONTEXT_NAME} " --cluster=" ${CLUSTER_NAME} " --user=" ${SERVICE_ACCOUNT_NAME} " || exit 1
59
60
Original file line number Diff line number Diff line change 44
44
configMapKeyRef :
45
45
name : csdp-add-cluster-cm
46
46
key : server
47
+ - name : SKIP_TLS_VALIDATION
48
+ valueFrom :
49
+ configMapKeyRef :
50
+ name : csdp-add-cluster-cm
51
+ key : skipTLSValidation
52
+ optional : true
47
53
- name : CSDP_TOKEN_SECRET
48
54
value : $(CSDP_ADD_CLUSTER_SECRET)
49
55
volumeMounts :
Original file line number Diff line number Diff line change @@ -161,6 +161,12 @@ spec:
161
161
name : cap-app-proxy-cm
162
162
key : stripPrefix
163
163
optional : true
164
+ - name : SKIP_PERMISSIONS_VALIDATION
165
+ valueFrom :
166
+ configMapKeyRef :
167
+ name : cap-app-proxy-cm
168
+ key : skipPermissionsValidation
169
+ optional : true
164
170
- name : NODE_EXTRA_CA_CERTS
165
171
value : /app/config/all/all.cer
166
172
image : quay.io/codefresh/cap-app-proxy
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ kind: Component
3
3
images :
4
4
- name : quay.io/codefresh/cap-app-proxy
5
5
newName : quay.io/codefresh/cap-app-proxy
6
- newTag : 1.2084.2
6
+ newTag : 1.2098.1
7
7
resources :
8
8
- app-proxy.deploy.yaml
9
9
- app-proxy.svc.yaml
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ resources:
5
5
6
6
images :
7
7
- 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
9
9
- name : quay.io/codefresh/applicationset
10
10
newTag : v0.4.2-CR-13254-remove-private-logs
11
11
Original file line number Diff line number Diff line change @@ -9,8 +9,8 @@ configMapGenerator:
9
9
- name : codefresh-cm
10
10
behavior : create
11
11
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)
14
14
- appsetRequeueTime=15
15
15
replacements :
16
16
# 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:
5
5
namespace : " {{ namespace }}"
6
6
spec :
7
7
requiredCLIVersion : ^0.1.0
8
- version : 0.1.22
8
+ version : 0.1.23
9
9
bootstrapSpecifier : github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-cd
10
10
components :
11
11
- 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
2
2
apiVersion : kustomize.config.k8s.io/v1beta1
3
3
kind : Kustomization
4
4
You can’t perform that action at this time.
0 commit comments