Skip to content

Commit

Permalink
Distinguish between 'name\ and 'node_name' when configure node-3 nncp
Browse files Browse the repository at this point in the history
  • Loading branch information
Julia Marciano authored and gmarcian committed Oct 29, 2024
1 parent a6bf856 commit 918e4d2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion automation/net-env/uni04delta-ipv6.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ instances:
trunk_parent: ctlplane
vlan_id: 22
ocp-3:
hostname: worker-2
hostname: worker-0
name: ocp-3
networks:
ctlplane:
Expand Down
10 changes: 10 additions & 0 deletions examples/dt/uni04delta-ipv6/control-plane/nncp/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,16 @@ replacements:
name: node-3
fieldPaths:
- metadata.name

- source:
kind: ConfigMap
name: network-values
fieldPath: data.node_3.node_name
targets:
- select:
kind: NodeNetworkConfigurationPolicy
name: node-3
fieldPaths:
- spec.nodeSelector.[kubernetes.io/hostname]

- source:
Expand Down

0 comments on commit 918e4d2

Please sign in to comment.