Skip to content

Report ConfigMap errors when user tries to apply invalid values for the keys #6379

@haywoodsh

Description

@haywoodsh

Discussed in #6164

We should emit config map events for all validation failures

Originally posted by jjngx August 9, 2024
This idea is a follow up of this PR: #5648

If the value for the access-log is invalid, the config map obj does not show error/warning state. The error is only visible in the NIC log, for example:

E20240809 10:59:06.679467       1 configmaps.go:212] Configmap nginx-ingress/nginx-config: Invalid value for key access-log: "ssyslog:server=localhost:514"

config-map:

...
Data
====
access-log-off:
----
true
access-log:
----
syslog:server=localhost:514
...

The main idea is to improve UX and allow users to see that objects are not applied due errors by checking (describing) the obj without a need to check NIC logs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    proposalAn issue that proposes a feature request

    Type

    No type

    Projects

    Status

    Todo ☑

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions