Skip to content
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

I-134 Add --in-cluster key for provisioner #135

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

rvadim
Copy link
Collaborator

@rvadim rvadim commented Jan 11, 2021

Fixes #135

@rvadim rvadim added the enhancement New feature or request label Jan 11, 2021
@rvadim rvadim self-assigned this Jan 11, 2021
@codecov-io
Copy link

codecov-io commented Jan 11, 2021

Codecov Report

Merging #135 (e262db5) into master (c5df284) will decrease coverage by 0.29%.
The diff coverage is 40.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #135      +/-   ##
==========================================
- Coverage   78.49%   78.19%   -0.30%     
==========================================
  Files          22       22              
  Lines        1432     1440       +8     
==========================================
+ Hits         1124     1126       +2     
- Misses        308      314       +6     
Impacted Files Coverage Δ
k8s_handle/__init__.py 45.56% <40.00%> (-1.10%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c5df284...e262db5. Read the comment docs.

@@ -161,6 +169,8 @@ def _handler_provision(command, resources, priority_evaluator, use_kubeconfig, s
help='Check existence of all env variables in config.yaml and stop if var is not set')
parser_provisioning.add_argument('--use-kubeconfig', action='store_true', required=False,
help='Try to use kube config')
parser_provisioning.add_argument('--in-cluster', action='store_true', required=False,
Copy link
Collaborator

@furiousassault furiousassault Jan 11, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It think that if kube-config configuration and in-cluster configuration options are mutually exclusive by idea and by design, they should be mutually exclusive at arguments parser's level as well.

Now we can specify both and the kube-config will be implicitly used.
As a little effort, I'd try to add them into add_mutually_exclusive_group(), if it works correctly with subparsers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add deploy/destroy operation key --in-cluster for in cluster credentials reading
3 participants