Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ADD: json tags to the configuration structure #470

Merged
merged 1 commit into from
Aug 23, 2024

Conversation

jescarri
Copy link
Contributor

@jescarri jescarri commented Aug 16, 2024

The configuration structures do not have the json/yaml tags, this prevents other programs to programatically write the configuration.

The use-case is to have an external program that generates the SlackChannel configuration based of namespoaces annotations.

Viper does not have a config marshal method same with the mapstructure library.

this is needed to allow external programs to programatically
generate the policy-reporter config file.

Viper does not have a config marshal method same with the mapstructure
library.

Signed-off-by: Jesus Carrillo <[email protected]>
@jescarri jescarri marked this pull request as ready for review August 16, 2024 16:54
@fjogeleit fjogeleit merged commit 16bcc21 into kyverno:main Aug 23, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants