-
Notifications
You must be signed in to change notification settings - Fork 276
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
Add notifications, schedules to new flytekit #280
Conversation
Can we broaden this PR a bit? Instead of just adding notifications, can we also add schedules, auth (probably as two fields - iam role or service account), and rawoutputdataconfig? Also why do we need to create a new Notification class? Can we use Also, where did we land on stuff having both iam role and service account? @anandswaminathan is that a thing we decided to do? |
@anandswaminathan has a doc on deprecating KIAM... I'm not sure if it's public (I think it's ok to make public... if so, please do @anandswaminathan)... I do NOT recall that we actually decided this is the way to go... here is my recollection:
Honorable mentioned:
Orthogonal to all of this: We continue to need IAM roles for AWS Batch plugin. |
@wild-endeavor schedules, roles, etc is all in the pipeline :) i'm still not very familiar with new flytekit so i prefer a piecemeal approach for PRs so i can get feedback before doing a lot more work
For validation that notification phases are only terminal and to simplify the oneof structure for notification types that is specific to flyteidl but not necessarily simpler for users to grok |
@wild-endeavor mind taking another look? the lp auth role is already implemented https://github.com/lyft/flytekit/blob/annotations/flytekit/annotated/launch_plan.py#L189,L194 my understanding was that we would change the auth role to optionally include both an assumable iam role AND a k8s service account instead of the current one of structure. but nothing has changed in idl so i think we can mirror the existing behavior for now |
from flytekit.models.core import execution as _execution_model | ||
|
||
|
||
class Notification(_common_model.Notification): |
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.
Add a comment that this is duplicate because we don't want to deal with metaclass?
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.
done
Thanks for implementing this! Regarding auth role, how would a user pass in when creating a launch plan? |
No description provided.