Skip to content

Commit a393319

Browse files
fix(setup): quote kube-context in the helm uninstall tear-down hint too
The tear-down hint used --kube-context ${context} raw while the sibling kubectl hints already used shq(); a context with whitespace/metacharacters could break or inject into the copied command. All copyable k8s hints now go through shq(context).
1 parent cf61a14 commit a393319

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/setup/modes/k8s.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ export async function runK8sMode(detection: Detection): Promise<void> {
194194
[
195195
`kubectl --context ${shq(context)} -n ${NAMESPACE} port-forward svc/${RELEASE}-app 3000:3000`,
196196
`kubectl --context ${shq(context)} -n ${NAMESPACE} get pods`,
197-
`helm uninstall ${RELEASE} --kube-context ${context} -n ${NAMESPACE} # tear down`,
197+
`helm uninstall ${RELEASE} --kube-context ${shq(context)} -n ${NAMESPACE} # tear down`,
198198
].join('\n'),
199199
'Reach your cluster'
200200
)

0 commit comments

Comments
 (0)