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 the value in the label optional #2465

Merged
merged 1 commit into from
Jun 12, 2024
Merged

Make the value in the label optional #2465

merged 1 commit into from
Jun 12, 2024

Conversation

pingsutw
Copy link
Member

@pingsutw pingsutw commented Jun 7, 2024

Tracking issue

flyteorg/flyte#3960

Why are the changes needed?

Currently, Users can't specify a key-only label

What changes were proposed in this pull request?

Add labels_callback for labels, which allows the value in the label to be None

hello=world => {"hello": "world"}
rust => {"rust": ""}

How was this patch tested?

sandbox

 pyflyte run --remote --label hello=world --label rust flyte-example/getting_started.py wf

Screenshots

Screenshot 2024-06-06 at 7 16 23 PM
  • I updated the documentation accordingly.
  • All new and existing tests passed.
  • All commits are signed-off.

Related PRs

NA

Docs link

NA

@eapolinario eapolinario merged commit daeff3f into master Jun 12, 2024
46 checks passed
bgedik pushed a commit to bgedik/flytekit that referenced this pull request Jul 3, 2024
fiedlerNr9 pushed a commit that referenced this pull request Jul 25, 2024
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Jan Fiedler <[email protected]>
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.

2 participants