Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: annotate resources withSchemaVersion#244

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
mtojek merged 11 commits intomainfrom224-version-comp
Jun 25, 2024
Merged

Conversation

mtojek
Copy link
Member

@mtojekmtojek commentedJun 25, 2024
edited
Loading

Related:#224

Changes:

  • setSchemaVersion to 1 (first revision). One this is done, we can useStateUpgraders to transform the resource state
  • implement helpers to handle environment variables in a unified way

Re FIXMEs (actually more important than this PR):

Coder provisioner usesterraform-plugin-coder in different contexts - a dry run, a template run, a workspace build, etc. We can't usehelpers.RequireEnv() in other modes than "workspace build", as the provisioner does not set these values (empty variable). If we switch tohelpers.RequireEnv() now, "template import" will fail due to unset env values.
We can implement a workaround by passing the extra env variableCODER_WORKSPACE_BUILD_ID=.... If this variable is set, the plugin should presence the required env values.

@mtojekmtojek self-assigned thisJun 25, 2024
@mtojekmtojek changed the titlefeat: improve schema versioningfeat: adoptSchemaVersionJun 25, 2024
@mtojekmtojek changed the titlefeat: adoptSchemaVersionfeat: setSchemaVersionJun 25, 2024
@mtojekmtojek changed the titlefeat: setSchemaVersionfeat: annotate resources withSchemaVersionJun 25, 2024
@mtojekmtojek requested review fromjohnstcn andstirbyJune 25, 2024 11:56
@mtojekmtojek marked this pull request as ready for reviewJune 25, 2024 11:58
@mtojekmtojek merged commitd51a4a7 intomainJun 25, 2024
12 checks passed
@mtojekmtojek deleted the 224-version-comp branchJune 25, 2024 12:52
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsJun 25, 2024
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@johnstcnjohnstcnjohnstcn approved these changes

@stirbystirbyAwaiting requested review from stirby

Assignees

@mtojekmtojek

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@mtojek@johnstcn

[8]ページ先頭

©2009-2025 Movatter.jp