Skip to content
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

image name has ":" #4076

Closed
wants to merge 1 commit into from
Closed

image name has ":" #4076

wants to merge 1 commit into from

Conversation

StillP
Copy link

@StillP StillP commented Jul 16, 2023

If the name of image has ":", that will not get correct version. Now I try fix it.

@makkes
Copy link
Member

makkes commented Jul 17, 2023

Colons are not allowed in OCI image references so I'm not sure what this PR is solving really.

@hiddeco
Copy link
Member

hiddeco commented Jul 17, 2023

The problem here seems to be that it relies on the container image from the Deployment and/or Pod spec, which can contain e.g. fictional.registry.example:10443/imagename:tag. See: https://kubernetes.io/docs/concepts/containers/images/#image-names.

But at the same time, this is already taken into account by the usage of len. This is not true for the tag extraction.

@makkes
Copy link
Member

makkes commented Jul 17, 2023

The problem here seems to be that it relies on the container image from the Deployment and/or Pod spec, which can contain e.g. fictional.registry.example:10443/imagename:tag.

Oh, I see. That makes sense.

@stefanprodan
Copy link
Member

@makkes
Copy link
Member

makkes commented Jul 17, 2023

@StillP please make sure to follow our contribution guide by

  • agreeing to the DCO
  • using a proper commit title and message
  • bonus: providing a regression test

@stefanprodan
Copy link
Member

stefanprodan commented Aug 22, 2023

Superseded by #4180

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants