Hi,
I’m using terraform with k8s provider and every time I’m running terraform apply/change I have this message:
Note: Objects have changed outside of Terraform
then After it I’m getting a list of resources that changed in their metadata.resource_version.
it is happening specifically with cron job that really changes all the time because new run of the job change the version of it.
I know there should be way to ignore it via
lifecycle {
ignore_changes = [
]
}
but when I tried - it didn’t work.
IS there any other workaround or fix for this to not output / check for changes in this fields
(it can happen in deployment too if someone even did "rollout restart or delete the pod and it created new one and now the deployment itself has different value in the version but no other change)
versions:
Terraform v1.0.4 on darwin_amd64
- provider registry.terraform.io/hashicorp/kubernetes v2.3.2