Skip to content

🐛 labels: use consistent format for keys #1096

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

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 5 additions & 9 deletions internal/labels/labels.go
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
package labels

const (
OwnerKindKey = "olm.operatorframework.io/owner-kind"
OwnerNameKey = "olm.operatorframework.io/owner-name"

// Helm Secret annotations use the regex `(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?`
// to validate labels. Which is why a similar format as OwnerKindKey/OwnerNameKey
// cannot be used as they do not conform to the regex requirements.
PackageNameKey = "olm_operatorframework_io_package_name"
BundleNameKey = "olm_operatorframework_io_bundle_name"
BundleVersionKey = "olm_operatorframework_io_bundle_version"
OwnerKindKey = "olm.operatorframework.io/owner-kind"
OwnerNameKey = "olm.operatorframework.io/owner-name"
PackageNameKey = "olm.operatorframework.io/package-name"
BundleNameKey = "olm.operatorframework.io/bundle-name"
BundleVersionKey = "olm.operatorframework.io/bundle-version"
)