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 kafkauser annotation validations #1015

Merged
merged 5 commits into from
Jul 20, 2023

Conversation

LuciferInLove
Copy link
Contributor

Description

Add validators and whitelist for KafkaUser spec annotations.

Only cert-manager pki backend signer annotations are validated. The whitelist contains only one annotation - experimental.cert-manager.io/request-duration.

The kafkauser controller's side implementation and the CertManagerSignerNamePrefix references update will be pushed after bumping the API version.

Annotations' structs, methods, and interfaces are currently private and may be turned public in the future if needed.

Type of Change

  • New Feature

Checklist

  • I have read the contributing guidelines
  • I have verified this change is not present in other open pull requests
  • All code style checks pass
  • All new and existing tests pass

@LuciferInLove LuciferInLove requested a review from a team as a code owner July 17, 2023 13:56
api/v1alpha1/kafkauser_types.go Show resolved Hide resolved
api/v1alpha1/kafkauser_types_test.go Outdated Show resolved Hide resolved
api/v1alpha1/kafkauserspec_annotations.go Outdated Show resolved Hide resolved
api/v1alpha1/kafkauserspec_annotations.go Outdated Show resolved Hide resolved
@pregnor pregnor requested a review from a team July 20, 2023 10:28
pregnor
pregnor previously approved these changes Jul 20, 2023
Kuvesz
Kuvesz previously approved these changes Jul 20, 2023
Copy link
Contributor

@Kuvesz Kuvesz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, though please fix Márton's typo suggestion.

@LuciferInLove LuciferInLove dismissed stale reviews from Kuvesz and pregnor via bf63725 July 20, 2023 11:33
Copy link
Contributor

@bartam1 bartam1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@LuciferInLove LuciferInLove merged commit 752082d into master Jul 20, 2023
4 checks passed
@LuciferInLove LuciferInLove deleted the kafkauser-annotations-whitelist branch July 20, 2023 12:49
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.

4 participants