-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Explore consistent kubeconfig settings between Tekton and K8s ext #312
Comments
I have done an investigation and found next:
Basically both of this options requires almost same amount of work, so design should be more strategic/architectural. @siamaksade @jeffmaury WDYT? |
Is an extension allowed to read preferences declared by other extensions ? I thought it was not possible |
Hm, I try and it work, at least in dev mode, you just need to know configuration keys |
Can we have a 3rd alternate where |
@gorkem Yes, I think it is an option, but now they not do it, they just write path to preferences from user input: in https://github.com/Azure/vscode-kubernetes-tools/blob/e692354159d038d308546a295703984e7be5b1fe/src/extension.ts#L1925 |
@evidolob look at https://github.com/Azure/vscode-kubernetes-tools/blob/e692354159d038d308546a295703984e7be5b1fe/src/components/kubectl/kubeconfig.ts#L39 |
@lstocchi I agree with you, I never say that it is the best solution, I want to use that method to get current config, and use vscode.workspace.onDidChangeConfiguration(e => {
if (e.affectsConfiguration('vs-kubernetes',)) {
//refresh tekton tree there
}
}); I cannot find better way to get notification that something changed in k8s extension, without k8s extension modification. |
|
@siamaksade Yes, to have |
Just that you are aware this is not a problem unique to tekton. |
OK, so what I should do with this? I may(and want) to make PR for
And after that returns to this issue for Of course if no one objects, or maybe have a better plan. |
I would start with
The other 2 are nice to haves that does not solve the original problem |
But I agree, having |
@gorkem @lstocchi |
vscode-kubernetes-tools/vscode-kubernetes-tools#766 is finally merged(thx @lstocchi for assist), we can continue with this after |
Signed-off-by: Yevhen Vydolob <[email protected]>
Signed-off-by: Yevhen Vydolob <[email protected]>
The Kubernetes ext allows defining a custom kubeconfig. When user does that, the Tekton ext and Kubernetes ext would display different clusters which creates problems when user uses Kubernetes actions to create a pipeline via YAML and that ends up on the wrong cluster/namespace.
The text was updated successfully, but these errors were encountered: