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

Ensure CNI manifest is applied to cluster when the base manifest and provider are updated #1093

Merged
merged 9 commits into from
Mar 26, 2024

Conversation

rquitales
Copy link
Member

@rquitales rquitales commented Mar 26, 2024

Proposed changes

This PR ensures that changes to the base CNI manifest is applied as a Pulumi update whenever the provider version changes. This is done by now also storing the computed manifest in state to diff against. Previously, only changes to user VpcCni opts caused a diff. This would mean that some users who have already updated to the latest provider version, and manually triggered a CNI update would encounter a one-off spurious diff since the computed manifest would not have been stored in state.

Changes made:

  • Add applied manifest to state to fix the issue where the manifest isn't reapplied when the provider is updated
  • fix the issue where VpcCni could not be passed a kubeconfig object correctly
  • updated CI to use the latest version of the Pulumi binary
  • Added CNIAcrossUpdates integration test
  • Added CNIAcrossUpdates to the list of tests to run in CI

Related issues (optional)

Fixes: #1057
Fixes: #1092

@rquitales rquitales force-pushed the rquitales/always-apply-cni branch from 9548c72 to 64edbb6 Compare March 26, 2024 04:40
@rquitales rquitales force-pushed the rquitales/always-apply-cni branch from a1bb000 to 4ef5be6 Compare March 26, 2024 05:49
@rquitales rquitales requested review from thomas11 and a team March 26, 2024 05:50
Copy link
Contributor

@thomas11 thomas11 left a comment

Choose a reason for hiding this comment

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

I'm not sure I have enough context and knowledge in this area to fully review this, but from my PoV it looks good.

Recording fresh test snapshots for `TestExamplesUpgrade`.
@pulumi pulumi deleted a comment from github-actions bot Mar 26, 2024
@pulumi pulumi deleted a comment from github-actions bot Mar 26, 2024
@pulumi pulumi deleted a comment from github-actions bot Mar 26, 2024
@pulumi pulumi deleted a comment from github-actions bot Mar 26, 2024
@pulumi pulumi deleted a comment from github-actions bot Mar 26, 2024
@pulumi pulumi deleted a comment from github-actions bot Mar 26, 2024
Copy link

Does the PR have any schema changes?

Looking good! No breaking changes found.
No new resources/functions.

@rquitales rquitales force-pushed the rquitales/always-apply-cni branch from 75e57a5 to de518b3 Compare March 26, 2024 20:12
Copy link

Does the PR have any schema changes?

Looking good! No breaking changes found.
No new resources/functions.

@rquitales rquitales merged commit 9343929 into master Mar 26, 2024
41 checks passed
@rquitales rquitales deleted the rquitales/always-apply-cni branch March 26, 2024 22:35
flostadler pushed a commit that referenced this pull request Sep 4, 2024
…provider are updated (#1093)

### Proposed changes

This PR ensures that changes to the base CNI manifest is applied as a
Pulumi update whenever the provider version changes. This is done by now
also storing the computed manifest in state to diff against. Previously,
only changes to user VpcCni opts caused a diff. This would mean that
some users who have already updated to the latest provider version, and
manually triggered a CNI update would encounter a one-off spurious diff
since the computed manifest would not have been stored in state.

Changes made:

- Add applied manifest to state to fix the issue where the manifest
isn't reapplied when the provider is updated
- fix the issue where VpcCni could not be passed a kubeconfig object
correctly
- updated CI to use the latest version of the Pulumi binary
- Added CNIAcrossUpdates integration test
- Added CNIAcrossUpdates to the list of tests to run in CI

### Related issues (optional)

Fixes: #1057
Fixes: #1092

---------

Co-authored-by: Pulumi Bot <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants