Skip to content

Specifying unknown arguments in Cilium Agent config-dir

I was using Cilium 1.15 with the derive-masquerade-ip-addr-from-device argument. After upgrading to 1.16 via Helm, I noticed that this argument no longer works, as it was renamed to derive-masq-ip-addr-from-device (commit). This change was not mentioned in the 1.16 Upgrade Guide.

In the code below, when validateConfigMap is called, it appears that unknown arguments are ignored (execution continue). It might be helpful to log a warning when an unknown argument is detected, or alternatively, apply a strict validation policy that causes an immediate failure, ensuring users are notified promptly. Thanks in advance!

https://github.com/cilium/cilium/blob/7a206aad8ef17a19ff8d698f5e0c0e0f27ce641a/pkg/option/config.go#L3483-L3497