-
Notifications
You must be signed in to change notification settings - Fork 18
Add addition attributes in RunSpec #217
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
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Alex Wu <[email protected]>
Signed-off-by: Alex Wu <[email protected]>
Signed-off-by: Alex Wu <[email protected]>
Signed-off-by: Alex Wu <[email protected]>
Signed-off-by: Alex Wu <[email protected]>
Signed-off-by: Alex Wu <[email protected]>
Signed-off-by: Alex Wu <[email protected]>
@wild-endeavor @pvditt @squiishyy This is a PR to add addition attributes in RunSpec in SDK. Please review, thanks! |
Signed-off-by: Alex Wu <[email protected]>
Signed-off-by: Alex Wu <[email protected]>
Signed-off-by: Alex Wu <[email protected]>
Signed-off-by: Alex Wu <[email protected]>
Signed-off-by: Alex Wu <[email protected]>
src/flyte/_run.py
Outdated
raw_data_storage = run_definition_pb2.RawDataStorage(raw_data_prefix=self._raw_data_path) | ||
security_context = security_pb2.SecurityContext( | ||
run_as=security_pb2.Identity( | ||
k8s_service_account=self._service_account |
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.
Curious, do we also want to set other things in the SecurityContext
in SDK?
Signed-off-by: Alex Wu <[email protected]>
Signed-off-by: Alex Wu <[email protected]>
Signed-off-by: Alex Wu <[email protected]>
src/flyte/cli/_run.py
Outdated
"click.option": click.Option( | ||
["--service-account"], | ||
type=str, | ||
help="Kubernetes service account. If not provided, default will be used", |
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.
help="Kubernetes service account. If not provided, default will be used", | |
help="Kubernetes service account. If not provided, the configured default will be used", |
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.
fixed!
src/flyte/cli/_run.py
Outdated
"click.option": click.Option( | ||
["--raw-data-path"], | ||
type=str, | ||
help="Override the output path to store the raw data. Example: s3://bucket/", |
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.
help="Override the output path to store the raw data. Example: s3://bucket/", | |
help="Override the output prefix used to store offloaded data types. e.g. s3://bucket/", |
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.
fixed!
src/flyte/_run.py
Outdated
env_kv = run_pb2.Envs(values=kv_pairs) | ||
annotations = run_pb2.Annotations(values=self._annotations) | ||
labels = run_pb2.Labels(values=self._labels) | ||
raw_data_storage = run_pb2.RawDataStorage(raw_data_prefix=self._raw_data_path) |
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.
i think we shouldn't send these at all if the values aren't defined. there's no point sending an empty object.
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.
fixed! Thank you
Signed-off-by: Alex Wu <[email protected]>
Changes
src/flyte/_run.py
to passservice_account
andraw_output_prefix
into RunSpec while creating a new run