-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
feat: custom cluster configs ✨ #28
base: main
Are you sure you want to change the base?
Conversation
- add cluster config option in ClusterOptions - add cluster config parsing - add cluster config pytest arg - add unit tests
group = parser.getgroup("k8s") | ||
group.addoption( | ||
k8s_group = parser.getgroup("k8s") | ||
k8s_group.addoption( | ||
"--k8s-cluster-name", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we have a mutual exlusion of --k8s-cluster-name
and --k8s-cluster-config
or precedence?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not yet. I think it should be mutually exclusive and the name should be required when provider config is given
+ opts | ||
) | ||
self._exec( | ||
[ | ||
"kubeconfig", | ||
"get", | ||
self.cluster_name, | ||
self.cluster_name if not config_yaml else config_yaml["name"], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it better to fill up self.cluster_name
with config_yaml["name"]
somewhere else during init?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will look for a better place :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall it's probably better to somehow integrate the precedence of cluster_name
and the name coming from an optional config file?
I think we should make it mutually exclusive and require the name in the config file |
Any news about this feature? |
closes #17