Skip to content

Commit

Permalink
ztp: add the Operator source CR for each subscription
Browse files Browse the repository at this point in the history
The new operator resource added is used for determining
the successful operator install/upgrade.

Signed-off-by: Angie Wang <[email protected]>
  • Loading branch information
Missxiaoguo authored and SchSeba committed May 1, 2022
1 parent 8690796 commit b9b9d85
Show file tree
Hide file tree
Showing 8 changed files with 192 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,16 @@ spec:
policyName: "subscriptions-policy"
- fileName: SriovSubscriptionOperGroup.yaml
policyName: "subscriptions-policy"
- fileName: SriovOperatorStatus.yaml
policyName: "subscriptions-policy"
- fileName: PtpSubscription.yaml
policyName: "subscriptions-policy"
- fileName: PtpSubscriptionNS.yaml
policyName: "subscriptions-policy"
- fileName: PtpSubscriptionOperGroup.yaml
policyName: "subscriptions-policy"
- fileName: PtpOperatorStatus.yaml
policyName: "subscriptions-policy"
- fileName: PaoSubscription.yaml
policyName: "subscriptions-policy"
spec:
Expand All @@ -31,18 +35,24 @@ spec:
policyName: "subscriptions-policy"
- fileName: PaoSubscriptionOperGroup.yaml
policyName: "subscriptions-policy"
- fileName: PaoOperatorStatus.yaml
policyName: "subscriptions-policy"
- fileName: ClusterLogNS.yaml
policyName: "subscriptions-policy"
- fileName: ClusterLogOperGroup.yaml
policyName: "subscriptions-policy"
- fileName: ClusterLogSubscription.yaml
policyName: "subscriptions-policy"
- fileName: ClusterLogOperatorStatus.yaml
policyName: "subscriptions-policy"
- fileName: StorageNS.yaml
policyName: "subscriptions-policy"
- fileName: StorageOperGroup.yaml
policyName: "subscriptions-policy"
- fileName: StorageSubscription.yaml
policyName: "subscriptions-policy"
- fileName: StorageOperatorStatus.yaml
policyName: "subscriptions-policy"
- fileName: ReduceMonitoringFootprint.yaml
policyName: "config-policy"
#
Expand Down
26 changes: 26 additions & 0 deletions ztp/source-crs/AcceleratorsOperatorStatus.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# This CR verifies the installation/upgrade of the Sriov Fec Operator
apiVersion: operators.coreos.com/v1
kind: Operator
metadata:
name: sriov-fec.vran-acceleration-operators
annotations:
ran.openshift.io/ztp-deploy-wave: "2"
status:
components:
refs:
- kind: Subscription
namespace: vran-acceleration-operators
conditions:
- type: CatalogSourcesUnhealthy
status: "False"
- kind: InstallPlan
namespace: vran-acceleration-operators
conditions:
- type: Installed
status: "True"
- kind: ClusterServiceVersion
namespace: vran-acceleration-operators
conditions:
- type: Succeeded
status: "True"
reason: InstallSucceeded
26 changes: 26 additions & 0 deletions ztp/source-crs/AmqOperatorStatus.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# This CR verifies the installation/upgrade of the Amq Operator
apiVersion: operators.coreos.com/v1
kind: Operator
metadata:
name: amq7-interconnect-operator.amq-router
annotations:
ran.openshift.io/ztp-deploy-wave: "2"
status:
components:
refs:
- kind: Subscription
namespace: amq-router
conditions:
- type: CatalogSourcesUnhealthy
status: "False"
- kind: InstallPlan
namespace: amq-router
conditions:
- type: Installed
status: "True"
- kind: ClusterServiceVersion
namespace: amq-router
conditions:
- type: Succeeded
status: "True"
reason: InstallSucceeded
26 changes: 26 additions & 0 deletions ztp/source-crs/ClusterLogOperatorStatus.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# This CR verifies the installation/upgrade of the Cluster Logging Operator
apiVersion: operators.coreos.com/v1
kind: Operator
metadata:
name: cluster-logging.openshift-logging
annotations:
ran.openshift.io/ztp-deploy-wave: "2"
status:
components:
refs:
- kind: Subscription
namespace: openshift-logging
conditions:
- type: CatalogSourcesUnhealthy
status: "False"
- kind: InstallPlan
namespace: openshift-logging
conditions:
- type: Installed
status: "True"
- kind: ClusterServiceVersion
namespace: openshift-logging
conditions:
- type: Succeeded
status: "True"
reason: InstallSucceeded
26 changes: 26 additions & 0 deletions ztp/source-crs/PaoOperatorStatus.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# This CR verifies the installation/upgrade of the Performance Addon Operator
apiVersion: operators.coreos.com/v1
kind: Operator
metadata:
name: performance-addon-operator.openshift-performance-addon-operator
annotations:
ran.openshift.io/ztp-deploy-wave: "2"
status:
components:
refs:
- kind: Subscription
namespace: openshift-performance-addon-operator
conditions:
- type: CatalogSourcesUnhealthy
status: "False"
- kind: InstallPlan
namespace: openshift-performance-addon-operator
conditions:
- type: Installed
status: "True"
- kind: ClusterServiceVersion
namespace: openshift-performance-addon-operator
conditions:
- type: Succeeded
status: "True"
reason: InstallSucceeded
26 changes: 26 additions & 0 deletions ztp/source-crs/PtpOperatorStatus.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# This CR verifies the installation/upgrade of the Ptp Operator
apiVersion: operators.coreos.com/v1
kind: Operator
metadata:
name: ptp-operator.openshift-ptp
annotations:
ran.openshift.io/ztp-deploy-wave: "2"
status:
components:
refs:
- kind: Subscription
namespace: openshift-ptp
conditions:
- type: CatalogSourcesUnhealthy
status: "False"
- kind: InstallPlan
namespace: openshift-ptp
conditions:
- type: Installed
status: "True"
- kind: ClusterServiceVersion
namespace: openshift-ptp
conditions:
- type: Succeeded
status: "True"
reason: InstallSucceeded
26 changes: 26 additions & 0 deletions ztp/source-crs/SriovOperatorStatus.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# This CR verifies the installation/upgrade of the Sriov Network Operator
apiVersion: operators.coreos.com/v1
kind: Operator
metadata:
name: sriov-network-operator.openshift-sriov-network-operator
annotations:
ran.openshift.io/ztp-deploy-wave: "2"
status:
components:
refs:
- kind: Subscription
namespace: openshift-sriov-network-operator
conditions:
- type: CatalogSourcesUnhealthy
status: "False"
- kind: InstallPlan
namespace: openshift-sriov-network-operator
conditions:
- type: Installed
status: "True"
- kind: ClusterServiceVersion
namespace: openshift-sriov-network-operator
conditions:
- type: Succeeded
status: "True"
reason: InstallSucceeded
26 changes: 26 additions & 0 deletions ztp/source-crs/StorageOperatorStatus.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# This CR verifies the installation/upgrade of the Local Storage Operator
apiVersion: operators.coreos.com/v1
kind: Operator
metadata:
name: local-storage-operator.openshift-local-storage
annotations:
ran.openshift.io/ztp-deploy-wave: "2"
status:
components:
refs:
- kind: Subscription
namespace: openshift-local-storage
conditions:
- type: CatalogSourcesUnhealthy
status: "False"
- kind: InstallPlan
namespace: openshift-local-storage
conditions:
- type: Installed
status: "True"
- kind: ClusterServiceVersion
namespace: openshift-local-storage
conditions:
- type: Succeeded
status: "True"
reason: InstallSucceeded

0 comments on commit b9b9d85

Please sign in to comment.