-
let client = Client::try_default().await?;
let deployments: Api<Deployment> = Api::all(client);
Controller::new(deployments, Default::default())
.run(reconcile, error_policy, Arc::new(()))
.for_each(|_| futures::future::ready(()))
.await;
Ok(())
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
xxx/deploy: "2" # value chanaged: 1 -> 2
|
Beta Was this translation helpful? Give feedback.
Answered by
SOF3
Apr 26, 2024
Replies: 2 comments 3 replies
-
Maybe another controller (e.g. deployment controller) also updated the deployment in response to your change and triggered another reconcile? You can try dumping the whole deployment object to see if anything changed. |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
ppsite
-
it's also possible to filter out changes to a controller that did not affect the spec using something like |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Maybe another controller (e.g. deployment controller) also updated the deployment in response to your change and triggered another reconcile? You can try dumping the whole deployment object to see if anything changed.