Skip to content

Commit e600444

Browse files
committed
define context
1 parent b4fc9b3 commit e600444

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

deploy/ctl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ tasks:
2323
description: Enable Istio Sidecar Injection for a namespce
2424
script: |
2525
kubectl label namespace {{ get "namespace" }} istio-injection=enabled
26+
27+
use-context:
28+
description: "Configure kube-context"
29+
script: |
30+
kubectl config use-context ${KUBE_CONTEXT}
2631

2732
deps:
2833
description: "Install alpine dependencies"
@@ -59,6 +64,8 @@ tasks:
5964

6065
steps:
6166
- task: deps
67+
- task: use-context
68+
- task: istio-injection
6269
- script: |
6370
config=${CF_VOLUME_PATH:-.}/{{ get "config" }}
6471
cur_color={{ get "color" }}

0 commit comments

Comments
 (0)