Skip to content

Add an option in kustomize lib to suppress the deprecation warnings. #5452

Description

@liuwh08

Eschewed features

  • This issue is not requesting templating, unstuctured edits, build-time side-effects from args or env vars, or any other eschewed feature.

What would you like to have added?

A knob or loger option to suppress the warinning emitted by kustomize lib (not the binary).

Why is this needed?

Currently our binary directly calls kustomize.Build() and each call will write deprecation warning to stderr and our binary calls multiple times of Build(). It looks spamming and probably a bit ominous to our end user.

Can you accomplish the motivating task without this feature, and if so, how?

No, it's hard coded to stderr.

What other solutions have you considered?

The alternative is the deprecation of var but it would take sometime to finish on our side as it's not a full feature parity to repalcements. (We finished the jsonPatch and base to resources pretty quickly.)

Anything else we should know?

No response

Feature ownership

  • I am interested in contributing this feature myself! 🎉

Metadata

Metadata

Assignees

Labels

good first issueDenotes an issue ready for a new contributor, according to the "help wanted" guidelines.help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.kind/featureCategorizes issue or PR as related to a new feature.needs-triageIndicates an issue or PR lacks a `triage/foo` label and requires one.

Type

No type

Projects

Status
Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions