Skip to content

Commit cb91895

Browse files
author
Christian Weichel
committed
[leeway] Bump to leeway 0.2.0
1 parent 58c99ca commit cb91895

File tree

5 files changed

+18
-7
lines changed

5 files changed

+18
-7
lines changed

.gitpod.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
image: eu.gcr.io/gitpod-core-dev/dev/dev-environment:as-add-golangci-lint.6
1+
image: eu.gcr.io/gitpod-core-dev/dev/dev-environment:cw-supervisor-execve-ring3.11
22
workspaceLocation: gitpod/gitpod-ws.theia-workspace
33
checkoutLocation: gitpod
44
ports:

.werft/build.js

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,13 @@ async function build(context, version) {
3131
* Prepare
3232
*/
3333
werft.phase("prepare");
34+
35+
const werftImg = shell.exec("cat .werft/build.yaml | grep dev-environment").trim().split(": ")[1];
36+
const devImg = shell.exec("yq r .gitpod.yml image").trim();
37+
if (werftImg !== devImg) {
38+
werft.fail('prep', `Werft job image (${werftImg}) and Gitpod dev image (${devImg}) do not match`);
39+
}
40+
3441
let buildConfig = context.Annotations || {};
3542
try {
3643
exec(`gcloud auth activate-service-account --key-file "${GCLOUD_SERVICE_ACCOUNT_PATH}"`);
@@ -145,7 +152,7 @@ async function deployToDev(version, previewWithHttps, workspaceFeatureFlags, dyn
145152

146153
werft.log("secret", "copy secret into namespace")
147154
try {
148-
const auth = exec(`echo -n "_json_key:$(kubectl get secret gcp-sa-registry-auth --namespace=keys --export -o yaml \
155+
const auth = exec(`echo -n "_json_key:$(kubectl get secret gcp-sa-registry-auth --namespace=keys -o yaml \
149156
| yq r - data['.dockerconfigjson'] \
150157
| base64 -d)" | base64 -w 0`, {silent: true}).stdout.trim();
151158
fs.writeFileSync("chart/gcp-sa-registry-auth",
@@ -163,7 +170,7 @@ async function deployToDev(version, previewWithHttps, workspaceFeatureFlags, dyn
163170

164171
werft.log("authProviders", "copy authProviders")
165172
try {
166-
exec(`kubectl get secret preview-envs-authproviders --namespace=keys --export -o yaml \
173+
exec(`kubectl get secret preview-envs-authproviders --namespace=keys -o yaml \
167174
| yq r - data.authProviders \
168175
| base64 -d -w 0 \
169176
> authProviders`, {silent: true}).stdout.trim();
@@ -303,7 +310,11 @@ async function issueAndInstallCertficate(namespace, domain) {
303310

304311
werft.log('certificate', `copying certificate from "certs/${namespace}" to "${namespace}/proxy-config-certificates"`);
305312
// certmanager is configured to create a secret in the namespace "certs" with the name "${namespace}".
306-
exec(`kubectl get secret ${namespace} --namespace=certs --export -o yaml \
313+
exec(`kubectl get secret ${namespace} --namespace=certs -o yaml \
314+
| yq d - 'metadata.namespace' \
315+
| yq d - 'metadata.uid' \
316+
| yq d - 'metadata.resourceVersion' \
317+
| yq d - 'metadata.creationTimestamp' \
307318
| sed 's/${namespace}/proxy-config-certificates/g' \
308319
| kubectl apply --namespace=${namespace} -f -`);
309320
}

.werft/build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ pod:
3030
- name: MYSQL_TCP_PORT
3131
value: 23306
3232
- name: build
33-
image: eu.gcr.io/gitpod-core-dev/dev/dev-environment:as-add-golangci-lint.6
33+
image: eu.gcr.io/gitpod-core-dev/dev/dev-environment:cw-supervisor-execve-ring3.11
3434
workingDir: /workspace
3535
imagePullPolicy: Always
3636
volumeMounts:

.werft/wipe-devstaging.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ pod:
1414
secretName: gcp-sa-gitpod-dev-deployer
1515
containers:
1616
- name: wipe-devstaging
17-
image: eu.gcr.io/gitpod-core-dev/dev/dev-environment:as-add-golangci-lint.6
17+
image: eu.gcr.io/gitpod-core-dev/dev/dev-environment:cw-supervisor-execve-ring3.11
1818
workingDir: /workspace
1919
imagePullPolicy: Always
2020
volumeMounts:

dev/image/Dockerfile

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

55
FROM gitpod/workspace-full-vnc:latest
66

7-
ENV TRIGGER_REBUILD 2
7+
ENV TRIGGER_REBUILD 3
88

99
USER root
1010

0 commit comments

Comments
 (0)