Skip to content

Commit

Permalink
Merge pull request #222 from fmount/improve_kustomize_samples
Browse files Browse the repository at this point in the history
Do not maintain a copy of the base ctlplane CR
  • Loading branch information
openshift-merge-bot[bot] authored Feb 7, 2024
2 parents bb2af51 + bd19bb9 commit e5b367a
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 149 deletions.
19 changes: 16 additions & 3 deletions config/samples/backends/bases/openstack/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,17 @@
resources:
- openstack.yaml
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
- https://raw.githubusercontent.com/openstack-k8s-operators/openstack-operator/main/config/samples/core_v1beta1_openstackcontrolplane_galera_network_isolation.yaml

patches:
- target:
kind: OpenStackControlPlane
name: .*
patch: |-
- op: remove
path: /spec/manila/template/manilaShares
- target:
kind: OpenStackControlPlane
name: .*
patch: |-
- op: replace
path: /metadata/name
value: openstack
146 changes: 0 additions & 146 deletions config/samples/backends/bases/openstack/openstack.yaml

This file was deleted.

2 changes: 2 additions & 0 deletions config/samples/backends/ceph-nfs/backend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ spec:
cephfs_nfs_cluster_id=cephfs
cephfs_protocol_helper_type=NFS
replicas: 1
networkAttachments:
- storage
extraMounts:
- name: v1
region: r1
Expand Down
2 changes: 2 additions & 0 deletions config/samples/backends/cephfs/backend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ spec:
cephfs_volume_mode=0755
cephfs_protocol_helper_type=CEPHFS
replicas: 1
networkAttachments:
- storage
extraMounts:
- name: v1
region: r1
Expand Down
2 changes: 2 additions & 0 deletions config/samples/backends/dhss-netapp/dhss.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ spec:
replicas: 1
manilaShares:
share1:
networkAttachments:
- storage
replicas: 1
customServiceConfig: |
[DEFAULT]
Expand Down
6 changes: 6 additions & 0 deletions config/samples/backends/multibackend/backend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ spec:
containerImage: quay.io/tripleozedcentos9/openstack-manila-scheduler:current-tripleo
manilaShares:
share1:
networkAttachments:
- storage
customServiceConfig: |
[DEFAULT]
enabled_share_backends=cephfsnfs
Expand All @@ -34,6 +36,8 @@ spec:
containerImage: quay.io/tripleozedcentos9/openstack-manila-share:current-tripleo
replicas: 1
share2:
networkAttachments:
- storage
customServiceConfig: |
[DEFAULT]
enabled_share_backends=cephfs
Expand All @@ -51,6 +55,8 @@ spec:
containerImage: quay.io/tripleozedcentos9/openstack-manila-share:current-tripleo
replicas: 1
share3:
networkAttachments:
- storage
customServiceConfig: |
[DEFAULT]
debug = true
Expand Down
2 changes: 2 additions & 0 deletions config/samples/backends/netapp/backend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ spec:
replicas: 1
manilaShares:
share1:
networkAttachments:
- storage
customServiceConfig: |
[DEFAULT]
debug = true
Expand Down

0 comments on commit e5b367a

Please sign in to comment.