Skip to content
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

Feat: Support Drift Remediation #1019

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

TomerHeber
Copy link
Collaborator

Issue & Steps to Reproduce / Feature Request

resolves #1011

Solution

  1. Added the new field to both APIs.
  2. Added the new field to the schema for both resources + data resource for project policy.
  3. Updated unit tests.
  4. Updated acceptance tests.
  5. Updated harness tests.
  6. Updated examples.

@@ -31,6 +36,16 @@ func resourceDriftDetection() *schema.Resource {
Required: true,
ValidateDiagFunc: ValidateCronExpression,
},
"auto_drift_remediation": {
Type: schema.TypeString,
Description: "Auto drift remediation setting (DISABLED or CODE_TO_CLOUD). Defaults to DISABLED",
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note: default is "DISABLED.

Description: "Auto drift remediation setting (DISABLED or CODE_TO_CLOUD). Defaults to DISABLED",
Optional: true,
Default: DriftRemediationDisabled,
ValidateDiagFunc: NewStringInValidator([]string{
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note: default is "DISABLED.

@TomerHeber
Copy link
Collaborator Author

/review

@bot-env0 bot-env0 requested a review from a team February 27, 2025 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support Drift Remediation
1 participant