Skip to content

Commit 31c592f

Browse files
ArthurSensroboquat
authored andcommitted
Add previewctl/gpctl autocompletion to workspace image
Signed-off-by: ArthurSens <[email protected]>
1 parent c7077d1 commit 31c592f

15 files changed

+19
-13
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:af-add-gh-cli-to-dev-image.0
1+
image: eu.gcr.io/gitpod-core-dev/dev/dev-environment:as-previewctl-completion.3
22
workspaceLocation: gitpod/gitpod-ws.code-workspace
33
checkoutLocation: gitpod
44
ports:

.werft/build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ pod:
7171
- name: MYSQL_TCP_PORT
7272
value: 23306
7373
- name: build
74-
image: eu.gcr.io/gitpod-core-dev/dev/dev-environment:af-add-gh-cli-to-dev-image.0
74+
image: eu.gcr.io/gitpod-core-dev/dev/dev-environment:as-previewctl-completion.3
7575
workingDir: /workspace
7676
imagePullPolicy: IfNotPresent
7777
resources:

.werft/debug.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ pod:
5353
- name: MYSQL_TCP_PORT
5454
value: 23306
5555
- name: build
56-
image: eu.gcr.io/gitpod-core-dev/dev/dev-environment:af-add-gh-cli-to-dev-image.0
56+
image: eu.gcr.io/gitpod-core-dev/dev/dev-environment:as-previewctl-completion.3
5757
workingDir: /workspace
5858
imagePullPolicy: IfNotPresent
5959
volumeMounts:

.werft/ide-integration-tests-startup-jetbrains.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ pod:
1212
emptyDir: {}
1313
containers:
1414
- name: gcloud
15-
image: eu.gcr.io/gitpod-core-dev/dev/dev-environment:af-add-gh-cli-to-dev-image.0
15+
image: eu.gcr.io/gitpod-core-dev/dev/dev-environment:as-previewctl-completion.3
1616
workingDir: /workspace
1717
imagePullPolicy: IfNotPresent
1818
env:

.werft/ide-integration-tests-startup-vscode.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ pod:
1212
emptyDir: {}
1313
containers:
1414
- name: gcloud
15-
image: eu.gcr.io/gitpod-core-dev/dev/dev-environment:af-add-gh-cli-to-dev-image.0
15+
image: eu.gcr.io/gitpod-core-dev/dev/dev-environment:as-previewctl-completion.3
1616
workingDir: /workspace
1717
imagePullPolicy: IfNotPresent
1818
env:

.werft/ide-run-integration-tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ pod:
2525
emptyDir: {}
2626
initContainers:
2727
- name: gcloud
28-
image: eu.gcr.io/gitpod-core-dev/dev/dev-environment:af-add-gh-cli-to-dev-image.0
28+
image: eu.gcr.io/gitpod-core-dev/dev/dev-environment:as-previewctl-completion.3
2929
workingDir: /workspace
3030
imagePullPolicy: IfNotPresent
3131
volumeMounts:

.werft/platform-delete-preview-environments-cron.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ pod:
2727
secretName: harvester-vm-ssh-keys
2828
containers:
2929
- name: build
30-
image: eu.gcr.io/gitpod-core-dev/dev/dev-environment:af-add-gh-cli-to-dev-image.0
30+
image: eu.gcr.io/gitpod-core-dev/dev/dev-environment:as-previewctl-completion.3
3131
workingDir: /workspace
3232
imagePullPolicy: IfNotPresent
3333
volumeMounts:

.werft/platform-trigger-werft-cleanup.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ pod:
2121
secretName: gcp-sa-gitpod-dev-deployer
2222
containers:
2323
- name: build
24-
image: eu.gcr.io/gitpod-core-dev/dev/dev-environment:af-add-gh-cli-to-dev-image.0
24+
image: eu.gcr.io/gitpod-core-dev/dev/dev-environment:as-previewctl-completion.3
2525
workingDir: /workspace
2626
imagePullPolicy: IfNotPresent
2727
volumeMounts:

.werft/run-integration-tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ pod:
2222
emptyDir: {}
2323
initContainers:
2424
- name: gcloud
25-
image: eu.gcr.io/gitpod-core-dev/dev/dev-environment:af-add-gh-cli-to-dev-image.0
25+
image: eu.gcr.io/gitpod-core-dev/dev/dev-environment:as-previewctl-completion.3
2626
workingDir: /workspace
2727
imagePullPolicy: IfNotPresent
2828
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:af-add-gh-cli-to-dev-image.0
17+
image: eu.gcr.io/gitpod-core-dev/dev/dev-environment:as-previewctl-completion.3
1818
workingDir: /workspace
1919
imagePullPolicy: IfNotPresent
2020
volumeMounts:

.werft/workspace-run-integration-tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ pod:
1212
emptyDir: {}
1313
containers:
1414
- name: gcloud
15-
image: eu.gcr.io/gitpod-core-dev/dev/dev-environment:af-add-gh-cli-to-dev-image.0
15+
image: eu.gcr.io/gitpod-core-dev/dev/dev-environment:as-previewctl-completion.3
1616
workingDir: /workspace
1717
imagePullPolicy: IfNotPresent
1818
env:

dev/BUILD.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ packages:
1717
deps:
1818
- dev/gpctl:app
1919
- dev/kubecdl:app
20+
- dev/preview/previewctl:cli
2021
argdeps:
2122
- imageRepoBase
2223
config:

dev/image/BUILD.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ packages:
44
deps:
55
- dev/gpctl:app
66
- dev/kubecdl:app
7+
- dev/preview/previewctl:cli
78
argdeps:
89
- imageRepoBase
910
srcs:

dev/image/Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,4 +244,8 @@ ENV WERFT_CREDENTIAL_HELPER=/workspace/gitpod/dev/preview/werft-credential-helpe
244244

245245
# Copy our own tools
246246
ENV NEW_KUBECDL=1
247-
COPY dev-kubecdl--app/kubecdl dev-gpctl--app/gpctl /usr/bin/
247+
COPY dev-kubecdl--app/kubecdl dev-gpctl--app/gpctl dev-preview-previewctl--cli/previewctl /usr/bin/
248+
249+
# Configure our tools' autocompletion
250+
RUN bash -c "echo . \<\(gpctl completion bash\) >> ~/.bashrc" && \
251+
bash -c "echo . \<\(previewctl completion bash\) >> ~/.bashrc"

dev/leeway.Dockerfile

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

55
FROM scratch
66

7-
COPY dev-gpctl--app/gpctl dev-kubecdl--app/kubecdl /app/
7+
COPY dev-gpctl--app/gpctl dev-kubecdl--app/kubecdl dev-preview-previewctl--cli/previewctl /app/

0 commit comments

Comments
 (0)