mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-24 16:10:46 -06:00
5d6c5a9a33
* command: keep our promises * remove some nil config checks Remove some of the safety checks that ensure plan nodes have config attached at the appropriate time. * add GeneratedConfig to plan changes objects Add a new GeneratedConfig field alongside Importing in plan changes. * add config generation package The genconfig package implements HCL config generation from provider state values. Thanks to @mildwonkey whose implementation of terraform add is the basis for this package. * generate config during plan If a resource is being imported and does not already have config, attempt to generate that config during planning. The config is generated from the state as an HCL string, and then parsed back into an hcl.Body to attach to the plan graph node. The generated config string is attached to the change emitted by the plan. * complete config generation prototype, and add tests * plannable import: add a provider argument to the import block * Update internal/configs/config.go Co-authored-by: kmoe <5575356+kmoe@users.noreply.github.com> * Update internal/configs/config.go Co-authored-by: kmoe <5575356+kmoe@users.noreply.github.com> * Update internal/configs/config.go Co-authored-by: kmoe <5575356+kmoe@users.noreply.github.com> * fix formatting and tests --------- Co-authored-by: Katy Moe <katy@katy.moe> Co-authored-by: kmoe <5575356+kmoe@users.noreply.github.com> |
||
---|---|---|
.. | ||
addrs | ||
backend | ||
builtin | ||
checks | ||
cloud | ||
command | ||
communicator | ||
configs | ||
copy | ||
dag | ||
depsfile | ||
didyoumean | ||
e2e | ||
experiments | ||
genconfig | ||
getmodules | ||
getproviders | ||
grpcwrap | ||
helper/slowmessage | ||
httpclient | ||
initwd | ||
instances | ||
ipaddr | ||
lang | ||
legacy | ||
logging | ||
modsdir | ||
moduledeps | ||
moduletest | ||
plans | ||
plugin | ||
plugin6 | ||
provider-simple | ||
provider-simple-v6 | ||
provider-terraform/main | ||
providercache | ||
providers | ||
provisioner-local-exec/main | ||
provisioners | ||
refactoring | ||
registry | ||
repl | ||
replacefile | ||
states | ||
terminal | ||
terraform | ||
tfdiags | ||
tfplugin5 | ||
tfplugin6 |