tolerate multi entries for same subscription #906
Closed
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.
This is an enhancement for both upgrade and uninstallation experience
Context
We will append annotation into subscription to indicate the operator version and the OperandRequest requested. Following example is an OperandRequest named
example-serviceincloudpak-all-in-onenamespace, requestingibm-zen-operatoratv3.23.channel.However, it does not tolerate the case where there are two entires in the same OperandRequest, asking for the same operator. Here is an example in OperandRequest
ibm-zen-operatoratv3.23channel.ibm-platformui-operatoratv4.0channel.packageName: ibm-zen-operator.In order to support this, we update the annotation to following format. The annotation for
OperandRequestin subscription will have operator name as suffix.<operandrequest-namespace>.<operandrequest-name>.<operator-name>/request: channelHow to reproduce the issue
futurebuild installed in the clusterUninstallation isse
ibm-platformui-operatorv4.0versionibm-zen-operatorto OperandRequestibm-zen-operatorfrom OperandRequestUpgrade issue
supportStatus: maintained" in OperandRegistry foribm-zen-operator`ibm-zen-operatorv3.23versionibm-zen-operatortoibm-platformui-operatoribm-zen-operatoris deleted. We need to restart the ODLM pod to bring it back.How to verify the fix
futurebuild installed in the clusterquay.io/opencloudio/odlm:36ab76ec-dirtyUninstallation isse
ibm-platformui-operatorv4.0versionibm-zen-operatorto OperandRequestibm-zen-operatorfrom OperandRequestUpgrade issue
supportStatus: maintained" in OperandRegistry foribm-zen-operator`ibm-zen-operatorv3.23versionibm-zen-operatortoibm-platformui-operatoribm-zen-operatorwill NEVER be deleted