-
Notifications
You must be signed in to change notification settings - Fork 209
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
How to execute a plan to validate infrastructure changes prior to deployment? #4198
Comments
ASO won't ever automatically delete resources under any circumstance. The only time a resource would be deleted is if you issue
ASO will reject changes to the name field of a resource, because that field is immutable in Azure. If you want to delete that resource and create a different one, issue We don't currently have any equivalent to Terraform plan. Partially that's because it doesn't fit as well into an operator model as it does into Terraforms model, partially that's because with ASO you (in general) need to do a bit less guessing about what it's actually going to do when compared to Terraform. Much of the time, viewing the changes in git prior to merging the PR is going to be sufficient. If we were to implement some sort of plan-like approach, ~95% of the time the actual Azure API delta and the ASO delta would look identical, because ASO objects just proxy the Azure API shape most of the time. There are a few tools/tricks you can have to help protect things even in the abscence of a plan-like approach:
I don't think we're necessarily opposed to a plan-like feature, but I don't know exactly what it would look like in the context of an operator like ASO, and we'd need to understand what value add it added over standard GitOps which (I think) already mostly covers it. |
We're looking to utilize ASO v2 in our org, but one question we have is how to go about validating infrastructure changes prior to deploying? For example, with git we can validate schema-level changes, but there are oftentimes changes that would end up re-creating the resource which is not always evident in the PR (e.g., changes to a name param). What we are looking for is an output similar to a Terraform Plan or an alternative approach to validate such changes prior to the ASO performing actions.
The text was updated successfully, but these errors were encountered: