Skip to content

Commit

Permalink
ztp: Adds LVM operator source crs for ZTP
Browse files Browse the repository at this point in the history
Signed-off-by: Alberto Losada <alosadag@redhat.com>
  • Loading branch information
alosadagrande committed Nov 30, 2022
1 parent 9509142 commit b667a8f
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 0 deletions.
18 changes: 18 additions & 0 deletions ztp/source-crs/StorageLVMCluster.yaml
@@ -0,0 +1,18 @@
apiVersion: lvm.topolvm.io/v1alpha1
kind: LVMCluster
metadata:
name: odf-lvmcluster
namespace: openshift-storage
annotations:
ran.openshift.io/ztp-deploy-wave: "10"
spec: {}

#example: creating a vg1 volume group leveraging all available disks on the node
# except the installation disk.
# storage:
# deviceClasses:
# - name: vg1
# thinPoolConfig:
# name: thin-pool-1
# sizePercent: 90
# overprovisionRatio: 10
15 changes: 15 additions & 0 deletions ztp/source-crs/StorageLVMOSubscription.yaml
@@ -0,0 +1,15 @@
apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
name: odf-lvm-operator
namespace: openshift-storage
annotations:
ran.openshift.io/ztp-deploy-wave: "2"
spec:
channel: "stable-4.11"
name: odf-lvm-operator
source: redhat-operators
sourceNamespace: openshift-marketplace
installPlanApproval: Manual
status:
state: AtLatestKnown
9 changes: 9 additions & 0 deletions ztp/source-crs/StorageLVMOSubscriptionNS.yaml
@@ -0,0 +1,9 @@
apiVersion: v1
kind: Namespace
metadata:
name: openshift-storage
labels:
openshift.io/cluster-monitoring: "true"
annotations:
workload.openshift.io/allowed: management
ran.openshift.io/ztp-deploy-wave: "2"
10 changes: 10 additions & 0 deletions ztp/source-crs/StorageLVMOSubscriptionOperGroup.yaml
@@ -0,0 +1,10 @@
apiVersion: operators.coreos.com/v1
kind: OperatorGroup
metadata:
name: odf-lvm-operator-operatorgroup
namespace: openshift-storage
annotations:
ran.openshift.io/ztp-deploy-wave: "2"
spec:
targetNamespaces:
- openshift-storage

0 comments on commit b667a8f

Please sign in to comment.