Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Various utils improvements #337

Merged

Conversation

StefanoFioravanzo
Copy link
Member

This PR brings some refactoring and bug fixing to some of our common util modules.

Stefano Fioravanzo added 10 commits April 16, 2021 11:45
Add a function which detects if it is running inside a pod that is a KFP
pipeline step.

Signed-off-by: Stefano Fioravanzo <stefano@arrikto.com>
Reviewed-by: Ilias Katsakioris <elikatsis@arrikto.com>
Signed-off-by: Stefano Fioravanzo <stefano@arrikto.com>
Reviewed-by: Ilias Katsakioris <elikatsis@arrikto.com>
Move `podutils.get_run_uuid` to kfputils.detect_run_uuid` and remove
`podutils.KFP_RUN_ID_LABEL_KEY` since it was already defined in
`kfputils`.

Signed-off-by: Stefano Fioravanzo <stefano@arrikto.com>
Reviewed-by: Ilias Katsakioris <elikatsis@arrikto.com>
When the PVC size is specified in plain bytes, the function
`_parse_k8s_size` would break beacuse the `unit` group would end up
being None.

Signed-off-by: Stefano Fioravanzo <stefano@arrikto.com>
Reviewed-by: Ilias Katsakioris <elikatsis@arrikto.com>
Signed-off-by: Stefano Fioravanzo <stefano@arrikto.com>
Reviewed-by: Ilias Katsakioris <elikatsis@arrikto.com>
Signed-off-by: Stefano Fioravanzo <stefano@arrikto.com>
Reviewed-by: Ilias Katsakioris <elikatsis@arrikto.com>
Signed-off-by: Stefano Fioravanzo <stefano@arrikto.com>
Reviewed-by: Ilias Katsakioris <elikatsis@arrikto.com>
Signed-off-by: Stefano Fioravanzo <stefano@arrikto.com>
Reviewed-by: Ilias Katsakioris <elikatsis@arrikto.com>
This change is not a long term solution of course, just a temporary fix
to remove the RPC call.

We should rethink the implementation of `list_volumes` and
`replace_cloned_volumes` and how they are used by RPCs and backend
alike.

Signed-off-by: Stefano Fioravanzo <stefano@arrikto.com>
Reviewed-by: Ilias Katsakioris <elikatsis@arrikto.com>
Signed-off-by: Stefano Fioravanzo <stefano@arrikto.com>
Reviewed-by: Ilias Katsakioris <elikatsis@arrikto.com>
@elikatsis elikatsis force-pushed the feature-stefano-up-utils-improvements branch from 68b24c5 to a7f7bb7 Compare April 16, 2021 08:46
@elikatsis elikatsis merged commit a7f7bb7 into kubeflow-kale:master Apr 16, 2021
@elikatsis elikatsis deleted the feature-stefano-up-utils-improvements branch April 16, 2021 08:49
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants