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

Merged
merged 4 commits into from
Mar 26, 2025
Merged

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
@github-actions github-actions bot added ready to merge PR approved - can be merged once the PR owner is ready and removed pending final review labels Mar 26, 2025
@TomerHeber TomerHeber merged commit 27d775f into main Mar 26, 2025
4 checks passed
@TomerHeber TomerHeber deleted the feat-drift-remediation-#1011 branch March 26, 2025 11:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support Drift Remediation
2 participants