-
Notifications
You must be signed in to change notification settings - Fork 94
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
Generated job name is invalid #346
Comments
Yeah it shouldn't be possible to have an empty hash for a valid plan. That's an odd one for sure. |
Can you post the complete logs from the controller pod, with --debug if possible? Is there anything else odd going on in this environment? |
Yes, I had issues with etcd. But I've recreated the cluster, and upgraded from rc2 to 0.15.0, and moved system-upgrade-controller in its own namespace, and I still have the problem. The debug logs are here: |
The secret specified in your plan does not exist. From the log message:
We can fix this to improve the error handling if a specified secret does not exist, but this is a case of user error. |
The above-linked PR makes secrets with Note that if you need something from the secret for your upgrade pod to work properly, it probably should exist. |
Also note that your example plan was in the kube-system namespace, but referenced a serviceaccount that only exists in the system-upgrade namespace by default. I suspect that you were copy-pasting stuff and didn't ensure that everything referenced in the example actually existed where it should? |
Version
v0.15.0-rc2
Platform/Architecture
Linux talos-test04 6.12.11-talos #1 SMP Tue Jan 28 09:32:23 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux
Describe the bug
Jobs generated have invalid names, as they end with a "-":
To Reproduce
Deployment-YAML:
Plan-YAML:
Full deployment:
https://github.com/tuxpeople/k8s-homelab/tree/97e7256808cd65c0d004d4e58adbfd38e8f5984f/kubernetes/apps/kube-system/system-upgrade
Expected behavior
Jobs to created with valid names
Actual behavior
Controller fails to create jobs
Additional context
I'm not a programmer, but I digged a bit and I think the name gets created here:
system-upgrade-controller/pkg/upgrade/job/job.go
Line 179 in 98381a6
Therefore, I think
plan.Status.LatestHash
is empty. I assume it's coming from here:system-upgrade-controller/pkg/apis/upgrade.cattle.io/v1/types.go
Line 65 in 98381a6
But if I do a
kubectl get plan
, the plan does not have a status at all.Also, the event in the logs also not showing any hash (
Hash: "
)The text was updated successfully, but these errors were encountered: