Skip to content

Commit 0a607b4

Browse files
committed
Improve Swift dataplane sample config readability
The Swift dataplane sample uses a slightly different intendation and variable name than the actual CR. This was still valid because "oc kustomize" fixed this, eg. when using install_yamls. However, if using this as a reference to configure your own CR this is misleading. Fixing the variable name and intendation should improve readability. Output of "oc kustomize" is exactly the same as before. Signed-off-by: Christian Schwede <[email protected]>
1 parent 476792c commit 0a607b4

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

config/samples/dataplane/swift/kustomization.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ replacements:
1414
- source:
1515
kind: DataPlaneConfig
1616
name: edpm-swift-values
17-
fieldPath: data.nodeset.nodetemplate.ansible.vars.edpm_swift_disks
17+
fieldPath: data.nodeset.nodetemplate.ansible.ansibleVars.edpm_swift_disks
1818
targets:
1919
- select:
2020
kind: OpenStackDataPlaneNodeSet

config/samples/dataplane/swift/values.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ data:
1212
- storage
1313
nodetemplate:
1414
ansible:
15-
vars:
15+
ansibleVars:
1616
# Swift disks defined here apply to all nodes. Node-specific disks
1717
# might be defined in the nodes: section below
1818
#
@@ -22,11 +22,11 @@ data:
2222
# zone are optional and might be used to enforce distribution of
2323
# replicas
2424
edpm_swift_disks:
25-
- device: /dev/vdb
26-
path: /srv/node/vdb
27-
weight: 4000
28-
region: 0
29-
zone: 0
25+
- device: /dev/vdb
26+
path: /srv/node/vdb
27+
weight: 4000
28+
region: 0
29+
zone: 0
3030
nodes:
3131
edpm-swift-0:
3232
ansible:
@@ -36,9 +36,9 @@ data:
3636
# node with a different disk. This node will use only vdc. It would
3737
# use vdb from parent section if not defined
3838
edpm_swift_disks:
39-
- device: /dev/vdc
40-
path: /srv/node/vdc
41-
weight: 1000
39+
- device: /dev/vdc
40+
path: /srv/node/vdc
41+
weight: 1000
4242
hostName: edpm-swift-0
4343
networks:
4444
- defaultRoute: true

0 commit comments

Comments
 (0)