-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Sanitize GIT TAG #16664
Sanitize GIT TAG #16664
Conversation
t := time.Now().Format("20060102") | ||
return fmt.Sprintf("v%s-%s", t, strings.TrimSpace(string(output))), nil |
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.
TrimSpace is unnecessary since the regexp will have already removed the spaces.
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
ping @Katharine |
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.
Thanks! Sorry for the delay.
Apparently I have lost approval on this, so you’ll need to get someone else. :( |
Ahh sorry, didn't realize you don't work on this anymore. Thank you for the approval! /assign @spiffxp |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Jefftree, Katharine, spiffxp 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 |
This was previously discussed on slack. apiserver-network-proxy has a golang submodule that requires a git tag with a slash (/) character (https://github.com/kubernetes-sigs/apiserver-network-proxy/tags). This is invalid for docker's specification of a tag
This PR sanitizes the git tag to remove invalid characters before being used as a docker tag.
/cc @caesarxuchao
/assign @Katharine