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

Make MatchableResources configurable through flyte-cli #118

Merged
merged 5 commits into from
Jun 4, 2020

Conversation

katrogan
Copy link
Contributor

@katrogan katrogan commented Jun 1, 2020

TL;DR

Currently setting overridable matchable resources requires configuring the json for a post request which can be cumbersome - especially when auth is enabled.

For more background on matchable resource types, how they're used and how they're applied - see managing customizable resources

Type

  • Bug Fix
  • Feature
  • Plugin

Are all requirements met?

  • Code completed
  • Smoke tested
  • Unit tests added
  • Code documentation added
  • Any pending items have an associated Issue

Complete description

Tracking Issue

flyteorg/flyte#335

Follow-up issue

NA

@katrogan katrogan requested review from anandswaminathan and removed request for matthewphsmith and kumare3 June 1, 2020 23:39
@wild-endeavor
Copy link
Contributor

I still don't like the name MatchableResource

@codecov-commenter
Copy link

codecov-commenter commented Jun 1, 2020

Codecov Report

Merging #118 into master will decrease coverage by 0.07%.
The diff coverage is 73.88%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #118      +/-   ##
==========================================
- Coverage   81.60%   81.52%   -0.08%     
==========================================
  Files         211      213       +2     
  Lines       13745    13878     +133     
  Branches     1133     1140       +7     
==========================================
+ Hits        11216    11314      +98     
- Misses       2262     2295      +33     
- Partials      267      269       +2     
Impacted Files Coverage Δ
flytekit/clis/flyte_cli/main.py 38.30% <44.89%> (+0.39%) ⬆️
flytekit/clients/friendly.py 45.26% <50.00%> (+0.20%) ⬆️
flytekit/clients/raw.py 51.90% <50.00%> (-0.07%) ⬇️
flytekit/models/matchable_resource.py 91.83% <91.83%> (ø)
flytekit/__init__.py 100.00% <100.00%> (ø)
...ts/flytekit/unit/models/test_matchable_resource.py 100.00% <100.00%> (ø)

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 8155dff...18b6e4b. Read the comment docs.


Use a -- to separate arguments to this cli, and attributes used for cluster resource configuration.
e.g.
$ flyte-cli -h localhost:30081 -p flyteexamples -d development update-cluster-resource-attributes -- critical \
Copy link
Contributor

Choose a reason for hiding this comment

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

It seems this would be better with like a YAML?

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated to use multi value options, thanks for the suggestions!

@katrogan
Copy link
Contributor Author

katrogan commented Jun 2, 2020

friendly ping


Use a -- to separate arguments to this cli, and attributes used for cluster resource configuration.
e.g.
$ flyte-cli -h localhost:30081 -p flyteexamples -d development update-cluster-resource-attributes \
Copy link
Contributor

Choose a reason for hiding this comment

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

copy paste?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yep thanks for catching

@wild-endeavor
Copy link
Contributor

+1 after comment.

@katrogan katrogan merged commit 569bd7c into master Jun 4, 2020
max-hoffman pushed a commit to dolthub/flytekit that referenced this pull request May 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants