-
Notifications
You must be signed in to change notification settings - Fork 635
🌱 enable requiredfields linter #5643
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
base: main
Are you sure you want to change the base?
Changes from 2 commits
44bbc87
43a07db
99178e8
216ebdd
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -127,7 +127,7 @@ type Addon struct { | |
| // Name is the name of the addon | ||
| // +kubebuilder:validation:MinLength:=2 | ||
| // +kubebuilder:validation:Required | ||
| Name string `json:"name"` | ||
| Name string `json:"name,omitempty"` | ||
| // Version is the version of the addon to use | ||
| Version string `json:"version"` | ||
| // Configuration of the EKS addon | ||
|
|
@@ -223,6 +223,7 @@ type OIDCIdentityProviderConfig struct { | |
| // This is also known as audience. The ID for the client application that makes | ||
| // authentication requests to the OpenID identity provider. | ||
| // +kubebuilder:validation:Required | ||
| // +kubebuilder:validation:MinLength=1 | ||
| ClientID string `json:"clientId,omitempty"` | ||
|
|
||
| // The JWT claim that the provider uses to return your groups. | ||
|
|
@@ -239,6 +240,7 @@ type OIDCIdentityProviderConfig struct { | |
| // | ||
| // IdentityProviderConfigName is a required field | ||
| // +kubebuilder:validation:Required | ||
| // +kubebuilder:validation:MinLength=1 | ||
| IdentityProviderConfigName string `json:"identityProviderConfigName,omitempty"` | ||
|
|
||
| // The URL of the OpenID identity provider that allows the API server to discover | ||
|
|
@@ -250,6 +252,8 @@ type OIDCIdentityProviderConfig struct { | |
| // and must be publicly accessible over the internet. | ||
| // | ||
| // +kubebuilder:validation:Required | ||
| // +kubebuilder:validation:MinLength=1 | ||
| // +kubebuilder:validation:Pattern=`^https://.+` | ||
|
||
| IssuerURL string `json:"issuerUrl,omitempty"` | ||
|
|
||
| // The key value pairs that describe required claims in the identity token. | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have you verified that this ratchets?