Skip to content
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

Long namespace names can cause reconciler errors #166

Closed
Starttoaster opened this issue Sep 11, 2024 · 1 comment
Closed

Long namespace names can cause reconciler errors #166

Starttoaster opened this issue Sep 11, 2024 · 1 comment

Comments

@Starttoaster
Copy link
Contributor

A "provenance" label gets added to each resource created by the operator. The actual key of the provenance label is k8s.chia.net/provenance. Normally the value of this label is just something like ChiaNode.chia-blockchain-testnet11.node in the format of Kind.namespace.name, which is fine as it doesn't exceed the limit for a label's key or value of 63 chars. However, if someone were to use an unusually long namespace or name for an operator managed resource (eg. ChiaNode) then the reconciler will fail with an error like the following:

ChiaNodeReconciler ChiaNode=synctest-testnet11-a6a27bfe8e8d3e3db16701e7a33182ac11ce0723/synctest-node error creating Service \"synctest-node-node\": Service \"synctest-node-node\" is invalid: [metadata.labels: Invalid value: \"ChiaNode.synctest-testnet11-a6a27bfe8e8d3e3db16701e7a33182ac11ce0723.synctest-node\": must be no more than 63 characters, spec.selector: Invalid value: \"ChiaNode.synctest-testnet11-a6a27bfe8e8d3e3db16701e7a33182ac11ce0723.synctest-node\": must be no more than 63 characters]
@Starttoaster
Copy link
Contributor Author

Solved in release 0.9.0

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

No branches or pull requests

1 participant