name of kubeconfig yaml

This commit is contained in:
Celina Lopez
2025-03-31 09:37:44 -07:00
parent 0a284e9629
commit 0ffd06c6e2
2 changed files with 4 additions and 3 deletions

View File

@@ -15,8 +15,8 @@ export default class extends Controller {
showConnectionInstructions(event) {
event.preventDefault();
const text = `KUBECONFIG=/path/to/kubeconfig.yml kubectl exec -it -n ${event.target.dataset.namespace} ${event.target.dataset.podName} -- /bin/bash`
const text = `KUBECONFIG=/path/to/${event.target.dataset.clusterName}-kubeconfig.yml kubectl exec -it -n ${event.target.dataset.namespace} ${event.target.dataset.podName} -- /bin/bash`
this.commandTarget.textContent = text
click_outside_modal.showModal()
}
}
}