Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Verify container changes #1094

Merged
merged 4 commits into from
May 24, 2018
Merged

Conversation

squaremo
Copy link
Member

This PR adds a verification step to the release process. The verification step checks that exactly the changes that were intended were made to the files in the git repo clone. This guards against the file update code doing something silly, like changing every container in a deployment, and this being committed.

Fixes #1081.

for those limitations.

If your files appear to meet the requirements, it may simply be a bug
in Flux. PLease report it at

This comment was marked as abuse.

This comment was marked as abuse.

updates, results, err := changes.CalculateRelease(rc, logger)
if err != nil {
return nil, err
}

err = ApplyChanges(rc, updates, logger)
if err == nil {

This comment was marked as abuse.


beforeWorkload, ok := beforeRes.(resource.Workload)
if !ok {
continue

This comment was marked as abuse.

@squaremo
Copy link
Member Author

@aaron7 PTAL, and I will autosquash if you're happy.

@aaron7
Copy link
Contributor

aaron7 commented May 24, 2018

@aaron7 PTAL, and I will autosquash if you're happy.

lgtm

This commit fills in the detail of verifying releases, by comparing
the model before with the model after to make sure only the intended
changes have been made.
The minimal test that if the release doesn't work (in this case,
nothing is updated), verification will fail.
@squaremo squaremo force-pushed the issue/1081-verify-container-changes branch from b38d988 to ea14a1f Compare May 24, 2018 16:05
@squaremo squaremo merged commit 40aef1e into master May 24, 2018
@squaremo squaremo deleted the issue/1081-verify-container-changes branch May 24, 2018 16:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants