(aws-eks): Ability to suppress selected warnings #15079
Labels
@aws-cdk/aws-eks
Related to Amazon Elastic Kubernetes Service
effort/medium
Medium work item – several days of effort
feature/enhancement
A new API to make things easier or more intuitive. A catch-all for general feature requests.
feature-request
A feature should be added or improved.
p2
Introduce a means of selectively suppressing warnings
Use Case
The
@aws-eks/Cluster
construct sometimes emits warnings for which the most appropriate response is to ignore them. See #14724 for an example of this.Non-actionable warnings introduce a usability issue because they make it harder to spot warnings that do need action.
To remedy this, it would be useful to have some way of selectively suppressing errors that we know to be non-actionable, to avoid confusion for folks who are new to our codebase, and to help us reliably notice warnings that we need to pay attention to.
Proposed Solution
The following workaround suppresses warnings by bypassing the Cluster construct's standard interface:
(Works with
aws-cdk
version 1.104.1)Although this works, it is not really satisfactory, because it is undocumented and relies on knowledge of CDK's internal workings, which could theoretically change at any time.
Other
This is a 🚀 Feature Request
The text was updated successfully, but these errors were encountered: