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

Update to new null-label. Add stack sub-module to calculate stack names #35

Merged
merged 15 commits into from
Aug 23, 2021

Conversation

aknysh
Copy link
Member

@aknysh aknysh commented Aug 21, 2021

what

  • Update to new null-label
  • Add stack sub-module to calculate stack names

why

  • Use new features from null-label module:

    • Additional label and id component: tenant
    • New input labels_as_tags controls which labels are exported as tags
    • New input descriptor_formats generates new output descriptors - use it to calculate the stack names
  • stack submodule is used to calculate stack names in one place and use the same logic in all other sub-modules

references

@aknysh aknysh self-assigned this Aug 21, 2021
@aknysh aknysh requested review from a team as code owners August 21, 2021 19:30
@aknysh aknysh requested a review from woz5999 August 21, 2021 19:30
@aknysh
Copy link
Member Author

aknysh commented Aug 21, 2021

/test all

@aknysh
Copy link
Member Author

aknysh commented Aug 21, 2021

/test all

osterman
osterman previously approved these changes Aug 21, 2021
Nuru and others added 6 commits August 22, 2021 12:05
* Custom context.tf for stack

* Make custom context.tf module name "always"

* Add context-always to remote-state, remove workspace from config

* Auto Format

Co-authored-by: cloudpossebot <[email protected]>
@aknysh
Copy link
Member Author

aknysh commented Aug 22, 2021

/test all

@aknysh
Copy link
Member Author

aknysh commented Aug 22, 2021

/test all

@aknysh aknysh requested a review from osterman August 22, 2021 18:20
Copy link
Member

@korenyoni korenyoni left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

One thing I will say is I think context-always should be exported from null_label and automated via the auto-context workflow, but perhaps renamed to context-stack-config so that it isn't accidentally used anywhere else. Either way, that's not really relevant to this PR and can be done later if anyone shares my opinion.

@aknysh aknysh merged commit a03b604 into main Aug 23, 2021
@aknysh aknysh deleted the use-new-labels branch August 23, 2021 15:57
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.

5 participants