Skip to content

Commit

Permalink
changing ocs to odf for 49+
Browse files Browse the repository at this point in the history
  • Loading branch information
hgeaydem committed Mar 7, 2022
1 parent 57c97ff commit 3fa894f
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
29 changes: 29 additions & 0 deletions files/odf-operator.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
apiVersion: v1
kind: Namespace
metadata:
name: openshift-storage
spec: {}
---
apiVersion: operators.coreos.com/v1
kind: OperatorGroup
metadata:
name: openshift-storage
namespace: openshift-storage
spec:
targetNamespaces:
- openshift-storage
---
apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
name: odf-operator
namespace: openshift-storage
labels:
operators.coreos.com/ocs-operator.openshift-storage: ''
spec:
channel: "stable-4.9"
installPlanApproval: Automatic
name: odf-operator
source: redhat-operators
sourceNamespace: openshift-marketplace
11 changes: 11 additions & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,17 @@
retries: 20
delay: 30
until: ocs_operator_success is not failed
when: ocp4_aio_subversion is version('4.9', operator='lt', strict=True)

- name: Apply odf-operator configuration
k8s:
state: present
definition: "{{ lookup('file', 'odf-operator.yaml') }}"
register: ocs_operator_success
retries: 20
delay: 30
until: ocs_operator_success is not failed
when: ocp4_aio_subversion is version('4.9', operator='ge', strict=True)

- name: Apply storage-cluster configuration
k8s:
Expand Down

0 comments on commit 3fa894f

Please sign in to comment.