Skip to content

[minor] Add OLM support#38

Merged
durera merged 3 commits intostablefrom
olm
Nov 24, 2024
Merged

[minor] Add OLM support#38
durera merged 3 commits intostablefrom
olm

Conversation

@durera
Copy link
Copy Markdown
Contributor

@durera durera commented Nov 24, 2024

This update adds olm.applySubscription() and olm.deleteSubscription(), which simplify working with OLM. This is a conversion of ibm/mas_devops/common_tasks/create_subscription.yml from ansible-devops.

from mas.devops import olm

subscription = olm.applySubscription(dynClient, namespace, "ibm-sls", packageChannel="3.x")

# When we install the ibm-sls subscription OLM will automatically create the ibm-truststore-mgr
# subscription, but when we delete the subscription, OLM will not automatically remove the latter
olm.deleteSubscription(dynClient, namespace, "ibm-sls")
olm.deleteSubscription(dynClient, namespace, "ibm-truststore-mgr")

@durera durera merged commit 2587c15 into stable Nov 24, 2024
@durera durera deleted the olm branch November 24, 2024 11:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant