-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[openshift_setup] Add support for overriding dependent operators Cata…
…logSource
- Loading branch information
1 parent
475d689
commit c281822
Showing
3 changed files
with
70 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
58 changes: 58 additions & 0 deletions
58
roles/openshift_setup/tasks/patch_dependent_operators_source.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
--- | ||
# HACK: (Lewis) This taskfile is used to test pre-release OCP versions | ||
# by intalling the previous OCP release's catalog source for the | ||
# dependent operators to use and overriding there subscriptions | ||
|
||
- name: Write catalog source | ||
kubernetes.core.k8s: | ||
kubeconfig: "{{ cifmw_openshift_kubeconfig }}" | ||
state: present | ||
definition: | ||
apiVersion: operators.coreos.com/v1alpha1 | ||
kind: CatalogSource | ||
metadata: | ||
name: "{{ cifmw_openshift_setup_operator_override_catalog_name }}" | ||
namespace: "{{ cifmw_openshift_setup_operator_override_catalog_namespace }}" | ||
spec: | ||
displayName: "{{ cifmw_openshift_setup_operator_override_catalog_name }}" | ||
image: "{{ cifmw_openshift_setup_operator_override_catalog_image }}" | ||
publisher: CI-Framework | ||
sourceType: grpc | ||
updateStrategy: | ||
registryPoll: | ||
interval: 10m | ||
|
||
- name: Patch metallb operator subscription to use custom CatalogSource | ||
kubernetes.core.k8s: | ||
state: patched | ||
kind: Subscription | ||
api_version: operators.coreos.com/v1alpha1 | ||
kubeconfig: "{{ cifmw_openshift_kubeconfig }}" | ||
name: metallb-operator-sub | ||
namespace: metallb-system | ||
definition: | ||
spec: | ||
source: "{{ cifmw_openshift_setup_operator_override_catalog_name }}" | ||
wait: true | ||
wait_timeout: 300 | ||
wait_condition: | ||
type: CatalogSourcesUnhealthy | ||
status: "False" | ||
|
||
- name: Patch nmstate operator subscription to use custom CatalogSource | ||
kubernetes.core.k8s: | ||
state: patched | ||
kind: Subscription | ||
api_version: operators.coreos.com/v1alpha1 | ||
kubeconfig: "{{ cifmw_openshift_kubeconfig }}" | ||
name: kubernetes-nmstate-operator | ||
namespace: openshift-nmstate | ||
definition: | ||
spec: | ||
source: "{{ cifmw_openshift_setup_operator_override_catalog_name }}" | ||
wait_sleep: 10 | ||
wait: true | ||
wait_timeout: 300 | ||
wait_condition: | ||
type: CatalogSourcesUnhealthy | ||
status: "False" |