Skip to content

Push function-kcl to GHCR#261

Merged
Peefy merged 2 commits into
crossplane-contrib:mainfrom
negz:push-to-ghcr
Mar 28, 2025
Merged

Push function-kcl to GHCR#261
Peefy merged 2 commits into
crossplane-contrib:mainfrom
negz:push-to-ghcr

Conversation

@negz

@negz negz commented Mar 28, 2025

Copy link
Copy Markdown
Member

Description of your changes

See #252 (comment) for context.

We'd like to add function-kcl as an option in a new getting started with composition guide on https://docs.crossplane.io. We're currently unable to do that, because it's only pushed to xpkg.upbound.io. We now need packages to be pushed to xpkg.crossplane.io in order for them to appear in the documentation.

I have:

Signed-off-by: Nic Cope <nicc@rk0n.org>
@negz negz requested a review from Peefy March 28, 2025 02:23
Comment thread .github/workflows/ci.yaml
Comment on lines 168 to 170
- name: Push Latest Package to Upbound
if: env.XPKG_ACCESS_ID != ''
run: "./crossplane --verbose xpkg push --package-files $(echo *.xpkg|tr ' ' ,) ${{ env.XPKG }}:latest"

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that I've intentionally omitted pushing a :latest tag to GHCR.

Crossplane packages shouldn't use the :latest tag. Package tags should always be semantic versions. This is required for the package manager to support dependency resolution. We need to update https://github.com/crossplane/crossplane/blob/main/contributing/specifications/xpkg.md to state this.

@negz

negz commented Mar 28, 2025

Copy link
Copy Markdown
Member Author

Once this is merged we'll need to re-run CI to push v0.11.2 to GHCR.

@jbw976 jbw976 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, looks like the same approach taken as crossplane-contrib/function-patch-and-transform#171 🤓

These folks have maintainer perms on this repo in the GitHub settings.

Signed-off-by: Nic Cope <nicc@rk0n.org>
Comment thread OWNERS.md
Comment on lines +14 to +15
* Peefy ([peefy](https://github.com/peefy))
* Zong Zhe ([zong-zhe](https://github.com/zong-zhe))

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Peefy @zong-zhe Let me know if you'd like me to use different names here!

@negz

negz commented Mar 28, 2025

Copy link
Copy Markdown
Member Author

Updated the PR to add an OWNERS.md too, which is also now required per https://github.com/crossplane/crossplane/blob/main/GOVERNANCE.md#policies-for-community-extension-projects.

@negz

negz commented Mar 28, 2025

Copy link
Copy Markdown
Member Author

@Peefy @zong-zhe I'm going to wait for one of you to approve this before merging, since neither @jbw976 or I are maintainers of this repo.

@Peefy Peefy left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! LGTM!

@Peefy Peefy merged commit 10f6400 into crossplane-contrib:main Mar 28, 2025
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.

3 participants