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

Test for clean redeploys with kapp #208

Merged
merged 2 commits into from
Feb 9, 2022

Conversation

scothis
Copy link
Contributor

@scothis scothis commented Feb 4, 2022

A kapp deploy will attempt to make the resources on the api server match
the resources defined locally. Because the manager will modify the
resources we create at runtime, we should respect those mutations and
avoid overwriting them. This is typically done with rebase rules in the
kapp config resource.

During the acceptance tests, we set the kapp-controller sync period for
the package to 1 minute. If we see multiple changeset, the config is not
stable.

Signed-off-by: Scott Andrews andrewssc@vmware.com

@vmwclabot vmwclabot added the cla-not-required CLA not required label Feb 4, 2022
@codecov
Copy link

codecov bot commented Feb 4, 2022

Codecov Report

Merging #208 (26649a6) into main (b4584a8) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #208   +/-   ##
=======================================
  Coverage   94.34%   94.34%           
=======================================
  Files          16       16           
  Lines         637      637           
=======================================
  Hits          601      601           
  Misses         25       25           
  Partials       11       11           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b4584a8...26649a6. Read the comment docs.

@scothis scothis marked this pull request as draft February 4, 2022 16:10
@scothis scothis force-pushed the kapp-clean-deploy branch 3 times, most recently from 0241248 to ea6137c Compare February 4, 2022 17:00
@scothis scothis marked this pull request as ready for review February 4, 2022 17:14
@scothis
Copy link
Contributor Author

scothis commented Feb 4, 2022

I don't know why the PR actions are not running, the push actions ran here

A kapp deploy will attempt to make the resources on the api server match
the resources defined locally. Because the manager will modify the
resources we create at runtime, we should respect those mutations and
avoid overwriting them. This is typically done with rebase rules in the
kapp config resource.

During the acceptance tests, we set the kapp-controller sync period for
the package to 1 minute. If we see multiple changeset, the config is not
stable.

Signed-off-by: Scott Andrews <andrewssc@vmware.com>
@scothis scothis marked this pull request as draft February 4, 2022 17:46
Signed-off-by: Scott Andrews <andrewssc@vmware.com>
@rashedkvm rashedkvm marked this pull request as ready for review February 9, 2022 22:33
@rashedkvm rashedkvm merged commit ebb2924 into vmware-tanzu:main Feb 9, 2022
@scothis scothis deleted the kapp-clean-deploy branch February 10, 2022 02:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-not-required CLA not required
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants