Fix upgrade issue from 1.4.2 to 1.4.3-rc1 #2387
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Related issue
Fixes #2384.
Milestone of this PR
/milestone 1.4.3
What type of PR is this
/kind bug
Proposed Changes
When we upgraded (Cluster)PolicyReport and (Cluster)ReportChangeRequest CRDs to v1alpha2, there wasn't a conversion webhook to update
status
toresult
for each rcr / crcr, thus Kyverno panicked when it tried to update summary of each report.This PR adds a label
app.kubernetes.io/version
indicating which version of Kyverno is managing report change request and uses it to list existing RCRs / CRCRs. All old ones are removed automatically.This PR also changes how we build the image tag from git tags. This is because we add another tag
helm-chart-v*
to trigger the Helm release.Proof Manifests
There is no restart of Kyverno Pod when upgrading from 1.4.2 to this commit:
Checklist
Further Comments