Move KUBERNETES_NODE_NAME env var to controller
KUBERNETES_NODE_NAME environment variable was defined in kuryr-daemon
DaemonSet instead of in kuryr-controller's Deployment. As it's only used
by kuryr-controller, this commit moves that definition to its correct
place.
Closes-Bug:
@@ -585,6 +585,11 @@ EOF
imagePullPolicy: Never
name: controller
terminationMessagePath: "/dev/termination-log"
+ env:
+ - name: KUBERNETES_NODE_NAME
+ valueFrom:
+ fieldRef:
+ fieldPath: spec.nodeName
volumeMounts:
- name: config-volume
mountPath: "/etc/kuryr/kuryr.conf"
@@ -653,10 +658,6 @@ spec:
imagePullPolicy: Never
command: [ "cni_ds_init" ]
env:
- - name: KUBERNETES_NODE_NAME
- valueFrom:
- fieldRef:
- fieldPath: spec.nodeName
- name: KURYR_CNI_POD_NAME
valueFrom:
fieldRef:
