Skip to content

Commit 66ba0b1

Browse files
jentingroboquat
authored andcommitted
[werft] fix image pull secret not render
Specify the kubeconfig file to use. Signed-off-by: JenTing Hsiao <[email protected]>
1 parent 71a2d6d commit 66ba0b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.werft/jobs/build/deploy-to-preview-environment.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export async function deployToPreviewEnvironment(werft: Werft, jobConfig: JobCon
7878
const domain = withVM ? `${destname}.preview.gitpod-dev.com` : `${destname}.staging.gitpod-dev.com`;
7979
const monitoringDomain = `${destname}.preview.gitpod-dev.com`;
8080
const url = `https://${domain}`;
81-
const imagePullAuth = exec(`printf "%s" "_json_key:$(kubectl get secret ${IMAGE_PULL_SECRET_NAME} --namespace=keys -o yaml \
81+
const imagePullAuth = exec(`printf "%s" "_json_key:$(kubectl --kubeconfig ${CORE_DEV_KUBECONFIG_PATH} get secret ${IMAGE_PULL_SECRET_NAME} --namespace=keys -o yaml \
8282
| yq r - data['.dockerconfigjson'] \
8383
| base64 -d)" | base64 -w 0`, { silent: true }).stdout.trim();
8484

0 commit comments

Comments
 (0)