-
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.
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.
-
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.
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.