Skip to content

Instantly share code, notes, and snippets.

@chanwit
Created December 25, 2021 08:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chanwit/17d4a130d52fe569d41f266ee5df5823 to your computer and use it in GitHub Desktop.
Save chanwit/17d4a130d52fe569d41f266ee5df5823 to your computer and use it in GitHub Desktop.
// TerraformSpec defines the desired state of Terraform
type TerraformSpec struct {
// ApprovePlan specifies name of a plan wanted to approve.
// If its value is "auto", the controller will automatically approve every plan.
// +optional
ApprovePlan string `json:"approvePlan,omitempty"`
// +optional
BackendConfig *BackendConfigSpec `json:"backendConfig,omitempty"`
// List of input variables to set for the Terraform program.
// +optional
Vars []Variable `json:"vars,omitempty"`
// +optional
VarsFrom *VarsReference `json:"varsFrom,omitempty"`
// The interval at which to reconcile the Terraform.
// +required
Interval metav1.Duration `json:"interval"`
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment