Bug fix nodeip-configuration.service template
Updates the on-prem nodeip-configuration.service template so content is always written but enabled is toggled based on onPremPlatformAPIServerInternalIP. Prior to this change, if onPremPlatformAPIServerInternalIP is nil the enabled is true but content is empty. This change puts the template to be consistent with /pkg/templates/common/_base/units/nodeip-configuration.service.yaml.
name: nodeip-configuration.service
-enabled: true
+enabled: {{if (onPremPlatformAPIServerInternalIP .)}}true{{else}}false{{end}}
contents: |
- {{ if (onPremPlatformAPIServerInternalIP .) -}}
[Unit]
Description=Writes IP address configuration so that kubelet and crio services select a valid node IP
# This only applies to VIP managing environments where the kubelet and crio IP
@@ -45,4 +44,3 @@ contents: |
[Install]
WantedBy=multi-user.target
- {{ end -}}
