-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Pass explicit platforms list when publishing images #4480
Conversation
Prior to this commit the pipeline-release Pipeline relied on default params to ensure that the publish-release task emits a windows entrypoint image. It looks like this no longer works because the dogfooding cluster is using alpha API fields, including implicit params. With implicit params it is not possible to _skip_ a param in a PipelineTask if it shares a name with a Param in the Pipeline. So before we were intentionally omitting the platforms param and relying on the default param value in the publish-release Task but with implicit params this is no longer possible. This commit overrides the param passed to publish-release with the full string of platforms including windows. We don't want to update the Pipeline's `platforms` param because our build-images PipelineTask can't build the windows image. Confusing.
yeah, maybe we can have explicit build-platforms and publish-platforms |
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!
/lgtm
# pipeline. The reason for this is that the build-images | ||
# PipelineTask doesn't build the windows base image, but the | ||
# publish-release PipelineTask does. | ||
value: linux/amd64,linux/arm,linux/arm64,linux/s390x,linux/ppc64le,windows/amd64 |
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 wonder if we would benefit from value: $(params.platforms),windows/amd64
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!
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dibyom, imjasonh 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 |
Changes
Prior to this commit the pipeline-release Pipeline relied on default
params to ensure that the publish-release task emits a windows
entrypoint image. It looks like this no longer works because the
dogfooding cluster is using alpha API fields, including implicit params.
With implicit params it is not possible to skip a param in a PipelineTask if it
shares a name with a Param in the Pipeline. So before we were intentionally omitting the
platforms param and relying on the default param value in the
publish-release Task but with implicit params this is no longer
possible.
This commit overrides the param passed to publish-release with the full
string of platforms including windows. We don't want to update the
Pipeline's
platforms
param because our build-imagesPipelineTask can't build the windows image. Confusing.
/kind bug
Submitter Checklist
As the author of this PR, please check off the items in this checklist:
functionality, content, code)
Release Notes