Skip to content

Commit

Permalink
Auto-fix fixable linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
JoelSpeed committed Dec 5, 2024
1 parent c1fdeb0 commit 502e171
Show file tree
Hide file tree
Showing 365 changed files with 9,031 additions and 9,237 deletions.
3 changes: 1 addition & 2 deletions apiserver/v1/types_apirequestcount.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ type APIRequestCount struct {
metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`

// spec defines the characteristics of the resource.
// +kubebuilder:validation:Required
// +required
Spec APIRequestCountSpec `json:"spec"`

Expand Down Expand Up @@ -126,7 +125,7 @@ type PerNodeAPIRequestLog struct {
// PerUserAPIRequestCount contains logs of a user's requests.
type PerUserAPIRequestCount struct {

// userName that made the request.
// username that made the request.
// +kubebuilder:validation:MaxLength=512
UserName string `json:"username"`

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ spec:
maxLength: 1024
type: string
username:
description: userName that made the request.
description: username that made the request.
maxLength: 512
type: string
required:
Expand Down Expand Up @@ -282,7 +282,7 @@ spec:
maxLength: 1024
type: string
username:
description: userName that made the request.
description: username that made the request.
maxLength: 512
type: string
required:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ spec:
maxLength: 1024
type: string
username:
description: userName that made the request.
description: username that made the request.
maxLength: 512
type: string
required:
Expand Down Expand Up @@ -283,7 +283,7 @@ spec:
maxLength: 1024
type: string
username:
description: userName that made the request.
description: username that made the request.
maxLength: 512
type: string
required:
Expand Down
2 changes: 1 addition & 1 deletion apiserver/v1/zz_generated.swagger_doc_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

160 changes: 80 additions & 80 deletions apps/v1/generated.proto

Large diffs are not rendered by default.

160 changes: 80 additions & 80 deletions apps/v1/types.go

Large diffs are not rendered by default.

160 changes: 80 additions & 80 deletions apps/v1/zz_generated.swagger_doc_generated.go

Large diffs are not rendered by default.

134 changes: 67 additions & 67 deletions authorization/v1/generated.proto

Large diffs are not rendered by default.

134 changes: 67 additions & 67 deletions authorization/v1/types.go

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,15 @@ spec:
metadata:
type: object
spec:
description: Spec defines the matcher.
description: spec defines the matcher.
properties:
grouprestriction:
description: GroupRestriction matches against group subjects.
description: grouprestriction matches against group subjects.
nullable: true
properties:
groups:
description: |-
Groups is a list of groups used to match against an individual user's
groups is a list of groups used to match against an individual user's
groups. If the user is a member of one of the whitelisted groups, the user
is allowed to be bound to a role.
items:
Expand Down Expand Up @@ -118,30 +118,30 @@ spec:
type: array
type: object
serviceaccountrestriction:
description: ServiceAccountRestriction matches against service-account
description: serviceaccountrestriction matches against service-account
subjects.
nullable: true
properties:
namespaces:
description: Namespaces specifies a list of literal namespace
description: namespaces specifies a list of literal namespace
names.
items:
type: string
type: array
serviceaccounts:
description: ServiceAccounts specifies a list of literal service-account
description: serviceaccounts specifies a list of literal service-account
names.
items:
description: |-
ServiceAccountReference specifies a service account and namespace by their
names.
properties:
name:
description: Name is the name of the service account.
description: name is the name of the service account.
type: string
namespace:
description: |-
Namespace is the namespace of the service account. Service accounts from
namespace is the namespace of the service account. Service accounts from
inside the whitelisted namespaces are allowed to be bound to roles. If
Namespace is empty, then the namespace of the RoleBindingRestriction in
which the ServiceAccountReference is embedded is used.
Expand All @@ -150,11 +150,11 @@ spec:
type: array
type: object
userrestriction:
description: UserRestriction matches against user subjects.
description: userrestriction matches against user subjects.
nullable: true
properties:
groups:
description: Groups specifies a list of literal group names.
description: groups specifies a list of literal group names.
items:
type: string
nullable: true
Expand Down Expand Up @@ -214,7 +214,7 @@ spec:
nullable: true
type: array
users:
description: Users specifies a list of literal user names.
description: users specifies a list of literal user names.
items:
type: string
type: array
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,15 @@ spec:
metadata:
type: object
spec:
description: Spec defines the matcher.
description: spec defines the matcher.
properties:
grouprestriction:
description: GroupRestriction matches against group subjects.
description: grouprestriction matches against group subjects.
nullable: true
properties:
groups:
description: |-
Groups is a list of groups used to match against an individual user's
groups is a list of groups used to match against an individual user's
groups. If the user is a member of one of the whitelisted groups, the user
is allowed to be bound to a role.
items:
Expand Down Expand Up @@ -119,30 +119,30 @@ spec:
type: array
type: object
serviceaccountrestriction:
description: ServiceAccountRestriction matches against service-account
description: serviceaccountrestriction matches against service-account
subjects.
nullable: true
properties:
namespaces:
description: Namespaces specifies a list of literal namespace
description: namespaces specifies a list of literal namespace
names.
items:
type: string
type: array
serviceaccounts:
description: ServiceAccounts specifies a list of literal service-account
description: serviceaccounts specifies a list of literal service-account
names.
items:
description: |-
ServiceAccountReference specifies a service account and namespace by their
names.
properties:
name:
description: Name is the name of the service account.
description: name is the name of the service account.
type: string
namespace:
description: |-
Namespace is the namespace of the service account. Service accounts from
namespace is the namespace of the service account. Service accounts from
inside the whitelisted namespaces are allowed to be bound to roles. If
Namespace is empty, then the namespace of the RoleBindingRestriction in
which the ServiceAccountReference is embedded is used.
Expand All @@ -151,11 +151,11 @@ spec:
type: array
type: object
userrestriction:
description: UserRestriction matches against user subjects.
description: userrestriction matches against user subjects.
nullable: true
properties:
groups:
description: Groups specifies a list of literal group names.
description: groups specifies a list of literal group names.
items:
type: string
nullable: true
Expand Down Expand Up @@ -215,7 +215,7 @@ spec:
nullable: true
type: array
users:
description: Users specifies a list of literal user names.
description: users specifies a list of literal user names.
items:
type: string
type: array
Expand Down
Loading

0 comments on commit 502e171

Please sign in to comment.