Skip to content

Commit

Permalink
add ignoredNodeIPs to CCM config
Browse files Browse the repository at this point in the history
  • Loading branch information
tuxtof committed Aug 26, 2024
1 parent 0e42e21 commit 8074789
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 13 deletions.
5 changes: 4 additions & 1 deletion templates/ccm/nutanix-ccm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ data:
"enableCustomLabeling": ${CCM_CUSTOM_LABEL=false},
"topologyDiscovery": {
"type": "Prism"
}
},
"ignoredNodeIPs": [
"${CONTROL_PLANE_ENDPOINT_IP}"
]
}
---
# Source: nutanix-cloud-provider/templates/rbac.yaml
Expand Down
5 changes: 4 additions & 1 deletion templates/cluster-template-csi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,10 @@ data:
"enableCustomLabeling": ${CCM_CUSTOM_LABEL=false},
"topologyDiscovery": {
"type": "Prism"
}
},
"ignoredNodeIPs": [
"${CONTROL_PLANE_ENDPOINT_IP}"
]
}
---
# Source: nutanix-cloud-provider/templates/rbac.yaml
Expand Down
5 changes: 4 additions & 1 deletion templates/cluster-template-csi3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,10 @@ data:
"enableCustomLabeling": ${CCM_CUSTOM_LABEL=false},
"topologyDiscovery": {
"type": "Prism"
}
},
"ignoredNodeIPs": [
"${CONTROL_PLANE_ENDPOINT_IP}"
]
}
---
# Source: nutanix-cloud-provider/templates/rbac.yaml
Expand Down
5 changes: 4 additions & 1 deletion templates/cluster-template-topology.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,10 @@ data:
"enableCustomLabeling": ${CCM_CUSTOM_LABEL=false},
"topologyDiscovery": {
"type": "Prism"
}
},
"ignoredNodeIPs": [
"${CONTROL_PLANE_ENDPOINT_IP}"
]
}
---
# Source: nutanix-cloud-provider/templates/rbac.yaml
Expand Down
5 changes: 4 additions & 1 deletion templates/cluster-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,10 @@ data:
"enableCustomLabeling": ${CCM_CUSTOM_LABEL=false},
"topologyDiscovery": {
"type": "Prism"
}
},
"ignoredNodeIPs": [
"${CONTROL_PLANE_ENDPOINT_IP}"
]
}
---
# Source: nutanix-cloud-provider/templates/rbac.yaml
Expand Down
20 changes: 12 additions & 8 deletions test/e2e/data/infrastructure-nutanix/ccm-update.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ data:
"enableCustomLabeling": ${CCM_CUSTOM_LABEL=false},
"topologyDiscovery": {
"type": "Prism"
}
},
"ignoredNodeIPs": [
"${CONTROL_PLANE_ENDPOINT_IP}"
]
}
---
# Source: nutanix-cloud-provider/templates/rbac.yaml
Expand Down Expand Up @@ -223,7 +226,8 @@ metadata:
name: nutanix-ccm-secret
namespace: ${PATCH_NAMESPACE=clusterctl-upgrade}
stringData:
nutanix-ccm-secret.yaml: "apiVersion: v1\nkind: Secret\nmetadata:\n name: nutanix-creds\n
nutanix-ccm-secret.yaml:
"apiVersion: v1\nkind: Secret\nmetadata:\n name: nutanix-creds\n
\ namespace: kube-system\nstringData:\n credentials: |\n [\n {\n \"type\":
\"basic_auth\", \n \"data\": { \n \"prismCentral\":{\n \"username\":
\"${NUTANIX_USER}\",\n \"password\": \"${NUTANIX_PASSWORD}\"\n },\n
Expand All @@ -240,10 +244,10 @@ spec:
matchLabels:
ccm: nutanix
resources:
- kind: ConfigMap
name: nutanix-ccm
- kind: Secret
name: nutanix-ccm-secret
- kind: ConfigMap
name: user-ca-bundle
- kind: ConfigMap
name: nutanix-ccm
- kind: Secret
name: nutanix-ccm-secret
- kind: ConfigMap
name: user-ca-bundle
strategy: ApplyOnce

0 comments on commit 8074789

Please sign in to comment.