-
Notifications
You must be signed in to change notification settings - Fork 70
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
makefile: integrate xpkg publishing process #142
Conversation
…Upbound marketplace, too Signed-off-by: Muvaffak Onus <me@muvaf.com>
Signed-off-by: Muvaffak Onus <me@muvaf.com>
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.
@muvaf thanks for updating this! We are going to need some more changes for it to work fully. crossplane-contrib/provider-aws#1460 may be useful to model after
…ller binary Signed-off-by: Muvaffak Onus <me@muvaf.com>
The integration test fails with the following event on
@hasheddan @turkenh does this ring a bell? It works as expected when I run the controller locally with |
Alright the problem turned out to be that distroless image didn't allow Helm to call Another thing is that bitnami wordpress image does not yet support ARM apparently bitnami/charts#7305 |
Makefile
Outdated
@@ -2,7 +2,6 @@ | |||
PROJECT_NAME := provider-helm | |||
PROJECT_REPO := github.com/crossplane-contrib/$(PROJECT_NAME) | |||
|
|||
PLATFORMS ?= linux_amd64 linux_arm64 |
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.
@muvaf does this need to be dropped?
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 didn't see it in provider-aws and thought we probably don't need it here either. Is there a reason to keep it? The default in submodule seems to include darwin and windows as well.
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 believe that it is present in all providers (example in provider-aws). The only issue it would cause is in image construction, but it looks like it is being skipped correctly. I think building the extra binaries here is not really needed, but I'm not strongly against it.
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 I missed that. I'd prefer not to deviate, reverted that part. Thanks!
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.
@muvaf I'll let you decide about the arch question 👍🏻 Thanks for your work here!
try to create /.cache folder which is not allowed in distroless. Signed-off-by: Muvaffak Onus <me@muvaf.com>
eb369de
to
61456ad
Compare
Successfully created backport PR #143 for |
Description of your changes
This adds the consumption of
xpkg
build lib so that we push XPKG to Upbound marketplace. It needsXPKG_ACCESS_ID
andXPKG_TOKEN
secret vars that can push toxpkg.upbound.io/crossplane
but I don't have access to that org @hasheddanI borrowed most of the logic from https://github.com/crossplane-contrib/provider-aws/blob/master/Makefile
I have:
make reviewable
to ensure this PR is ready for review.How has this code been tested
make -j2 build.all
and see a multi-arch xpkg is built.e2e-test
target of the PR.