Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ztp: OCPBUGS-4329: Adds LVM operator source crs for ZTP #1332

Merged
merged 1 commit into from Nov 30, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a non-versioned "stable" channel? Other operators are not pinned to a specific channel

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Currently only stable-4.11 and stable-4.10 are available for 4.11 and stable-4.11 for OCP 4.12:

oc-mirror list operators --catalog=registry.redhat.io/redhat/redhat-operator-index:v4.11 --package=odf-lvm-operator
NAME              DISPLAY NAME      DEFAULT CHANNEL
odf-lvm-operator  ODF LVM Operator  stable-4.11

PACKAGE           CHANNEL      HEAD
odf-lvm-operator  stable-4.10  odf-lvm-operator.v4.10.8
odf-lvm-operator  stable-4.11  odf-lvm-operator.v4.11.3

# oc-mirror list operators --catalog=registry.redhat.io/redhat/redhat-operator-index:v4.12 --package=odf-lvm-operator
NAME              DISPLAY NAME      DEFAULT CHANNEL
odf-lvm-operator  ODF LVM Operator  stable-4.11

PACKAGE           CHANNEL      HEAD
odf-lvm-operator  stable-4.11  odf-lvm-operator.v4.11.3

name: odf-lvm-operator
source: redhat-operators
sourceNamespace: openshift-marketplace
installPlanApproval: Manual
status:
state: AtLatestKnown
8 changes: 8 additions & 0 deletions ztp/source-crs/StorageLVMOSubscriptionNS.yaml
@@ -0,0 +1,8 @@
apiVersion: v1
kind: Namespace
metadata:
name: openshift-storage
labels:
openshift.io/cluster-monitoring: "true"
annotations:
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