Skip to content

TER-412 regenerate platform metadata on lint#170

Open
kanaksinghal wants to merge 1 commit intomainfrom
kanak/TER-412
Open

TER-412 regenerate platform metadata on lint#170
kanaksinghal wants to merge 1 commit intomainfrom
kanak/TER-412

Conversation

@kanaksinghal
Copy link
Contributor

change the behavior of lint command to always regenerate the platform metadata file (terrarium.yaml) on every lint command execution

This implies that the manual changes in platform metadata file are not acceptable now.
this also impacts the behavior of terrarium generate command such that it doesn't respect the manual changes in the platform metadata file

This also impacts the example platform since it was not actually implementing the dependencies and it was only added to the metadata file to bypass the errors.
Therefore this change also has updates the the example/platform such that now it implements each dependency in terraform and doesn't have manually adjusted metadata.
Although the example/platform contains working mock implementation such that it can be used to test the t8 lint & generate command and can also run terraform plan and apply successfully but it'll generate random mock values for output instead of actually provisioning resources on cloud.

@kanaksinghal
Copy link
Contributor Author

Demo of the new no-op platform template:

platform_usage.mp4

@kanaksinghal kanaksinghal force-pushed the kanak/TER-412 branch 5 times, most recently from 15f70a0 to d65dbf2 Compare December 28, 2023 06:15
change the behavior of lint command to always regenerate the
platform metadata file (terrarium.yaml) on every lint command execution

This implies that the manual changes in platform metadata file are not
acceptable now.
this also impacts the behavior of terrarium generate command such that
it doesn't respect the manual changes in the platform metadata file

This also impacts the example platform since it was not
actually implementing the dependencies and it was only
added to the metadata file to bypass the errors.
Therefore this change also has updates the the `example/platform`
such that now it implements each dependency in terraform and doesn't
have manually adjusted metadata.
Although the `example/platform` contains working mock implementation
such that it can be used to test the t8 lint & generate command and can
also run terraform plan and apply successfully but it'll generate
random mock values for output instead of actually provisioning resources
on cloud.
@sonarqubecloud
Copy link

@kanaksinghal kanaksinghal enabled auto-merge (squash) December 28, 2023 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant