Skip to content

Commit 0cf7aec

Browse files
committed
whereabouts-config is a reserved name for user interaction.
In changing to using the flatfile configuration for usage as a configmap, we clobbered the name that we use for allowing overriding the reconciler schedule. See also: https://docs.redhat.com/en/documentation/openshift_container_platform/4.18/html/networking/multiple-networks#nw-multus-configuring-whereabouts-ip-reconciler-schedule_configuring-additional-network
1 parent 72c857d commit 0cf7aec

File tree

1 file changed

+13
-14
lines changed

1 file changed

+13
-14
lines changed

bindata/network/multus/multus.yaml

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ data:
109109
apiVersion: v1
110110
kind: ConfigMap
111111
metadata:
112-
name: whereabouts-config
112+
name: whereabouts-flatfile-config
113113
namespace: openshift-multus
114114
data:
115115
whereabouts.conf: |
@@ -119,8 +119,7 @@ data:
119119
"kubeconfig": "/etc/kubernetes/cni/net.d/whereabouts.d/whereabouts.kubeconfig"
120120
},
121121
"reconciler_cron_expression": "30 4 * * *",
122-
"log_level": "debug",
123-
"log_file": "/tmp/whereabouts.log",
122+
"log_level": "verbose",
124123
"configuration_path": "/etc/kubernetes/cni/net.d/whereabouts.d"
125124
}
126125
---
@@ -714,7 +713,7 @@ spec:
714713
name: cnibin
715714
- name: system-cni-dir
716715
mountPath: /host/etc/cni/net.d
717-
- name: whereabouts-configmap
716+
- name: whereabouts-flatfile-configmap
718717
mountPath: /etc/whereabouts/config
719718
env:
720719
- name: NODENAME
@@ -775,9 +774,9 @@ spec:
775774
configMap:
776775
name: {{.CniSysctlAllowlist}}
777776
defaultMode: 0744
778-
- name: whereabouts-configmap
777+
- name: whereabouts-flatfile-configmap
779778
configMap:
780-
name: whereabouts-config
779+
name: whereabouts-flatfile-config
781780
{{if .RenderWhereaboutsAuxillary}}
782781
---
783782
apiVersion: apps/v1
@@ -904,7 +903,7 @@ spec:
904903
- mountPath: /host/etc/cni/net.d
905904
name: cni-net-dir
906905
- mountPath: /host/etc/cni/net.d/whereabouts.d/whereabouts.conf
907-
name: whereabouts-configmap
906+
name: whereabouts-flatfile-configmap
908907
subPath: whereabouts.conf
909908
preemptionPolicy: PreemptLowerPriority
910909
priorityClassName: "system-node-critical"
@@ -920,9 +919,9 @@ spec:
920919
path: {{ .SystemCNIConfDir }}
921920
type: Directory
922921
name: cni-net-dir
923-
- name: whereabouts-configmap
922+
- name: whereabouts-flatfile-configmap
924923
configMap:
925-
name: whereabouts-config
924+
name: whereabouts-flatfile-config
926925
items:
927926
- key: whereabouts.conf
928927
path: whereabouts.conf
@@ -1069,8 +1068,8 @@ spec:
10691068
memory: 10Mi
10701069
terminationMessagePolicy: FallbackToLogsOnError
10711070
volumeMounts:
1072-
- name: whereabouts-configmap
1073-
mountPath: /etc/wherabouts/config
1071+
- name: whereabouts-flatfile-configmap
1072+
mountPath: /etc/whereabouts/config
10741073
env:
10751074
- name: KUBERNETES_SERVICE_PORT
10761075
value: "{{.KUBERNETES_SERVICE_PORT}}"
@@ -1085,8 +1084,8 @@ spec:
10851084
- name: WHEREABOUTS_NAMESPACE
10861085
value: "openshift-multus"
10871086
volumes:
1088-
- name: whereabouts-configmap
1087+
- name: whereabouts-flatfile-configmap
10891088
configMap:
1090-
name: whereabouts-config
1089+
name: whereabouts-flatfile-config
10911090
{{- end}}
1092-
---
1091+
---

0 commit comments

Comments
 (0)