Skip to content

Commit

Permalink
Merge pull request #158 from fao89/deployment_values
Browse files Browse the repository at this point in the history
Add a values.yaml for OpenStackDataPlaneDeployment
  • Loading branch information
fao89 authored Apr 3, 2024
2 parents 2733a76 + bc35fd1 commit fa47a11
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 15 deletions.
2 changes: 2 additions & 0 deletions examples/va/hci/edpm-pre-ceph/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ metadata:
annotations:
config.kubernetes.io/local-config: "true"
data:
deployment:
name: edpm-deployment-pre-ceph
ssh_keys:
# Authorized keys that will have access to the dataplane computes via SSH
authorized: CHANGEME
Expand Down
2 changes: 2 additions & 0 deletions examples/va/hci/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ metadata:
annotations:
config.kubernetes.io/local-config: "true"
data:
deployment:
name: edpm-deployment-post-ceph
nodeset:
services:
- ceph-client
Expand Down
18 changes: 11 additions & 7 deletions va/hci/edpm-post-ceph/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,6 @@ resources:
- nova_ceph.yaml

patches:
- target:
kind: OpenStackDataPlaneDeployment
name: .*
patch: |-
- op: replace
path: /metadata/name
value: edpm-deployment-post-ceph
- target:
kind: OpenStackDataPlaneNodeSet
name: .*
Expand Down Expand Up @@ -180,3 +173,14 @@ replacements:
- spec.services
options:
create: true
- source:
kind: ConfigMap
name: edpm-values-post-ceph
fieldPath: data.deployment.name
targets:
- select:
kind: OpenStackDataPlaneDeployment
fieldPaths:
- metadata.name
options:
create: true
20 changes: 12 additions & 8 deletions va/hci/edpm-pre-ceph/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,15 @@ transformers:
components:
- ../../../lib/dataplane

patches:
- target:
kind: OpenStackDataPlaneDeployment
name: .*
patch: |-
- op: replace
path: /metadata/name
value: edpm-deployment-pre-ceph
replacements:
- source:
kind: ConfigMap
name: edpm-values
fieldPath: data.deployment.name
targets:
- select:
kind: OpenStackDataPlaneDeployment
fieldPaths:
- metadata.name
options:
create: true

0 comments on commit fa47a11

Please sign in to comment.