Skip to content

Commit

Permalink
back to fixed versions
Browse files Browse the repository at this point in the history
  • Loading branch information
hgeaydem committed Oct 20, 2021
1 parent 9e07299 commit e220d89
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 4 deletions.
27 changes: 27 additions & 0 deletions files/local-storage-operator.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
apiVersion: v1
kind: Namespace
metadata:
name: openshift-local-storage
spec: {}
---
apiVersion: operators.coreos.com/v1
kind: OperatorGroup
metadata:
name: openshift-local-storage
namespace: openshift-local-storage
spec:
targetNamespaces:
- openshift-local-storage
---
apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
name: local-storage-operator
namespace: openshift-local-storage
spec:
channel: stable
installPlanApproval: Automatic
name: local-storage-operator
source: redhat-operators
sourceNamespace: openshift-marketplace
29 changes: 29 additions & 0 deletions files/ocs-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: ocs-operator
namespace: openshift-storage
labels:
operators.coreos.com/ocs-operator.openshift-storage: ''
spec:
channel: "stable-4.8"
installPlanApproval: Automatic
name: ocs-operator
source: redhat-operators
sourceNamespace: openshift-marketplace
4 changes: 2 additions & 2 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
- name: Apply local-storage-operator configuration
k8s:
state: present
definition: "{{ lookup('template', 'local-storage-operator.yaml.j2') }}"
definition: "{{ lookup('file', 'local-storage-operator.yaml') }}"
register: local_storage_success
retries: 20
delay: 30
Expand All @@ -56,7 +56,7 @@
- name: Apply ocs-operator configuration
k8s:
state: present
definition: "{{ lookup('template', 'ocs-operator.yaml.j2') }}"
definition: "{{ lookup('file', 'ocs-operator.yaml') }}"
register: ocs_operator_success
retries: 20
delay: 30
Expand Down
2 changes: 1 addition & 1 deletion templates/local-storage-operator.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ metadata:
name: local-storage-operator
namespace: openshift-local-storage
spec:
channel: {{ ocp4_aio_subversion }}
channel: stable
installPlanApproval: Automatic
name: local-storage-operator
source: redhat-operators
Expand Down
2 changes: 1 addition & 1 deletion templates/ocs-operator.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ metadata:
labels:
operators.coreos.com/ocs-operator.openshift-storage: ''
spec:
channel: "stable-{{ ocp4_aio_subversion }}"
channel: "stable-4.8"
installPlanApproval: Automatic
name: ocs-operator
source: redhat-operators
Expand Down

0 comments on commit e220d89

Please sign in to comment.