Skip to content

Commit 5bf80c3

Browse files
committed
Split NodeSet and Deployment from main dataplane
This allows to then refer to each component separately, providing a nice way to avoid code duplication.
1 parent fa3b8ca commit 5bf80c3

5 files changed

Lines changed: 18 additions & 6 deletions

File tree

components/base/dataplane/kustomization.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
apiVersion: kustomize.config.k8s.io/v1alpha1
33
kind: Component
44

5-
resources:
6-
- dataplane-deployment.yaml
7-
- preprovisioned-nodeset.yaml
5+
components:
6+
- ../nodeset
7+
- ../nodeset-deployment

components/base/dataplane/dataplane-deployment.yaml renamed to components/base/nodeset-deployment/dataplane-deployment.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
apiVersion: dataplane.openstack.org/v1beta1
33
kind: OpenStackDataPlaneDeployment
44
metadata:
5-
name: data-plane-deploy
5+
name: dp-deploy-01
66
namespace: openstack
77
spec:
88
nodeSets:
9-
- preprovisioned-nodeset
9+
- example-nodeset
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
apiVersion: kustomize.config.k8s.io/v1alpha1
3+
kind: Component
4+
5+
resources:
6+
- dataplane-deployment.yaml
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
apiVersion: kustomize.config.k8s.io/v1alpha1
3+
kind: Component
4+
5+
resources:
6+
- nodeset.yaml

components/base/dataplane/preprovisioned-nodeset.yaml renamed to components/base/nodeset/nodeset.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
apiVersion: dataplane.openstack.org/v1beta1
33
kind: OpenStackDataPlaneNodeSet
44
metadata:
5-
name: preprovisioned-nodeset
5+
name: example-nodeset
66
namespace: openstack
77
spec:
88
env:

0 commit comments

Comments
 (0)