Skip to content
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

CLI to export TerraformConfiguration #12

Open
6 tasks
kron4eg opened this issue Aug 27, 2019 · 1 comment
Open
6 tasks

CLI to export TerraformConfiguration #12

kron4eg opened this issue Aug 27, 2019 · 1 comment
Labels
kind/feature Categorizes issue or PR as related to a new feature.

Comments

@kron4eg
Copy link
Contributor

kron4eg commented Aug 27, 2019

kubeterra export command to read from cluster when given TerraformConfiguration object name.

Dump contents of TerraformConfiguration:

  • spec.configuration -> main.tf
  • spec.values -> terraform.tfvars
  • if case when volumes reference secrets and/or configMaps and not references in env/envFrom, fetch their contents as files

Dump contents of TerraformState:

  • spec.state -> terraform.tfstate

Once created, print instructions on how to proceed next.

  • tell about ENV credentials that might be needed
  • tell about possible need to adjust paths to file if any
@scheeles
Copy link
Contributor

the CLI should be an plugin for kubectl

@kron4eg kron4eg added the kind/feature Categorizes issue or PR as related to a new feature. label Aug 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature.
Projects
None yet
Development

No branches or pull requests

2 participants