-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Labels
Description
[To discuss]
Context
When initialising a promise via any of the init commands, by default, the version of the promise is set to v0.0.1. We have received feedback from users that when initialising a promise from a Terraform module, they want the version of the Promise to mirror the version of the Terraform Module.
The below is an example command to initialise a promise from a Terraform module:
kratix init tf-module-promise vpc --module-version v5.19.0 --module-source https://github.com/terraform-aws-modules/terraform-aws-vpc.git --group syntasso.io --kind VPC --version v1alpha1 --dir api-confirmation-revisited
The --module-version is a required field so this is information the cli has access to so the suggestion is possible but it may not be what we desire for the design of the init command.
Possible strategies:
- The above, for tf-module promises the promise version matches the version of the module
- The version of the promise is exposed via a
--versionflag to theinitcommand so users have the option of configuring this when initialising the promise - The
tf-module-promisesub-command has a--match-module-versionflag to ensure the promise version matches the module version - Any more?