Skip to content

Commit 71a58de

Browse files
committed
clean up genclient tags for hub types
1 parent 970e592 commit 71a58de

File tree

17 files changed

+0
-80
lines changed

17 files changed

+0
-80
lines changed

pkg/apis/admissionregistration/types.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,6 @@ const (
100100
SideEffectClassNoneOnDryRun SideEffectClass = "NoneOnDryRun"
101101
)
102102

103-
// +genclient
104-
// +genclient:nonNamespaced
105103
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
106104

107105
// ValidatingWebhookConfiguration describes the configuration of an admission webhook that accepts or rejects and object without changing it.
@@ -128,8 +126,6 @@ type ValidatingWebhookConfigurationList struct {
128126
Items []ValidatingWebhookConfiguration
129127
}
130128

131-
// +genclient
132-
// +genclient:nonNamespaced
133129
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
134130

135131
// MutatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and may change the object.

pkg/apis/apps/types.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ import (
2323
api "k8s.io/kubernetes/pkg/apis/core"
2424
)
2525

26-
// +genclient
2726
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
2827

2928
// StatefulSet represents a set of pods with consistent identities.
@@ -227,7 +226,6 @@ type StatefulSetList struct {
227226
Items []StatefulSet
228227
}
229228

230-
// +genclient
231229
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
232230

233231
// ControllerRevision implements an immutable snapshot of state data. Clients
@@ -262,7 +260,6 @@ type ControllerRevisionList struct {
262260
Items []ControllerRevision
263261
}
264262

265-
// +genclient
266263
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
267264

268265
type Deployment struct {
@@ -644,7 +641,6 @@ type DaemonSetCondition struct {
644641
Message string
645642
}
646643

647-
// +genclient
648644
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
649645

650646
// DaemonSet represents the configuration of a daemon set.
@@ -691,7 +687,6 @@ type DaemonSetList struct {
691687
Items []DaemonSet
692688
}
693689

694-
// +genclient
695690
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
696691

697692
// ReplicaSet ensures that a specified number of pod replicas are running at any given time.

pkg/apis/auditregistration/types.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,6 @@ const (
5757
StagePanic = "Panic"
5858
)
5959

60-
// +genclient
61-
// +genclient:nonNamespaced
6260
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
6361

6462
// AuditSink represents a cluster level sink for audit data

pkg/apis/authentication/types.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,6 @@ const (
3636
ImpersonateUserExtraHeaderPrefix = "Impersonate-Extra-"
3737
)
3838

39-
// +genclient
40-
// +genclient:nonNamespaced
41-
// +genclient:noVerbs
4239
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
4340

4441
// TokenReview attempts to authenticate a token to a known user.

pkg/apis/authorization/types.go

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@ import (
2020
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
2121
)
2222

23-
// +genclient
24-
// +genclient:nonNamespaced
25-
// +genclient:noVerbs
2623
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
2724

2825
// SubjectAccessReview checks whether or not a user or group can perform an action. Not filling in a
@@ -38,9 +35,6 @@ type SubjectAccessReview struct {
3835
Status SubjectAccessReviewStatus
3936
}
4037

41-
// +genclient
42-
// +genclient:nonNamespaced
43-
// +genclient:noVerbs
4438
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
4539

4640
// SelfSubjectAccessReview checks whether or the current user can perform an action. Not filling in a
@@ -57,8 +51,6 @@ type SelfSubjectAccessReview struct {
5751
Status SubjectAccessReviewStatus
5852
}
5953

60-
// +genclient
61-
// +genclient:noVerbs
6254
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
6355

6456
// LocalSubjectAccessReview checks whether or not a user or group can perform an action in a given namespace.
@@ -155,9 +147,6 @@ type SubjectAccessReviewStatus struct {
155147
EvaluationError string
156148
}
157149

158-
// +genclient
159-
// +genclient:nonNamespaced
160-
// +genclient:noVerbs
161150
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
162151

163152
// SelfSubjectRulesReview enumerates the set of actions the current user can perform within a namespace.

pkg/apis/autoscaling/types.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,6 @@ type MetricValueStatus struct {
379379
AverageUtilization *int32
380380
}
381381

382-
// +genclient
383382
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
384383

385384
// HorizontalPodAutoscaler is the configuration for a horizontal pod

pkg/apis/batch/types.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import (
2121
api "k8s.io/kubernetes/pkg/apis/core"
2222
)
2323

24-
// +genclient
2524
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
2625

2726
// Job represents the configuration of a single job.
@@ -215,7 +214,6 @@ type JobCondition struct {
215214
Message string
216215
}
217216

218-
// +genclient
219217
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
220218

221219
// CronJob represents the configuration of a single cron job.

pkg/apis/certificates/types.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ package certificates
1818

1919
import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
2020

21-
// +genclient
22-
// +genclient:nonNamespaced
2321
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
2422

2523
// Describes a certificate signing request

pkg/apis/coordination/types.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ import (
2020
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
2121
)
2222

23-
// +genclient
2423
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
2524

2625
// Lease defines a lease concept.

pkg/apis/core/types.go

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,6 @@ const (
255255
MountOptionAnnotation = "volume.beta.kubernetes.io/mount-options"
256256
)
257257

258-
// +genclient
259-
// +genclient:nonNamespaced
260258
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
261259

262260
type PersistentVolume struct {
@@ -363,7 +361,6 @@ type PersistentVolumeList struct {
363361
Items []PersistentVolume
364362
}
365363

366-
// +genclient
367364
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
368365

369366
// PersistentVolumeClaim is a user's request for and claim to a persistent volume
@@ -2879,7 +2876,6 @@ type PodStatusResult struct {
28792876
Status PodStatus
28802877
}
28812878

2882-
// +genclient
28832879
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
28842880

28852881
// Pod is a collection of containers, used as either input (create, update) or as output (list, get).
@@ -2909,7 +2905,6 @@ type PodTemplateSpec struct {
29092905
Spec PodSpec
29102906
}
29112907

2912-
// +genclient
29132908
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
29142909

29152910
// PodTemplate describes a template for creating copies of a predefined pod.
@@ -3017,9 +3012,6 @@ type ReplicationControllerCondition struct {
30173012
Message string
30183013
}
30193014

3020-
// +genclient
3021-
// +genclient:method=GetScale,verb=get,subresource=scale,result=k8s.io/kubernetes/pkg/apis/autoscaling.Scale
3022-
// +genclient:method=UpdateScale,verb=update,subresource=scale,input=k8s.io/kubernetes/pkg/apis/autoscaling.Scale,result=k8s.io/kubernetes/pkg/apis/autoscaling.Scale
30233015
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
30243016

30253017
// ReplicationController represents the configuration of a replication controller.
@@ -3293,7 +3285,6 @@ type ServicePort struct {
32933285
NodePort int32
32943286
}
32953287

3296-
// +genclient
32973288
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
32983289

32993290
// Service is a named abstraction of software service (for example, mysql) consisting of local port
@@ -3313,7 +3304,6 @@ type Service struct {
33133304
Status ServiceStatus
33143305
}
33153306

3316-
// +genclient
33173307
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
33183308

33193309
// ServiceAccount binds together:
@@ -3351,7 +3341,6 @@ type ServiceAccountList struct {
33513341
Items []ServiceAccount
33523342
}
33533343

3354-
// +genclient
33553344
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
33563345

33573346
// Endpoints is a collection of endpoints that implement the actual service. Example:
@@ -3776,8 +3765,6 @@ const (
37763765
// ResourceList is a set of (resource name, quantity) pairs.
37773766
type ResourceList map[ResourceName]resource.Quantity
37783767

3779-
// +genclient
3780-
// +genclient:nonNamespaced
37813768
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
37823769

37833770
// Node is a worker node in Kubernetes
@@ -3839,8 +3826,6 @@ const (
38393826
NamespaceTerminating NamespacePhase = "Terminating"
38403827
)
38413828

3842-
// +genclient
3843-
// +genclient:nonNamespaced
38443829
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
38453830

38463831
// A namespace provides a scope for Names.
@@ -4095,7 +4080,6 @@ const (
40954080
EventTypeWarning string = "Warning"
40964081
)
40974082

4098-
// +genclient
40994083
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
41004084

41014085
// Event is a report of an event somewhere in the cluster.
@@ -4239,7 +4223,6 @@ type LimitRangeSpec struct {
42394223
Limits []LimitRangeItem
42404224
}
42414225

4242-
// +genclient
42434226
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
42444227

42454228
// LimitRange sets resource usage limits for each kind of resource in a Namespace
@@ -4386,7 +4369,6 @@ type ResourceQuotaStatus struct {
43864369
Used ResourceList
43874370
}
43884371

4389-
// +genclient
43904372
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
43914373

43924374
// ResourceQuota sets aggregate quota restrictions enforced per namespace
@@ -4416,7 +4398,6 @@ type ResourceQuotaList struct {
44164398
Items []ResourceQuota
44174399
}
44184400

4419-
// +genclient
44204401
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
44214402

44224403
// Secret holds secret data of a certain type. The total bytes of the values in
@@ -4536,7 +4517,6 @@ type SecretList struct {
45364517
Items []Secret
45374518
}
45384519

4539-
// +genclient
45404520
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
45414521

45424522
// ConfigMap holds configuration data for components or applications to consume.
@@ -4634,8 +4614,6 @@ type ComponentCondition struct {
46344614
Error string
46354615
}
46364616

4637-
// +genclient
4638-
// +genclient:nonNamespaced
46394617
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
46404618

46414619
// ComponentStatus (and ComponentStatusList) holds the cluster validation info.

0 commit comments

Comments
 (0)