You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the actions a user has to take in order to review a plan before applying is "hacky" to say the least.
Steps to take are:
First the user has to configure *all of applyOnCreate, applyOnUpdate, and applyOnDelete in the tf resource.
Then the user creates the resource, waits for the pod to be created, and has to do a kubectl logs on the pod.
Finally, after the user view the plan, the user has to go find the RESOURCE_NAME-actions ConfigMap and edit the data value with "apply".
*all -- this is technically not true, Just one of the applyOn*'s need to be defined depending on the lifecycle of the tf resource, but that's so confusing might as well do all of them just in case.
This is a horrible design (and I am ashamed) 👎🏾
I think a better solution would be to make an internal web-client a user can interact with. The web-client would be a refreshing take on how to view plans and trigger applys. Perhaps something like:
# View a plan
curl http://terraform-operator.tf-system.svc.cluster.local/<namespace>/<tf-resource-name>/view
# Apply
curl http://terraform-operator.tf-system.svc.cluster.local/<namespace>/<tf-resource-name>/apply
Currently the actions a user has to take in order to review a plan before applying is "hacky" to say the least.
This is a horrible design (and I am ashamed) 👎🏾
I think a better solution would be to make an internal web-client a user can interact with. The web-client would be a refreshing take on how to view plans and trigger applys. Perhaps something like:
This work should come after #26 (https://github.com/isaaguilar/terraform-operator/blob/feature/terraform-runner-container-states/docs/container-states.md) since pods will be split up between init/plan/apply stages and the controller will have more control between each stage.
The text was updated successfully, but these errors were encountered: