Skip to content

CLI to import terraform config #11

Description

@kron4eg

kubeterra import command, when run inside the directory with terraform config should create TerraformConfuguration object.

Files to import:

  • contact all *.tf files -> goes to spec.configuration
  • contact terraform.tfvars + *.auto.tfvars if presented -> goes to spec.values
  • always spec.autoApprove=false
  • always spec.paused=true

Once created, print instructions on how to proceed next.

  • tell about spec.template.env and spec.template.envFrom (to configure credentials)
  • tell about spec.template.volumes and spec.template.volumeMounts to configure some additional files (like ssh keys)
  • tell about spec.paused to unpause the processing of TerraformConfuguration.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureCategorizes issue or PR as related to a new feature.

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions