You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The NIC monitors the config map and alters its behavior when deployed with the -nginx-configmaps flag. Users have the ability to add and edit custom templates using the config map keys main-template, ingress-template, and virtualserver-template after deployment. However, if a user deletes the config map key or the entire config map, the custom template will persist with the last set value and will not revert to the default until the NIC is restarted. To Reproduce
Steps to reproduce the behavior:
Deploy NIC with the flag --nginx-configmaps=$(POD_NAMESPACE)/nginx-config and empty configmap, i.e.
Add a custom template with the config map entry that is slightly different from the default tempalte, e.g. comment at the top # custom main template and re-apply the config map
Run cat etc/nginx/nginx.conf inside the NIC pod to confirm # custom main template is at the top of nginx.conf
Remove the main-template key in config map so that it reverts the one at step 1 again, and then re-apply the config map
Run cat etc/nginx/nginx.conf inside the NIC pod, # custom main template is still at the top of nginx.conf, showing that NIC does not revert to using the default template.
Expected behavior
As the NIC monitors the config map in real-time, its behavior should mirror the config map's contents. Thus, when a user inserts a custom template into the config map, the NIC should switch from the default to the custom template. Consequently, if the custom template key is deleted from the config map, the user would anticipate that the NIC reverts to the default template.
Your environment
NIC 3.5.2
NGINX
Additional context
Add any other context about the problem here. Any log files you want to share.
The text was updated successfully, but these errors were encountered:
Describe the bug
The NIC monitors the config map and alters its behavior when deployed with the
-nginx-configmaps
flag. Users have the ability to add and edit custom templates using the config map keysmain-template
,ingress-template
, andvirtualserver-template
after deployment. However, if a user deletes the config map key or the entire config map, the custom template will persist with the last set value and will not revert to the default until the NIC is restarted.To Reproduce
Steps to reproduce the behavior:
--nginx-configmaps=$(POD_NAMESPACE)/nginx-config
and empty configmap, i.e.# custom main template
and re-apply the config mapcat etc/nginx/nginx.conf
inside the NIC pod to confirm# custom main template
is at the top ofnginx.conf
main-template
key in config map so that it reverts the one at step 1 again, and then re-apply the config mapcat etc/nginx/nginx.conf
inside the NIC pod,# custom main template
is still at the top ofnginx.conf
, showing that NIC does not revert to using the default template.Expected behavior
As the NIC monitors the config map in real-time, its behavior should mirror the config map's contents. Thus, when a user inserts a custom template into the config map, the NIC should switch from the default to the custom template. Consequently, if the custom template key is deleted from the config map, the user would anticipate that the NIC reverts to the default template.
Your environment
Additional context
Add any other context about the problem here. Any log files you want to share.
The text was updated successfully, but these errors were encountered: