Skip to content

Add a public package for xpkg specification values #827

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jastang
Copy link
Member

@jastang jastang commented Apr 2, 2025

Description of your changes

Adds a public package for constant values defined by Crossplane's xpkg specification.

ref: https://github.com/crossplane/crossplane/blob/main/internal/xpkg/name.go, which is internal.

I have:

Need help with this checklist? See the cheat sheet.

@jastang jastang requested a review from a team as a code owner April 2, 2025 16:25
@jastang jastang requested a review from phisco April 2, 2025 16:25
Comment on lines +36 to +43
XpkgExtension string = ".xpkg"

// XpkgMatchPattern is the match pattern for identifying compiled Crossplane packages.
XpkgMatchPattern string = "*" + XpkgExtension

// XpkgExamplesFile is the name of the file in a Crossplane package image
// that contains the examples YAML stream.
XpkgExamplesFile string = ".up/examples.yaml"
Copy link
Member Author

@jastang jastang Apr 2, 2025

Choose a reason for hiding this comment

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

@adamwg rightfully points out that some of these aren't technically defined by the specification, just often re-declared in other projects and specific implementation details.

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.

1 participant