-
Notifications
You must be signed in to change notification settings - Fork 105
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
Kapp-controller did not find change in cronjob initcontainer #1637
Comments
To narrow down on the issue, what happens when you run something along the lines of |
Tried it with kapp too, same thing.
But no runs as in cronjob |
Definitely suspicious, I am going to try and mock this, but looks like a rebase rule at play. |
@100mik no custom rebase rules are involved according to @qeqar |
@mamachanko is there any other section of custom kapp config that might be at play? is it possible to share? |
I can add some more files, but i don't see a place were i changed the rules. the appCR:
We don't have any special config for the kapp-controller
And thats all. Tell me if i should look into more special places. |
@qeqar this either suggests that - as you mentioned - kapp(-controller) is dropping the change or the change is already applied. The latter might be possible, b/c kapp-controller may already have applied it. Can you assert whether the respective Use any tool of choice, but this may lead you right to it I think: kapp inspect -a gks-cluster-backup.app --filter-kind CronJob --filter-name etcd-backup-restic --raw |
I looked more then once in the target cluster, and it only get added when the CronJob resource is newly created. |
@qeqar Would you be able to share the output of the following?
(Just trying to ensure that there's no kapp config that might have seeped in the bundle config.) |
|
@qeqar Sorry, missed the notification, could you also share all the files present in the bundle? Are these two resources that you shared above the only ones in the bundle? |
@praveenrewar yes it will render only the cronjob and the secret. I have the schemal and default.yaml and bundle.yaml
Thats all. And i use these to command to create/upload the bundle:
that is all! |
That is indeed a bit weird, because I am not able to reproduce the issue with a CronJob and I can't think of any other way kapp rebase rules could have been passed.
|
What steps did you take:
We install some Cronjobs in remote clusters via the kapp-controller.
Our Setup: oci-bundle -> appCR -> kapp-controller -> remote cluster
What happened:
We updates
spec.jobTemplate.spec.template.spec.initContainers[0]
i added .securityContext.runAsUser
But the controller did not find the change, and said no diffs.
For testing purpose we did the same with
spec.jobTemplate.spec.template.spec.containers[0]
, which just worked fineWhat did you expect:
Cronjob gets updated
Anything else you would like to add:
[Additional information that will assist in solving the issue.]
Environment:
K8S 1.31.1
Kapp-controller: v0.53.1
That is the used Template for the bundle:
The text was updated successfully, but these errors were encountered: