Skip to content

Commit ebbd3fd

Browse files
committed
chore(k8s/magiclove): update k8s types
1 parent ed725e6 commit ebbd3fd

File tree

77 files changed

+11347
-1813
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+11347
-1813
lines changed

cue.mod/gen/k8s.io/api/admissionregistration/v1/types_go_gen.cue

Lines changed: 610 additions & 6 deletions
Large diffs are not rendered by default.

cue.mod/gen/k8s.io/api/admissionregistration/v1alpha1/types_go_gen.cue

Lines changed: 356 additions & 12 deletions
Large diffs are not rendered by default.

cue.mod/gen/k8s.io/api/admissionregistration/v1beta1/types_go_gen.cue

Lines changed: 341 additions & 14 deletions
Large diffs are not rendered by default.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// Code generated by cue get go. DO NOT EDIT.
2+
3+
//cue:generate cue get go k8s.io/api/apidiscovery/v2
4+
5+
package v2
6+
7+
#GroupName: "apidiscovery.k8s.io"
Lines changed: 157 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,157 @@
1+
// Code generated by cue get go. DO NOT EDIT.
2+
3+
//cue:generate cue get go k8s.io/api/apidiscovery/v2
4+
5+
package v2
6+
7+
import "k8s.io/apimachinery/pkg/apis/meta/v1"
8+
9+
// APIGroupDiscoveryList is a resource containing a list of APIGroupDiscovery.
10+
// This is one of the types able to be returned from the /api and /apis endpoint and contains an aggregated
11+
// list of API resources (built-ins, Custom Resource Definitions, resources from aggregated servers)
12+
// that a cluster supports.
13+
#APIGroupDiscoveryList: {
14+
v1.#TypeMeta
15+
16+
// ResourceVersion will not be set, because this does not have a replayable ordering among multiple apiservers.
17+
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
18+
// +optional
19+
metadata?: v1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt)
20+
21+
// items is the list of groups for discovery. The groups are listed in priority order.
22+
items: [...#APIGroupDiscovery] @go(Items,[]APIGroupDiscovery) @protobuf(2,bytes,rep)
23+
}
24+
25+
// APIGroupDiscovery holds information about which resources are being served for all version of the API Group.
26+
// It contains a list of APIVersionDiscovery that holds a list of APIResourceDiscovery types served for a version.
27+
// Versions are in descending order of preference, with the first version being the preferred entry.
28+
#APIGroupDiscovery: {
29+
v1.#TypeMeta
30+
31+
// Standard object's metadata.
32+
// The only field completed will be name. For instance, resourceVersion will be empty.
33+
// name is the name of the API group whose discovery information is presented here.
34+
// name is allowed to be "" to represent the legacy, ungroupified resources.
35+
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
36+
// +optional
37+
metadata?: v1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt)
38+
39+
// versions are the versions supported in this group. They are sorted in descending order of preference,
40+
// with the preferred version being the first entry.
41+
// +listType=map
42+
// +listMapKey=version
43+
versions?: [...#APIVersionDiscovery] @go(Versions,[]APIVersionDiscovery) @protobuf(2,bytes,rep)
44+
}
45+
46+
// APIVersionDiscovery holds a list of APIResourceDiscovery types that are served for a particular version within an API Group.
47+
#APIVersionDiscovery: {
48+
// version is the name of the version within a group version.
49+
version: string @go(Version) @protobuf(1,bytes,opt)
50+
51+
// resources is a list of APIResourceDiscovery objects for the corresponding group version.
52+
// +listType=map
53+
// +listMapKey=resource
54+
resources?: [...#APIResourceDiscovery] @go(Resources,[]APIResourceDiscovery) @protobuf(2,bytes,rep)
55+
56+
// freshness marks whether a group version's discovery document is up to date.
57+
// "Current" indicates the discovery document was recently
58+
// refreshed. "Stale" indicates the discovery document could not
59+
// be retrieved and the returned discovery document may be
60+
// significantly out of date. Clients that require the latest
61+
// version of the discovery information be retrieved before
62+
// performing an operation should not use the aggregated document
63+
freshness?: #DiscoveryFreshness @go(Freshness) @protobuf(3,bytes,opt)
64+
}
65+
66+
// APIResourceDiscovery provides information about an API resource for discovery.
67+
#APIResourceDiscovery: {
68+
// resource is the plural name of the resource. This is used in the URL path and is the unique identifier
69+
// for this resource across all versions in the API group.
70+
// Resources with non-empty groups are located at /apis/<APIGroupDiscovery.objectMeta.name>/<APIVersionDiscovery.version>/<APIResourceDiscovery.Resource>
71+
// Resources with empty groups are located at /api/v1/<APIResourceDiscovery.Resource>
72+
resource: string @go(Resource) @protobuf(1,bytes,opt)
73+
74+
// responseKind describes the group, version, and kind of the serialization schema for the object type this endpoint typically returns.
75+
// APIs may return other objects types at their discretion, such as error conditions, requests for alternate representations, or other operation specific behavior.
76+
// This value will be null or empty if an APIService reports subresources but supports no operations on the parent resource
77+
responseKind?: null | v1.#GroupVersionKind @go(ResponseKind,*v1.GroupVersionKind) @protobuf(2,bytes,opt)
78+
79+
// scope indicates the scope of a resource, either Cluster or Namespaced
80+
scope: #ResourceScope @go(Scope) @protobuf(3,bytes,opt)
81+
82+
// singularResource is the singular name of the resource. This allows clients to handle plural and singular opaquely.
83+
// For many clients the singular form of the resource will be more understandable to users reading messages and should be used when integrating the name of the resource into a sentence.
84+
// The command line tool kubectl, for example, allows use of the singular resource name in place of plurals.
85+
// The singular form of a resource should always be an optional element - when in doubt use the canonical resource name.
86+
singularResource: string @go(SingularResource) @protobuf(4,bytes,opt)
87+
88+
// verbs is a list of supported API operation types (this includes
89+
// but is not limited to get, list, watch, create, update, patch,
90+
// delete, deletecollection, and proxy).
91+
// +listType=set
92+
verbs: [...string] @go(Verbs,[]string) @protobuf(5,bytes,opt)
93+
94+
// shortNames is a list of suggested short names of the resource.
95+
// +listType=set
96+
shortNames?: [...string] @go(ShortNames,[]string) @protobuf(6,bytes,rep)
97+
98+
// categories is a list of the grouped resources this resource belongs to (e.g. 'all').
99+
// Clients may use this to simplify acting on multiple resource types at once.
100+
// +listType=set
101+
categories?: [...string] @go(Categories,[]string) @protobuf(7,bytes,rep)
102+
103+
// subresources is a list of subresources provided by this resource. Subresources are located at /apis/<APIGroupDiscovery.objectMeta.name>/<APIVersionDiscovery.version>/<APIResourceDiscovery.Resource>/name-of-instance/<APIResourceDiscovery.subresources[i].subresource>
104+
// +listType=map
105+
// +listMapKey=subresource
106+
subresources?: [...#APISubresourceDiscovery] @go(Subresources,[]APISubresourceDiscovery) @protobuf(8,bytes,rep)
107+
}
108+
109+
// ResourceScope is an enum defining the different scopes available to a resource.
110+
#ResourceScope: string // #enumResourceScope
111+
112+
#enumResourceScope:
113+
#ScopeCluster |
114+
#ScopeNamespace
115+
116+
#ScopeCluster: #ResourceScope & "Cluster"
117+
#ScopeNamespace: #ResourceScope & "Namespaced"
118+
119+
// DiscoveryFreshness is an enum defining whether the Discovery document published by an apiservice is up to date (fresh).
120+
#DiscoveryFreshness: string // #enumDiscoveryFreshness
121+
122+
#enumDiscoveryFreshness:
123+
#DiscoveryFreshnessCurrent |
124+
#DiscoveryFreshnessStale
125+
126+
#DiscoveryFreshnessCurrent: #DiscoveryFreshness & "Current"
127+
#DiscoveryFreshnessStale: #DiscoveryFreshness & "Stale"
128+
129+
// APISubresourceDiscovery provides information about an API subresource for discovery.
130+
#APISubresourceDiscovery: {
131+
// subresource is the name of the subresource. This is used in the URL path and is the unique identifier
132+
// for this resource across all versions.
133+
subresource: string @go(Subresource) @protobuf(1,bytes,opt)
134+
135+
// responseKind describes the group, version, and kind of the serialization schema for the object type this endpoint typically returns.
136+
// Some subresources do not return normal resources, these will have null or empty return types.
137+
responseKind?: null | v1.#GroupVersionKind @go(ResponseKind,*v1.GroupVersionKind) @protobuf(2,bytes,opt)
138+
139+
// acceptedTypes describes the kinds that this endpoint accepts.
140+
// Subresources may accept the standard content types or define
141+
// custom negotiation schemes. The list may not be exhaustive for
142+
// all operations.
143+
// +listType=map
144+
// +listMapKey=group
145+
// +listMapKey=version
146+
// +listMapKey=kind
147+
acceptedTypes?: [...v1.#GroupVersionKind] @go(AcceptedTypes,[]v1.GroupVersionKind) @protobuf(3,bytes,rep)
148+
149+
// verbs is a list of supported API operation types (this includes
150+
// but is not limited to get, list, watch, create, update, patch,
151+
// delete, deletecollection, and proxy). Subresources may define
152+
// custom verbs outside the standard Kubernetes verb set. Clients
153+
// should expect the behavior of standard verbs to align with
154+
// Kubernetes interaction conventions.
155+
// +listType=set
156+
verbs: [...string] @go(Verbs,[]string) @protobuf(4,bytes,opt)
157+
}

cue.mod/gen/k8s.io/api/apiserverinternal/v1alpha1/types_go_gen.cue

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
2222
}
2323

2424
// StorageVersionSpec is an empty spec.
25-
#StorageVersionSpec: {
26-
}
25+
#StorageVersionSpec: {}
2726

2827
// API server instances report the versions they can decode and the version they
2928
// encode objects to when persisting objects in the backend.
@@ -103,7 +102,6 @@ import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
103102
observedGeneration?: int64 @go(ObservedGeneration) @protobuf(3,varint,opt)
104103

105104
// Last time the condition transitioned from one status to another.
106-
// +required
107105
lastTransitionTime?: metav1.#Time @go(LastTransitionTime) @protobuf(4,bytes,opt)
108106

109107
// The reason for the condition's last transition.

cue.mod/gen/k8s.io/api/apps/v1/types_go_gen.cue

Lines changed: 43 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ import (
134134
// will not be deleted.
135135
#RetainPersistentVolumeClaimRetentionPolicyType: #PersistentVolumeClaimRetentionPolicyType & "Retain"
136136

137-
// RetentionPersistentVolumeClaimRetentionPolicyType specifies that
137+
// DeletePersistentVolumeClaimRetentionPolicyType specifies that
138138
// PersistentVolumeClaims associated with StatefulSet VolumeClaimTemplates
139139
// will be deleted in the scenario specified in
140140
// StatefulSetPersistentVolumeClaimRetentionPolicy.
@@ -204,14 +204,16 @@ import (
204204
// any volumes in the template, with the same name.
205205
// TODO: Define the behavior if a claim already exists with the same name.
206206
// +optional
207+
// +listType=atomic
207208
volumeClaimTemplates?: [...v1.#PersistentVolumeClaim] @go(VolumeClaimTemplates,[]v1.PersistentVolumeClaim) @protobuf(4,bytes,rep)
208209

209210
// serviceName is the name of the service that governs this StatefulSet.
210211
// This service must exist before the StatefulSet, and is responsible for
211212
// the network identity of the set. Pods get DNS/hostnames that follow the
212213
// pattern: pod-specific-string.serviceName.default.svc.cluster.local
213214
// where "pod-specific-string" is managed by the StatefulSet controller.
214-
serviceName: string @go(ServiceName) @protobuf(5,bytes,opt)
215+
// +optional
216+
serviceName?: string @go(ServiceName) @protobuf(5,bytes,opt)
215217

216218
// podManagementPolicy controls how pods are created during initial scale up,
217219
// when replacing pods on nodes, or when scaling down. The default policy is
@@ -246,15 +248,13 @@ import (
246248
// volume claims are created as needed and retained until manually deleted. This
247249
// policy allows the lifecycle to be altered, for example by deleting persistent
248250
// volume claims when their stateful set is deleted, or when their pod is scaled
249-
// down. This requires the StatefulSetAutoDeletePVC feature gate to be enabled,
250-
// which is alpha. +optional
251+
// down.
252+
// +optional
251253
persistentVolumeClaimRetentionPolicy?: null | #StatefulSetPersistentVolumeClaimRetentionPolicy @go(PersistentVolumeClaimRetentionPolicy,*StatefulSetPersistentVolumeClaimRetentionPolicy) @protobuf(10,bytes,opt)
252254

253255
// ordinals controls the numbering of replica indices in a StatefulSet. The
254256
// default ordinals behavior assigns a "0" index to the first replica and
255-
// increments the index by one for each additional replica requested. Using
256-
// the ordinals field requires the StatefulSetStartOrdinal feature gate to be
257-
// enabled, which is beta.
257+
// increments the index by one for each additional replica requested.
258258
// +optional
259259
ordinals?: null | #StatefulSetOrdinals @go(Ordinals,*StatefulSetOrdinals) @protobuf(11,bytes,opt)
260260
}
@@ -298,6 +298,8 @@ import (
298298
// +optional
299299
// +patchMergeKey=type
300300
// +patchStrategy=merge
301+
// +listType=map
302+
// +listMapKey=type
301303
conditions?: [...#StatefulSetCondition] @go(Conditions,[]StatefulSetCondition) @protobuf(10,bytes,rep)
302304

303305
// Total number of available pods (ready for at least minReadySeconds) targeted by this statefulset.
@@ -473,19 +475,19 @@ import (
473475
// +optional
474476
observedGeneration?: int64 @go(ObservedGeneration) @protobuf(1,varint,opt)
475477

476-
// Total number of non-terminated pods targeted by this deployment (their labels match the selector).
478+
// Total number of non-terminating pods targeted by this deployment (their labels match the selector).
477479
// +optional
478480
replicas?: int32 @go(Replicas) @protobuf(2,varint,opt)
479481

480-
// Total number of non-terminated pods targeted by this deployment that have the desired template spec.
482+
// Total number of non-terminating pods targeted by this deployment that have the desired template spec.
481483
// +optional
482484
updatedReplicas?: int32 @go(UpdatedReplicas) @protobuf(3,varint,opt)
483485

484-
// readyReplicas is the number of pods targeted by this Deployment with a Ready Condition.
486+
// Total number of non-terminating pods targeted by this Deployment with a Ready Condition.
485487
// +optional
486488
readyReplicas?: int32 @go(ReadyReplicas) @protobuf(7,varint,opt)
487489

488-
// Total number of available pods (ready for at least minReadySeconds) targeted by this deployment.
490+
// Total number of available non-terminating pods (ready for at least minReadySeconds) targeted by this deployment.
489491
// +optional
490492
availableReplicas?: int32 @go(AvailableReplicas) @protobuf(4,varint,opt)
491493

@@ -495,9 +497,18 @@ import (
495497
// +optional
496498
unavailableReplicas?: int32 @go(UnavailableReplicas) @protobuf(5,varint,opt)
497499

500+
// Total number of terminating pods targeted by this deployment. Terminating pods have a non-null
501+
// .metadata.deletionTimestamp and have not yet reached the Failed or Succeeded .status.phase.
502+
//
503+
// This is an alpha field. Enable DeploymentReplicaSetTerminatingReplicas to be able to use this field.
504+
// +optional
505+
terminatingReplicas?: null | int32 @go(TerminatingReplicas,*int32) @protobuf(9,varint,opt)
506+
498507
// Represents the latest available observations of a deployment's current state.
499508
// +patchMergeKey=type
500509
// +patchStrategy=merge
510+
// +listType=map
511+
// +listMapKey=type
501512
conditions?: [...#DeploymentCondition] @go(Conditions,[]DeploymentCondition) @protobuf(6,bytes,rep)
502513

503514
// Count of hash collisions for the Deployment. The Deployment controller uses this
@@ -621,7 +632,7 @@ import (
621632
// pod is available (Ready for at least minReadySeconds) the old DaemonSet pod
622633
// on that node is marked deleted. If the old pod becomes unavailable for any
623634
// reason (Ready transitions to false, is evicted, or is drained) an updated
624-
// pod is immediatedly created on that node without considering surge limits.
635+
// pod is immediately created on that node without considering surge limits.
625636
// Allowing surge implies the possibility that the resources consumed by the
626637
// daemonset on any given node can double if the readiness check fails, and
627638
// so resource intensive daemonsets should take into account that they may
@@ -715,6 +726,8 @@ import (
715726
// +optional
716727
// +patchMergeKey=type
717728
// +patchStrategy=merge
729+
// +listType=map
730+
// +listMapKey=type
718731
conditions?: [...#DaemonSetCondition] @go(Conditions,[]DaemonSetCondition) @protobuf(10,bytes,rep)
719732
}
720733

@@ -817,16 +830,16 @@ import (
817830
metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt)
818831

819832
// List of ReplicaSets.
820-
// More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller
833+
// More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset
821834
items: [...#ReplicaSet] @go(Items,[]ReplicaSet) @protobuf(2,bytes,rep)
822835
}
823836

824837
// ReplicaSetSpec is the specification of a ReplicaSet.
825838
#ReplicaSetSpec: {
826-
// Replicas is the number of desired replicas.
839+
// Replicas is the number of desired pods.
827840
// This is a pointer to distinguish between explicit zero and unspecified.
828841
// Defaults to 1.
829-
// More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller
842+
// More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset
830843
// +optional
831844
replicas?: null | int32 @go(Replicas,*int32) @protobuf(1,varint,opt)
832845

@@ -844,29 +857,36 @@ import (
844857

845858
// Template is the object that describes the pod that will be created if
846859
// insufficient replicas are detected.
847-
// More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template
860+
// More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset/#pod-template
848861
// +optional
849862
template?: v1.#PodTemplateSpec @go(Template) @protobuf(3,bytes,opt)
850863
}
851864

852865
// ReplicaSetStatus represents the current status of a ReplicaSet.
853866
#ReplicaSetStatus: {
854-
// Replicas is the most recently observed number of replicas.
855-
// More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller
867+
// Replicas is the most recently observed number of non-terminating pods.
868+
// More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset
856869
replicas: int32 @go(Replicas) @protobuf(1,varint,opt)
857870

858-
// The number of pods that have labels matching the labels of the pod template of the replicaset.
871+
// The number of non-terminating pods that have labels matching the labels of the pod template of the replicaset.
859872
// +optional
860873
fullyLabeledReplicas?: int32 @go(FullyLabeledReplicas) @protobuf(2,varint,opt)
861874

862-
// readyReplicas is the number of pods targeted by this ReplicaSet with a Ready Condition.
875+
// The number of non-terminating pods targeted by this ReplicaSet with a Ready Condition.
863876
// +optional
864877
readyReplicas?: int32 @go(ReadyReplicas) @protobuf(4,varint,opt)
865878

866-
// The number of available replicas (ready for at least minReadySeconds) for this replica set.
879+
// The number of available non-terminating pods (ready for at least minReadySeconds) for this replica set.
867880
// +optional
868881
availableReplicas?: int32 @go(AvailableReplicas) @protobuf(5,varint,opt)
869882

883+
// The number of terminating pods for this replica set. Terminating pods have a non-null .metadata.deletionTimestamp
884+
// and have not yet reached the Failed or Succeeded .status.phase.
885+
//
886+
// This is an alpha field. Enable DeploymentReplicaSetTerminatingReplicas to be able to use this field.
887+
// +optional
888+
terminatingReplicas?: null | int32 @go(TerminatingReplicas,*int32) @protobuf(7,varint,opt)
889+
870890
// ObservedGeneration reflects the generation of the most recently observed ReplicaSet.
871891
// +optional
872892
observedGeneration?: int64 @go(ObservedGeneration) @protobuf(3,varint,opt)
@@ -875,6 +895,8 @@ import (
875895
// +optional
876896
// +patchMergeKey=type
877897
// +patchStrategy=merge
898+
// +listType=map
899+
// +listMapKey=type
878900
conditions?: [...#ReplicaSetCondition] @go(Conditions,[]ReplicaSetCondition) @protobuf(6,bytes,rep)
879901
}
880902

0 commit comments

Comments
 (0)