Drift Detection
It is possible to automatically detect drift in deployments by using the driftDetection
, see the following example
apiVersion: infraweave.io/v1kind: S3Bucketmetadata: name: my-s3-bucketspec: ... driftDetection: enabled: true interval: 10m autoRemediate: true webhooks: - url: "https://hooks.slack.com/triggers/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"
It is possible to enable/disable and set interval for the checks.
Auto Remediation
It is possible to auto-remediate the drift by setting autoRemediate
to true
...spec: ... driftDetection: ... autoRemediate: true
Drift Webhooks
It is possible to set up webhooks to be called when drift is detected, which can be useful for e.g. use with slack
...spec: ... driftDetection: webhooks: - url: "https://hooks.slack.com/triggers/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" - url: "multiple_urls_can_be_added"