-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
SDK/DSL: Fix PipelineVolume name length #2739
SDK/DSL: Fix PipelineVolume name length #2739
Conversation
Volume name must be no more than 63 characters Signed-off-by: Ilias Katsakioris <elikatsis@arrikto.com>
d62659b
to
f3f1c8f
Compare
The errors seem unrelated to the change. I rebased on top of |
2ec5305
to
f9bf52a
Compare
Signed-off-by: Ilias Katsakioris <elikatsis@arrikto.com>
f9bf52a
to
fd34e47
Compare
sort_keys=True), | ||
"utf-8")).hexdigest() | ||
name = "pvolume-{}".format(hash_value) | ||
self.name = name[0:63] if len(name) > 63 else name |
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.
JFYI: name[0:63]
works fine even when length is less than 63 characters.
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.
Oh, didn't know, thanks! Should I change and push it?
/lgtm |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Ark-kun The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
* SDK/DSL: Fix PipelineVolume name length Volume name must be no more than 63 characters Signed-off-by: Ilias Katsakioris <elikatsis@arrikto.com> * Change which part of the hash value we make use of Signed-off-by: Ilias Katsakioris <elikatsis@arrikto.com>
Signed-off-by: rachitchauhan43 <rachitchauhan43@gmail.com> Signed-off-by: Dan Sun <dsun20@bloomberg.net> Co-authored-by: Rachit Chauhan <rachitchauhan43@gmail.com>
Volume name must be no more than 63 characters
Signed-off-by: Ilias Katsakioris elikatsis@arrikto.com
Example of faulty behavior mentioned in kubeflow-kale/kale#30:
This change is