- Notifications
You must be signed in to change notification settings - Fork927
fix(examples): use more precise example kubernetes template labels#14028
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
fix(examples): use more precise example kubernetes template labels#14028
Uh oh!
There was an error while loading.Please reload this page.
Conversation
github-actionsbot commentedJul 26, 2024 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
All contributors have signed the CLA ✍️ ✅ |
I have read the CLA Document and I hereby sign the CLA |
recheck |
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 agree with the overall intent, but Kubernetes PVCs have a length limit of 63 characters. Theworkspace_instance
local will be 73 characters long as it consists of 2 UUIDs joined by a hyphen.
How about we instead usedata.coder_workspace.me.id
to act as a stable identifier?
Good catch, I think |
I think you'll run into the same issue if you try to use that
https://kubernetes.io/docs/reference/kubectl/generated/kubectl_label/ |
…8s example template as per docs
fb0805a
tobf1ea39
CompareSorry I didn't realise labels had the same restriction. I've changed everything to just use the workspace ID. |
@geniass, it looks like CLA is still not signed by you. This can happen if your GitHub email and your commuter email are different. |
recheck |
fb6fb0f
tobf1ea39
Compare
johnstcn left a comment• edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
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.
👍 Smoke-tested on my personal deployment (v2.14.1)
f50e1d5
intocoder:mainUh oh!
There was an error while loading.Please reload this page.
The current example template doesn't have the selector labels to correct identify the pods created by the workspace kubernetes deployment.
I.e. when multiple workspaces are created from a template, the deployment resources incorrectly try to manage pods from the other workspace's deployment.
This fix also changes persistent resource names to use immutable IDs instead of names as per the docs:https://coder.com/docs/templates/resource-persistence