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

Add a values.yaml for OpenStackDataPlaneDeployment #158

Merged
merged 1 commit into from
Apr 3, 2024
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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