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

[v2] Stable envRefs #678

Merged
merged 4 commits into from
Sep 23, 2024
Merged

[v2] Stable envRefs #678

merged 4 commits into from
Sep 23, 2024

Conversation

blampe
Copy link
Contributor

@blampe blampe commented Sep 20, 2024

Stack CRDs that include envRefs will currently thrash the workspace's underlying StatefulSet because map order is undefined.

This sorts the envRef keys ahead of time to keep the StatefulSet stable. As a result we're also able to turn on the E2E test in CI since it should now succeed reliably.

@blampe blampe changed the base branch from master to v2 September 20, 2024 23:33
@blampe blampe added the impact/no-changelog-required This issue doesn't require a CHANGELOG update label Sep 20, 2024
Copy link

codecov bot commented Sep 20, 2024

Codecov Report

Attention: Patch coverage is 20.00000% with 4 lines in your changes missing coverage. Please review.

Project coverage is 33.25%. Comparing base (ab6c570) to head (be10198).
Report is 1 commits behind head on v2.

Files with missing lines Patch % Lines
...tor/internal/controller/pulumi/stack_controller.go 20.00% 3 Missing and 1 partial ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##               v2     #678   +/-   ##
=======================================
  Coverage   33.24%   33.25%           
=======================================
  Files          25       25           
  Lines        3949     3951    +2     
=======================================
+ Hits         1313     1314    +1     
- Misses       2474     2475    +1     
  Partials      162      162           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Comment on lines -94 to -96
t.Cleanup(func() {
_ = run(exec.Command("kubectl", "delete", "-f", "e2e/testdata/git-auth-nonroot"))
})
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was deleting the secret needed by the operator in order to poll the repo, preventing the stack from reconciling / getting deleted.

@blampe blampe merged commit af4964f into v2 Sep 23, 2024
7 checks passed
@blampe blampe deleted the blampe/v2-envvars branch September 23, 2024 19:53
blampe added a commit that referenced this pull request Sep 24, 2024
Stack CRDs that include `envRefs` will currently thrash the workspace's
underlying StatefulSet because map order is undefined.

This sorts the envRef keys ahead of time to keep the StatefulSet stable.
As a result we're also able to turn on the E2E test in CI since it
should now succeed reliably.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
impact/no-changelog-required This issue doesn't require a CHANGELOG update
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants