Skip to content

Commit

Permalink
Merge pull request #377 from Cray-HPE/CASMPET-6917
Browse files Browse the repository at this point in the history
CASMPET-6917 - csi handoff bss-metadata should ignore Cilium lxc interfaces
  • Loading branch information
rustydb authored Apr 11, 2024
2 parents 5bac47a + 2c59dee commit 228d394
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion cmd/handoff-bss-metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,11 @@ func getMACsFromString(macAddrStrings string) (ncnMacs []string) {
interfaceName == "dummy" ||
interfaceName == "lo" ||
strings.Contains(interfaceName, "usb") ||
strings.Contains(interfaceName, "veth") {
strings.Contains(interfaceName, "veth") ||
strings.Contains(interfaceName, "weave") ||
strings.Contains(interfaceName, "cilium") ||
strings.Contains(interfaceName, "kube") ||
strings.Contains(interfaceName, "lxc") {
continue
}

Expand Down
4 changes: 2 additions & 2 deletions pkg/pit/basecamp.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ type BaseCampGlobals struct {
KubernetesWeaveMTU string `json:"kubernetes-weave-mtu"` // 1376
KubernetesCiliumOpReplicas string `json:"cilium-operator-replicas"` // 1
KubernetesPrimaryCNI string `json:"k8s-primary-cni"` // weave
KubernetesKubeProxyReplace string `json:"cilium-kube-proxy-replacement"` // strict
KubernetesKubeProxyReplace string `json:"cilium-kube-proxy-replacement"` // disabled

NumStorageNodes int `json:"num_storage_nodes"`
}
Expand Down Expand Up @@ -166,7 +166,7 @@ var basecampGlobalString = `{
"kubernetes-weave-mtu": "1376",
"cilium-operator-replicas": "1",
"k8s-primary-cni": "weave",
"cilium-kube-proxy-replacement": "strict",
"cilium-kube-proxy-replacement": "disabled",
"rgw-virtual-ip": "~FIXME~ e.g. 10.252.2.100",
"wipe-ceph-osds": "yes",
"system-name": "~FIXME~",
Expand Down

0 comments on commit 228d394

Please sign in to comment.