Skip to content

Commit

Permalink
feat: template out MCG
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Butler <[email protected]>
  • Loading branch information
butler54 committed May 16, 2024
1 parent d0ab822 commit 088fe4e
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 16 deletions.
12 changes: 7 additions & 5 deletions charts/all/mcg/templates/backing-store.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@

apiVersion: noobaa.io/v1alpha1
kind: BackingStore
metadata:
name: local-backingstore
name: mcg-backingstore
namespace: openshift-storage
finalizers:
- noobaa.io/finalizer
labels:
app: noobaa
spec:
{{ if .Values.global.objectStorage.pvcStorage }}
pvPool:
numVolumes: 3
numVolumes: {{ .Values.global.objectStorage.volumes }}
resources:
requests:
storage: 50Gi
secret: {}
storageClass: gp3
storage: {{ .Values.global.objectStorage.storagePool }}
storageClass: {{ .Values.global.objectStorage.backingStorageClass }}
type: pv-pool
{{ end }}
2 changes: 1 addition & 1 deletion charts/all/mcg/templates/bucket-class.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ spec:
placementPolicy:
tiers:
- backingStores:
- local-backingstore
- mcg-backingstore
placement: Spread
4 changes: 3 additions & 1 deletion charts/all/mcg/templates/storage-system.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{ if not .Values.global.objectStorage.existingODF }}
apiVersion: odf.openshift.io/v1alpha1
kind: StorageSystem
metadata:
Expand All @@ -6,4 +7,5 @@ metadata:
spec:
kind: storagecluster.ocs.openshift.io/v1
name: ocs-storagecluster
namespace: openshift-storage
namespace: openshift-storage
{{ end }}
10 changes: 10 additions & 0 deletions charts/all/mcg/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
global:
objectStorage:
# Whether or not to use PVC storage
pvcStorage: true
volumes: 3
storagePool: 50Gi
backingStorageClass: "ocs-external-storagecluster-ceph-rbd"
# IF ODF exists we don't need to deploy an storage system
existingODF: true
odfStorageSystem: "ocs-external-storagecluster-storagesystem"
18 changes: 10 additions & 8 deletions values-global.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,18 @@ global:
syncPolicy: Automatic
installPlanApproval: Automatic

objectStorage:
# Whether or not to use PVC storage
pvcStorage: true
replicas: 3
storagePool: 50Gi
backingStorageClass: "ocs-external-storagecluster-ceph-rbd"
# IF ODF exists we don't need to deploy an storage system
existingODF: true
odfStorageSystem: "ocs-external-storagecluster-storagesystem"

main:
clusterGroupName: hub
multiSourceConfig:
enabled: true

objectStorage:
replicas: 3
storagePool: 50Gi

odfStorageClass: ""
backingStorageClass: ""


3 changes: 2 additions & 1 deletion values-hub.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ clusterGroup:
subscriptions:
rhoai:
name: rhods-operator
channel: stable
# Fast is required for 2.9.0
channel: fast
namespace: openshift-operators

openshift-pipelines:
Expand Down

0 comments on commit 088fe4e

Please sign in to comment.