You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Why is the openshiftClient({config: ..}) expecting a .config property inside the seetings object,
if that is not the standard structure of a kubeconfig generated by the kubernetes-client library?
Wouldnt be easier to just receive the object as it is, returned from by the library config.fromKubeconfig(path)?
I think the reason was because if there were settings to pass in that didn't have anything to do with the actual kube config object, then we could keep those separate. At the moment, though it doesn't look like there are, but it makes it a little future proof
Just a question, out of my curiosity:
Why is the
openshiftClient({config: ..})
expecting a.config
property inside theseetings
object,if that is not the standard structure of a kubeconfig generated by the kubernetes-client library?
Wouldnt be easier to just receive the object as it is, returned from by the library
config.fromKubeconfig(path)
?Im pretty new to NodeJS so, don't be too hard ;)
config.fromKubeconfig(path);
[1] https://github.com/nodeshift/openshift-rest-client/blob/master/lib/openshift-rest-client.js#L62
[2] https://github.com/nodeshift/openshift-rest-client/blob/master/lib/openshift-rest-client.js#L72
The text was updated successfully, but these errors were encountered: