You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
yq e -i ".containerRegistry.s3storage.region = \"{{repl ConfigOption "reg_incluster_storage_s3_region" }}\"""${CONFIG_FILE}"
138
-
yq e -i ".containerRegistry.s3storage.endpoint = \"{{repl ConfigOption "reg_incluster_storage_s3_endpoint" }}\"""${CONFIG_FILE}"
139
-
yq e -i ".containerRegistry.s3storage.bucket = \"{{repl ConfigOption "reg_incluster_storage_s3_bucketname" }}\"""${CONFIG_FILE}"
137
+
yq e -i ".containerRegistry.s3storage.region = \"${REG_INCLUSTER_STORAGE_S3_REGION}\"""${CONFIG_FILE}"
138
+
yq e -i ".containerRegistry.s3storage.endpoint = \"${REG_INCLUSTER_STORAGE_S3_ENDPOINT}\"""${CONFIG_FILE}"
139
+
yq e -i ".containerRegistry.s3storage.bucket = \"${REG_INCLUSTER_STORAGE_S3_BUCKETNAME}\"""${CONFIG_FILE}"
140
140
yq e -i ".containerRegistry.s3storage.certificate.kind = \"secret\"""${CONFIG_FILE}"
141
141
yq e -i ".containerRegistry.s3storage.certificate.name = \"container-registry-s3-backend\"""${CONFIG_FILE}"
142
142
fi
143
143
fi
144
144
145
-
if [ '{{repl ConfigOptionNotEquals "store_provider" "incluster" }}'="true" ];
145
+
if [ "${STORE_PROVIDER}"!="incluster" ];
146
146
then
147
147
echo"Gitpod: configuring the storage"
148
148
149
-
yq e -i ".metadata.region = \"{{repl ConfigOption "store_region" }}\"""${CONFIG_FILE}"
149
+
yq e -i ".metadata.region = \"${STORE_REGION}\"""${CONFIG_FILE}"
150
150
yq e -i ".objectStorage.inCluster = false""${CONFIG_FILE}"
151
151
152
-
if [ '{{repl ConfigOptionEquals "store_provider" "azure" }}'="true" ];
152
+
if [ "${STORE_PROVIDER}"="azure" ];
153
153
then
154
154
echo"Gitpod: configuring storage for Azure"
155
155
156
156
yq e -i ".objectStorage.azure.credentials.kind = \"secret\"""${CONFIG_FILE}"
157
157
yq e -i ".objectStorage.azure.credentials.name = \"storage-azure\"""${CONFIG_FILE}"
158
158
fi
159
159
160
-
if [ '{{repl ConfigOptionEquals "store_provider" "gcp" }}'="true" ];
160
+
if [ "${STORE_PROVIDER}"="gcp" ];
161
161
then
162
162
echo"Gitpod: configuring storage for GCP"
163
163
164
-
yq e -i ".objectStorage.cloudStorage.project = \"{{repl ConfigOption "store_gcp_project" }}\"""${CONFIG_FILE}"
164
+
yq e -i ".objectStorage.cloudStorage.project = \"${STORE_GCP_PROJECT}\"""${CONFIG_FILE}"
165
165
yq e -i ".objectStorage.cloudStorage.serviceAccount.kind = \"secret\"""${CONFIG_FILE}"
166
166
yq e -i ".objectStorage.cloudStorage.serviceAccount.name = \"storage-gcp\"""${CONFIG_FILE}"
167
167
fi
168
168
169
-
if [ '{{repl ConfigOptionEquals "store_provider" "s3" }}'="true" ];
169
+
if [ "${STORE_PROVIDER}"="s3" ];
170
170
then
171
171
echo"Gitpod: configuring storage for S3"
172
172
173
-
yq e -i ".objectStorage.s3.endpoint = \"{{repl ConfigOption "store_s3_endpoint" }}\"""${CONFIG_FILE}"
174
-
yq e -i ".objectStorage.s3.bucket = \"{{repl ConfigOption "store_s3_bucket" }}\"""${CONFIG_FILE}"
173
+
yq e -i ".objectStorage.s3.endpoint = \"${STORE_S3_ENDPOINT}\"""${CONFIG_FILE}"
174
+
yq e -i ".objectStorage.s3.bucket = \"${STORE_S3_BUCKET}\"""${CONFIG_FILE}"
175
175
yq e -i ".objectStorage.s3.credentials.kind = \"secret\"""${CONFIG_FILE}"
176
176
yq e -i ".objectStorage.s3.credentials.name = \"storage-s3\"""${CONFIG_FILE}"
177
177
fi
178
178
fi
179
179
180
-
if [ '{{repl ConfigOptionEquals "ssh_gateway" "1" }}'="true" ];
180
+
if [ "${SSH_GATEWAY}"="1" ];
181
181
then
182
182
echo"Gitpod: Generate SSH host key"
183
183
ssh-keygen -t rsa -q -N "" -f host.key
184
-
kubectl create secret generic ssh-gateway-host-key --from-file=host.key -n "{{repl Namespace }}"||echo"SSH Gateway Host Key secret has not been created. Does it exist already?"
184
+
kubectl create secret generic ssh-gateway-host-key --from-file=host.key -n "${NAMESPACE}"||echo"SSH Gateway Host Key secret has not been created. Does it exist already?"
185
185
yq e -i '.sshGatewayHostKey.kind = "secret"'"${CONFIG_FILE}"
186
186
yq e -i '.sshGatewayHostKey.name = "ssh-gateway-host-key"'"${CONFIG_FILE}"
187
187
fi
188
188
189
-
if [ '{{repl ConfigOptionEquals "tls_self_signed_enabled" "1" }}'="true" ];
189
+
if [ "${TLS_SELF_SIGNED_ENABLED}"="1" ];
190
190
then
191
191
echo"Gitpod: Generating a self-signed certificate with the internal CA"
192
192
yq e -i '.customCACert.kind = "secret"'"${CONFIG_FILE}"
193
193
yq e -i '.customCACert.name = "ca-issuer-ca"'"${CONFIG_FILE}"
0 commit comments