Nan Li

Results 50 comments of Nan Li

> 1. What will happen, if a variable of the configuration changes? The job will be deleted. Do you mean [the deletion happened when updating the configuration](https://github.com/oam-dev/terraform-controller/blob/52091ac0e0d85b9d39d1e1c194e528d95d8d9b0d/controllers/configuration_controller.go#L564)? In my opinion,...

> 2. `terraform init` logic is in an initContainer, will you use a normal container to perform the action? I think initContainer is ok.

> > > 1. What will happen, if a variable of the configuration changes? The job will be deleted. > > > > > > Do you mean [the deletion...

In my opinion, the state is stored in remote backend in most cases except the `local` type. Should we backup the state manually after `terraform apply` or `terraform destory` using...

Sorry for the late reply. I draw a flowchart to show how the terraform-controller job works. The newly added steps are labeled and start with `New: `. ```mermaid graph TD...

Thanks for the reply! @zzxwill 1. It's certain that we needn't to push the backup state to the remote backend before the first `terraform apply`. But if the configuration is...

> So how can you tell when it's the first time of `terraform apply` or when the configuration is changed. As you know, there is not state when executing `terraform...

> We ask end-users to tell us whether there is a custom Terraform backend and what it is in the Configuration spec. In this way, when should we backup and...

Okay, I understand. Actually, I was confused as to why we should backup and restore manually the terraform state as the Terraform will store its state in the backend itself……...

OK. So we also need to provide some options in the configuration yaml for the end-users to configure there state-backup-location. And, should the “backup and restore” actions happen only when...