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

TER-412 regenerate platform metadata on lint #170

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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.
Copy link

sonarcloud bot commented Dec 28, 2023

@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.

None yet

1 participant