This repository was archived by the owner on Feb 6, 2025. It is now read-only.
fixed output to be triggered also by different addon.Version bsc#1167320 #1018
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.
Why is this PR needed?
'skuba addon upgrade plan' doesn't ouput anything if there is a diff just in addon.Version;
it seems to be triggered only by addon.ManifestVersion;
BEFORE:
--> When I change in configmap the value of addon.Version:
*configmaps: skuba-config
--> then I run skuba addon upgrade plan
--> As you can see, no plan for DEX is outputed. However, if I change the addon.ManifestVersion, it will trigger output, BUT ONLY for addon.Version.
--> Now, I will change also the manifest for dex in skuba-config configmap:
*configmaps: skuba-config
--> Then I run skuba addon upgrade plan
--> Now, I will run again the skuba addon upgrade plan, after I correct the dex.Version in the skuba-config configmap (dex.Version = 2.16.0):
--> As you can see, it prints whether only the version or the manifest
=======================
AFTER:
--> for these values of dex.ManifestVersion and .Version in skuba-config configmap:
--> it will report both, the manifest version AND the version:
-> NOW, we fix the manifest back to see if 'skuba upgrade plan' shows anything only if addon.Version is outdated:
(in skuba-config configmap)
-> we run skuba addon upgrade plan
Fixes #
https://bugzilla.suse.com/show_bug.cgi?id=1167320
What does this PR do?
it fixes the output of 'skuba addon upgrade plan' in case there is only an addon version to upgrade. Previously it was triggered only by the addon manifestversion.
Anything else a reviewer needs to know?
Testcase Implemantation here:
https://github.com/atighineanu/bdd-poc/blob/master/features/skuba_upgrade/skuba_upgrade-bsc%231167320.feature
Info for QA
How to reproduce:
BEFORE:
expect:
Now, change also the ManifestVersion of the same addon you modified the Version.
expect:
AFTER:
expect:
Now, change also the ManifestVersion of the same addon you modified the Version.
expect:
Related info
Info that can be relevant for QA:
Status BEFORE applying the patch
How can we reproduce the issue? How can we see this issue? Please provide the steps and the prove
this issue is not fixed.
Status AFTER applying the patch
How can we validate this issue is fixed? Please provide the steps and the prove this issue is fixed.
Docs
If docs need to be updated, please add a link to a PR to https://github.com/SUSE/doc-caasp.
At the time of creating the issue, this PR can be work in progress (set its title to [WIP]),
but the documentation needs to be finalized before the PR can be merged.
Merge restrictions
(Please do not edit this)
We are in v4-maintenance phase, so we will restrict what can be merged to prevent unexpected surprises: