File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -100,6 +100,13 @@ function install() {
100
100
# Install Calico.
101
101
kubectl apply -f https://docs.projectcalico.org/manifests/calico-vxlan.yaml
102
102
103
+ # Create secret with container registry credentials
104
+ if [ -n " ${IMAGE_PULL_SECRET_FILE} " ] && [ -f " ${IMAGE_PULL_SECRET_FILE} " ]; then
105
+ kubectl create secret generic gitpod-image-pull-secret \
106
+ --from-file=.dockerconfigjson=" ${IMAGE_PULL_SECRET_FILE} " \
107
+ --type=kubernetes.io/dockerconfigjson > /dev/null 2>&1 || true
108
+ fi
109
+
103
110
if ${AWS_CMD} iam get-role --role-name " ${CLUSTER_NAME} -region-${AWS_REGION} -role-eksadmin" > /dev/null 2>&1 ; then
104
111
KUBECTL_ROLE_ARN=$( ${AWS_CMD} iam get-role --role-name " ${CLUSTER_NAME} -region-${AWS_REGION} -role-eksadmin" | jq -r .Role.Arn)
105
112
else
You can’t perform that action at this time.
0 commit comments