this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

doc/tutorial/kubernetes: update k8s version

Change-Id: I54f13715bb8c7f0c67a3bec85f57543ed27f22d0
Reviewed-on: https://cue-review.googlesource.com/c/cue/+/9941
Reviewed-by: CUE cueckoo <cueckoo@gmail.com>
Reviewed-by: Marcel van Lohuizen <mpvl@golang.org>

+213 -50
+30 -8
doc/tutorial/kubernetes/quick/cue.mod/gen/k8s.io/api/apps/v1/types_go_gen.cue
··· 486 486 // The maximum number of DaemonSet pods that can be unavailable during the 487 487 // update. Value can be an absolute number (ex: 5) or a percentage of total 488 488 // number of DaemonSet pods at the start of the update (ex: 10%). Absolute 489 - // number is calculated from percentage by rounding up. 490 - // This cannot be 0. 489 + // number is calculated from percentage by rounding down to a minimum of one. 490 + // This cannot be 0 if MaxSurge is 0 491 491 // Default value is 1. 492 492 // Example: when this is set to 30%, at most 30% of the total number of nodes 493 493 // that should be running the daemon pod (i.e. status.desiredNumberScheduled) 494 - // can have their pods stopped for an update at any given 495 - // time. The update starts by stopping at most 30% of those DaemonSet pods 496 - // and then brings up new DaemonSet pods in their place. Once the new pods 497 - // are available, it then proceeds onto other DaemonSet pods, thus ensuring 498 - // that at least 70% of original number of DaemonSet pods are available at 499 - // all times during the update. 494 + // can have their pods stopped for an update at any given time. The update 495 + // starts by stopping at most 30% of those DaemonSet pods and then brings 496 + // up new DaemonSet pods in their place. Once the new pods are available, 497 + // it then proceeds onto other DaemonSet pods, thus ensuring that at least 498 + // 70% of original number of DaemonSet pods are available at all times during 499 + // the update. 500 500 // +optional 501 501 maxUnavailable?: null | intstr.#IntOrString @go(MaxUnavailable,*intstr.IntOrString) @protobuf(1,bytes,opt) 502 + 503 + // The maximum number of nodes with an existing available DaemonSet pod that 504 + // can have an updated DaemonSet pod during during an update. 505 + // Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). 506 + // This can not be 0 if MaxUnavailable is 0. 507 + // Absolute number is calculated from percentage by rounding up to a minimum of 1. 508 + // Default value is 0. 509 + // Example: when this is set to 30%, at most 30% of the total number of nodes 510 + // that should be running the daemon pod (i.e. status.desiredNumberScheduled) 511 + // can have their a new pod created before the old pod is marked as deleted. 512 + // The update starts by launching new pods on 30% of nodes. Once an updated 513 + // pod is available (Ready for at least minReadySeconds) the old DaemonSet pod 514 + // on that node is marked deleted. If the old pod becomes unavailable for any 515 + // reason (Ready transitions to false, is evicted, or is drained) an updated 516 + // pod is immediatedly created on that node without considering surge limits. 517 + // Allowing surge implies the possibility that the resources consumed by the 518 + // daemonset on any given node can double if the readiness check fails, and 519 + // so resource intensive daemonsets should take into account that they may 520 + // cause evictions during disruption. 521 + // This is an alpha field and requires enabling DaemonSetUpdateSurge feature gate. 522 + // +optional 523 + maxSurge?: null | intstr.#IntOrString @go(MaxSurge,*intstr.IntOrString) @protobuf(2,bytes,opt) 502 524 } 503 525 504 526 // DaemonSetSpec is the specification of a daemon set.
+23
doc/tutorial/kubernetes/quick/cue.mod/gen/k8s.io/api/core/v1/annotation_key_constants_go_gen.cue
··· 109 109 // https://github.com/kubernetes/community/blob/master/sig-scalability/slos/network_programming_latency.md 110 110 #EndpointsLastChangeTriggerTime: "endpoints.kubernetes.io/last-change-trigger-time" 111 111 112 + // EndpointsOverCapacity will be set on an Endpoints resource when it 113 + // exceeds the maximum capacity of 1000 addresses. Inititially the Endpoints 114 + // controller will set this annotation with a value of "warning". In a 115 + // future release, the controller may set this annotation with a value of 116 + // "truncated" to indicate that any addresses exceeding the limit of 1000 117 + // have been truncated from the Endpoints resource. 118 + #EndpointsOverCapacity: "endpoints.kubernetes.io/over-capacity" 119 + 112 120 // MigratedPluginsAnnotationKey is the annotation key, set for CSINode objects, that is a comma-separated 113 121 // list of in-tree plugins that will be serviced by the CSI backend on the Node represented by CSINode. 114 122 // This annotation is used by the Attach Detach Controller to determine whether to use the in-tree or 115 123 // CSI Backend for a volume plugin on a specific node. 116 124 #MigratedPluginsAnnotationKey: "storage.alpha.kubernetes.io/migrated-plugins" 125 + 126 + // PodDeletionCost can be used to set to an int32 that represent the cost of deleting 127 + // a pod compared to other pods belonging to the same ReplicaSet. Pods with lower 128 + // deletion cost are preferred to be deleted before pods with higher deletion cost. 129 + // Note that this is honored on a best-effort basis, and so it does not offer guarantees on 130 + // pod deletion order. 131 + // The implicit deletion cost for pods that don't set the annotation is 0, negative values are permitted. 132 + // 133 + // This annotation is alpha-level and is only honored when PodDeletionCost feature is enabled. 134 + #PodDeletionCost: "controller.kubernetes.io/pod-deletion-cost" 135 + 136 + // AnnotationTopologyAwareHints can be used to enable or disable Topology 137 + // Aware Hints for a Service. This may be set to "Auto" or "Disabled". Any 138 + // other value is treated as "Disabled". 139 + #AnnotationTopologyAwareHints: "service.kubernetes.io/topology-aware-hints"
+88 -22
doc/tutorial/kubernetes/quick/cue.mod/gen/k8s.io/api/core/v1/types_go_gen.cue
··· 171 171 // +optional 172 172 csi?: null | #CSIVolumeSource @go(CSI,*CSIVolumeSource) @protobuf(28,bytes,opt) 173 173 174 - // Ephemeral represents a volume that is handled by a cluster storage driver (Alpha feature). 174 + // Ephemeral represents a volume that is handled by a cluster storage driver. 175 175 // The volume's lifecycle is tied to the pod that defines it - it will be created before the pod starts, 176 176 // and deleted when the pod is removed. 177 177 // ··· 195 195 // 196 196 // A pod can use both types of ephemeral volumes and 197 197 // persistent volumes at the same time. 198 + // 199 + // This is a beta feature and only available when the GenericEphemeralVolume 200 + // feature gate is enabled. 198 201 // 199 202 // +optional 200 203 ephemeral?: null | #EphemeralVolumeSource @go(Ephemeral,*EphemeralVolumeSource) @protobuf(29,bytes,opt) ··· 2033 2036 // 2034 2037 // Required, must not be nil. 2035 2038 volumeClaimTemplate?: null | #PersistentVolumeClaimTemplate @go(VolumeClaimTemplate,*PersistentVolumeClaimTemplate) @protobuf(1,bytes,opt) 2036 - 2037 - // Specifies a read-only configuration for the volume. 2038 - // Defaults to false (read/write). 2039 - // +optional 2040 - readOnly?: bool @go(ReadOnly) @protobuf(2,varint,opt) 2041 2039 } 2042 2040 2043 2041 // PersistentVolumeClaimTemplate is used to produce ··· 2392 2390 // Defaults to 3. Minimum value is 1. 2393 2391 // +optional 2394 2392 failureThreshold?: int32 @go(FailureThreshold) @protobuf(6,varint,opt) 2393 + 2394 + // Optional duration in seconds the pod needs to terminate gracefully upon probe failure. 2395 + // The grace period is the duration in seconds after the processes running in the pod are sent 2396 + // a termination signal and the time when the processes are forcibly halted with a kill signal. 2397 + // Set this value longer than the expected cleanup time for your process. 2398 + // If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this 2399 + // value overrides the value provided by the pod spec. 2400 + // Value must be non-negative integer. The value zero indicates stop immediately via 2401 + // the kill signal (no opportunity to shut down). 2402 + // This is an alpha field and requires enabling ProbeTerminationGracePeriod feature gate. 2403 + // +optional 2404 + terminationGracePeriodSeconds?: null | int64 @go(TerminationGracePeriodSeconds,*int64) @protobuf(7,varint,opt) 2395 2405 } 2396 2406 2397 2407 // PullPolicy describes a policy for if/when to pull a container image ··· 2457 2467 // ResourceRequirements describes the compute resource requirements. 2458 2468 #ResourceRequirements: { 2459 2469 // Limits describes the maximum amount of compute resources allowed. 2460 - // More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ 2470 + // More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ 2461 2471 // +optional 2462 2472 limits?: #ResourceList @go(Limits) @protobuf(1,bytes,rep,casttype=ResourceList,castkey=ResourceName) 2463 2473 2464 2474 // Requests describes the minimum amount of compute resources required. 2465 2475 // If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, 2466 2476 // otherwise to an implementation-defined value. 2467 - // More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ 2477 + // More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ 2468 2478 // +optional 2469 2479 requests?: #ResourceList @go(Requests) @protobuf(2,bytes,rep,casttype=ResourceList,castkey=ResourceName) 2470 2480 } ··· 2548 2558 2549 2559 // Compute Resources required by this container. 2550 2560 // Cannot be updated. 2551 - // More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ 2561 + // More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ 2552 2562 // +optional 2553 2563 resources?: #ResourceRequirements @go(Resources) @protobuf(8,bytes,opt) 2554 2564 ··· 3112 3122 // +optional 3113 3123 labelSelector?: null | metav1.#LabelSelector @go(LabelSelector,*metav1.LabelSelector) @protobuf(1,bytes,opt) 3114 3124 3115 - // namespaces specifies which namespaces the labelSelector applies to (matches against); 3116 - // null or empty list means "this pod's namespace" 3125 + // namespaces specifies a static list of namespace names that the term applies to. 3126 + // The term is applied to the union of the namespaces listed in this field 3127 + // and the ones selected by namespaceSelector. 3128 + // null or empty namespaces list and null namespaceSelector means "this pod's namespace" 3117 3129 // +optional 3118 3130 namespaces?: [...string] @go(Namespaces,[]string) @protobuf(2,bytes,rep) 3119 3131 ··· 3123 3135 // selected pods is running. 3124 3136 // Empty topologyKey is not allowed. 3125 3137 topologyKey: string @go(TopologyKey) @protobuf(3,bytes,opt) 3138 + 3139 + // A label query over the set of namespaces that the term applies to. 3140 + // The term is applied to the union of the namespaces selected by this field 3141 + // and the ones listed in the namespaces field. 3142 + // null selector and null or empty namespaces list means "this pod's namespace". 3143 + // An empty selector ({}) matches all namespaces. 3144 + // This field is alpha-level and is only honored when PodAffinityNamespaceSelector feature is enabled. 3145 + // +optional 3146 + namespaceSelector?: null | metav1.#LabelSelector @go(NamespaceSelector,*metav1.LabelSelector) @protobuf(4,bytes,opt) 3126 3147 } 3127 3148 3128 3149 // Node affinity is a group of node affinity scheduling rules. ··· 3302 3323 restartPolicy?: #RestartPolicy @go(RestartPolicy) @protobuf(3,bytes,opt,casttype=RestartPolicy) 3303 3324 3304 3325 // Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. 3305 - // Value must be non-negative integer. The value zero indicates delete immediately. 3326 + // Value must be non-negative integer. The value zero indicates stop immediately via 3327 + // the kill signal (no opportunity to shut down). 3306 3328 // If this value is nil, the default grace period will be used instead. 3307 3329 // The grace period is the duration in seconds after the processes running in the pod are sent 3308 3330 // a termination signal and the time when the processes are forcibly halted with a kill signal. ··· 4339 4361 // record, with no exposing or proxying of any pods involved. 4340 4362 #ServiceTypeExternalName: #ServiceType & "ExternalName" 4341 4363 4364 + // ServiceInternalTrafficPolicyType describes the type of traffic routing for 4365 + // internal traffic 4366 + #ServiceInternalTrafficPolicyType: string // #enumServiceInternalTrafficPolicyType 4367 + 4368 + #enumServiceInternalTrafficPolicyType: 4369 + #ServiceInternalTrafficPolicyCluster | 4370 + #ServiceInternalTrafficPolicyLocal 4371 + 4372 + // ServiceInternalTrafficPolicyCluster routes traffic to all endpoints 4373 + #ServiceInternalTrafficPolicyCluster: #ServiceInternalTrafficPolicyType & "Cluster" 4374 + 4375 + // ServiceInternalTrafficPolicyLocal only routes to node-local 4376 + // endpoints, otherwise drops the traffic 4377 + #ServiceInternalTrafficPolicyLocal: #ServiceInternalTrafficPolicyType & "Local" 4378 + 4342 4379 // Service External Traffic Policy Type string 4343 4380 #ServiceExternalTrafficPolicyType: string // #enumServiceExternalTrafficPolicyType 4344 4381 ··· 4566 4603 // externalName is the external reference that discovery mechanisms will 4567 4604 // return as an alias for this service (e.g. a DNS CNAME record). No 4568 4605 // proxying will be involved. Must be a lowercase RFC-1123 hostname 4569 - // (https://tools.ietf.org/html/rfc1123) and requires Type to be 4606 + // (https://tools.ietf.org/html/rfc1123) and requires `type` to be "ExternalName". 4570 4607 // +optional 4571 4608 externalName?: string @go(ExternalName) @protobuf(10,bytes,opt) 4572 4609 ··· 4619 4656 // value, if used, only makes sense as the last value in the list. 4620 4657 // If this is not specified or empty, no topology constraints will be applied. 4621 4658 // This field is alpha-level and is only honored by servers that enable the ServiceTopology feature. 4659 + // This field is deprecated and will be removed in a future version. 4622 4660 // +optional 4623 4661 topologyKeys?: [...string] @go(TopologyKeys,[]string) @protobuf(16,bytes,opt) 4624 4662 ··· 4663 4701 // This field is alpha-level and is only honored by servers that enable the ServiceLBNodePortControl feature. 4664 4702 // +optional 4665 4703 allocateLoadBalancerNodePorts?: null | bool @go(AllocateLoadBalancerNodePorts,*bool) @protobuf(20,bytes,opt) 4704 + 4705 + // loadBalancerClass is the class of the load balancer implementation this Service belongs to. 4706 + // If specified, the value of this field must be a label-style identifier, with an optional prefix, 4707 + // e.g. "internal-vip" or "example.com/internal-vip". Unprefixed names are reserved for end-users. 4708 + // This field can only be set when the Service type is 'LoadBalancer'. If not set, the default load 4709 + // balancer implementation is used, today this is typically done through the cloud provider integration, 4710 + // but should apply for any default implementation. If set, it is assumed that a load balancer 4711 + // implementation is watching for Services with a matching class. Any default load balancer 4712 + // implementation (e.g. cloud providers) should ignore Services that set this field. 4713 + // This field can only be set when creating or updating a Service to type 'LoadBalancer'. 4714 + // Once set, it can not be changed. This field will be wiped when a service is updated to a non 'LoadBalancer' type. 4715 + // +featureGate=LoadBalancerClass 4716 + // +optional 4717 + loadBalancerClass?: null | string @go(LoadBalancerClass,*string) @protobuf(21,bytes,opt) 4718 + 4719 + // InternalTrafficPolicy specifies if the cluster internal traffic 4720 + // should be routed to all endpoints or node-local endpoints only. 4721 + // "Cluster" routes internal traffic to a Service to all endpoints. 4722 + // "Local" routes traffic to node-local endpoints only, traffic is 4723 + // dropped if no node-local endpoints are ready. 4724 + // The default value is "Cluster". 4725 + // +featureGate=ServiceInternalTrafficPolicy 4726 + // +optional 4727 + internalTrafficPolicy?: null | #ServiceInternalTrafficPolicyType @go(InternalTrafficPolicy,*ServiceInternalTrafficPolicyType) @protobuf(22,bytes,opt) 4666 4728 } 4667 4729 4668 4730 // ServicePort contains information on service's port. ··· 4677 4739 4678 4740 // The IP protocol for this port. Supports "TCP", "UDP", and "SCTP". 4679 4741 // Default is TCP. 4742 + // +default="TCP" 4680 4743 // +optional 4681 4744 protocol?: #Protocol @go(Protocol) @protobuf(2,bytes,opt,casttype=Protocol) 4682 4745 ··· 6007 6070 metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) 6008 6071 6009 6072 // Items is a list of LimitRange objects. 6010 - // More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ 6073 + // More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ 6011 6074 items: [...#LimitRange] @go(Items,[]LimitRange) @protobuf(2,bytes,rep) 6012 6075 } 6013 6076 ··· 6074 6137 #ResourceQuotaScopeNotTerminating | 6075 6138 #ResourceQuotaScopeBestEffort | 6076 6139 #ResourceQuotaScopeNotBestEffort | 6077 - #ResourceQuotaScopePriorityClass 6140 + #ResourceQuotaScopePriorityClass | 6141 + #ResourceQuotaScopeCrossNamespacePodAffinity 6078 6142 6079 - // Match all pod objects where spec.activeDeadlineSeconds 6143 + // Match all pod objects where spec.activeDeadlineSeconds >=0 6080 6144 #ResourceQuotaScopeTerminating: #ResourceQuotaScope & "Terminating" 6081 6145 6082 - // Match all pod objects where !spec.activeDeadlineSeconds 6146 + // Match all pod objects where spec.activeDeadlineSeconds is nil 6083 6147 #ResourceQuotaScopeNotTerminating: #ResourceQuotaScope & "NotTerminating" 6084 6148 6085 6149 // Match all pod objects that have best effort quality of service ··· 6091 6155 // Match all pod objects that have priority class mentioned 6092 6156 #ResourceQuotaScopePriorityClass: #ResourceQuotaScope & "PriorityClass" 6093 6157 6158 + // Match all pod objects that have cross-namespace pod (anti)affinity mentioned. 6159 + // This is an alpha feature enabled by the PodAffinityNamespaceSelector feature flag. 6160 + #ResourceQuotaScopeCrossNamespacePodAffinity: #ResourceQuotaScope & "CrossNamespacePodAffinity" 6161 + 6094 6162 // ResourceQuotaSpec defines the desired hard limits to enforce for Quota. 6095 6163 #ResourceQuotaSpec: { 6096 6164 // hard is the set of desired hard limits for each named resource. ··· 6211 6279 // be updated (only object metadata can be modified). 6212 6280 // If not set to true, the field can be modified at any time. 6213 6281 // Defaulted to nil. 6214 - // This is a beta field enabled by ImmutableEphemeralVolumes feature gate. 6215 6282 // +optional 6216 6283 immutable?: null | bool @go(Immutable,*bool) @protobuf(5,varint,opt) 6217 6284 ··· 6223 6290 data?: {[string]: bytes} @go(Data,map[string][]byte) @protobuf(2,bytes,rep) 6224 6291 6225 6292 // stringData allows specifying non-binary secret data in string form. 6226 - // It is provided as a write-only convenience method. 6293 + // It is provided as a write-only input field for convenience. 6227 6294 // All keys and values are merged into the data field on write, overwriting any existing values. 6228 - // It is never output when reading from the API. 6295 + // The stringData field is never output when reading from the API. 6229 6296 // +k8s:conversion-gen=false 6230 6297 // +optional 6231 6298 stringData?: {[string]: string} @go(StringData,map[string]string) @protobuf(4,bytes,rep) ··· 6366 6433 // be updated (only object metadata can be modified). 6367 6434 // If not set to true, the field can be modified at any time. 6368 6435 // Defaulted to nil. 6369 - // This is a beta field enabled by ImmutableEphemeralVolumes feature gate. 6370 6436 // +optional 6371 6437 immutable?: null | bool @go(Immutable,*bool) @protobuf(4,varint,opt) 6372 6438 ··· 6665 6731 data: bytes @go(Data,[]byte) @protobuf(3,bytes,opt) 6666 6732 } 6667 6733 6668 - // "default-scheduler" is the name of default scheduler. 6734 + // DefaultSchedulerName defines the name of default scheduler. 6669 6735 #DefaultSchedulerName: "default-scheduler" 6670 6736 6671 6737 // RequiredDuringScheduling affinity is not symmetric, but there is an implicit PreferredDuringScheduling affinity rule
+19 -4
doc/tutorial/kubernetes/quick/cue.mod/gen/k8s.io/api/core/v1/well_known_labels_go_gen.cue
··· 4 4 5 5 package v1 6 6 7 - #LabelHostname: "kubernetes.io/hostname" 7 + #LabelHostname: "kubernetes.io/hostname" 8 + #LabelTopologyZone: "topology.kubernetes.io/zone" 9 + #LabelTopologyRegion: "topology.kubernetes.io/region" 10 + 11 + // These label have been deprecated since 1.17, but will be supported for 12 + // the foreseeable future, to accommodate things like long-lived PVs that 13 + // use them. New users should prefer the "topology.kubernetes.io/*" 14 + // equivalents. 8 15 #LabelFailureDomainBetaZone: "failure-domain.beta.kubernetes.io/zone" 9 16 #LabelFailureDomainBetaRegion: "failure-domain.beta.kubernetes.io/region" 10 - #LabelTopologyZone: "topology.kubernetes.io/zone" 11 - #LabelTopologyRegion: "topology.kubernetes.io/region" 12 17 13 - // Legacy names for compat. 18 + // Retained for compat when vendored. Do not use these consts in new code. 14 19 #LabelZoneFailureDomain: "failure-domain.beta.kubernetes.io/zone" 15 20 #LabelZoneRegion: "failure-domain.beta.kubernetes.io/region" 16 21 #LabelZoneFailureDomainStable: "topology.kubernetes.io/zone" ··· 38 43 // controllers and kube-proxy to check if the Endpoint objects should be replicated when 39 44 // using Headless Services 40 45 #IsHeadlessService: "service.kubernetes.io/headless" 46 + 47 + // LabelNodeExcludeBalancers specifies that the node should not be considered as a target 48 + // for external load-balancers which use nodes as a second hop (e.g. many cloud LBs which only 49 + // understand nodes). For services that use externalTrafficPolicy=Local, this may mean that 50 + // any backends on excluded nodes are not reachable by those external load-balancers. 51 + // Implementations of this exclusion may vary based on provider. 52 + #LabelNodeExcludeBalancers: "node.kubernetes.io/exclude-from-external-load-balancers" 53 + 54 + // LabelMetadataName is the label name which, in-tree, is used to automatically label namespaces, so they can be selected easily by tools which require definitive labels 55 + #LabelMetadataName: "kubernetes.io/metadata.name"
+2 -2
doc/tutorial/kubernetes/quick/cue.mod/gen/k8s.io/api/core/v1/well_known_taints_go_gen.cue
··· 14 14 #TaintNodeUnreachable: "node.kubernetes.io/unreachable" 15 15 16 16 // TaintNodeUnschedulable will be added when node becomes unschedulable 17 - // and removed when node becomes scheduable. 17 + // and removed when node becomes schedulable. 18 18 #TaintNodeUnschedulable: "node.kubernetes.io/unschedulable" 19 19 20 20 // TaintNodeMemoryPressure will be added when node has memory pressure ··· 30 30 #TaintNodeNetworkUnavailable: "node.kubernetes.io/network-unavailable" 31 31 32 32 // TaintNodePIDPressure will be added when node has pid pressure 33 - // and removed when node has enough disk. 33 + // and removed when node has enough pid. 34 34 #TaintNodePIDPressure: "node.kubernetes.io/pid-pressure"
+12
doc/tutorial/kubernetes/quick/cue.mod/gen/k8s.io/apimachinery/pkg/api/resource/amount_go_gen.cue
··· 20 20 #Peta | 21 21 #Exa 22 22 23 + #values_Scale: { 24 + Nano: #Nano 25 + Micro: #Micro 26 + Milli: #Milli 27 + Kilo: #Kilo 28 + Mega: #Mega 29 + Giga: #Giga 30 + Tera: #Tera 31 + Peta: #Peta 32 + Exa: #Exa 33 + } 34 + 23 35 #Nano: #Scale & -9 24 36 #Micro: #Scale & -6 25 37 #Milli: #Scale & -3
+29 -14
doc/tutorial/kubernetes/quick/cue.mod/gen/k8s.io/apimachinery/pkg/apis/meta/v1/types_go_gen.cue
··· 84 84 remainingItemCount?: null | int64 @go(RemainingItemCount,*int64) @protobuf(4,bytes,opt) 85 85 } 86 86 87 + #ObjectNameField: "metadata.name" 88 + 87 89 #FinalizerOrphanDependents: "orphan" 88 90 #FinalizerDeleteDependents: "foregroundDeletion" 89 91 ··· 421 423 // provided. 422 424 #ResourceVersionMatchExact: #ResourceVersionMatch & "Exact" 423 425 424 - // ExportOptions is the query options to the standard REST get call. 425 - // Deprecated. Planned for removal in 1.18. 426 - #ExportOptions: { 427 - #TypeMeta 428 - 429 - // Should this value be exported. Export strips fields that a user can not specify. 430 - // Deprecated. Planned for removal in 1.18. 431 - export: bool @go(Export) @protobuf(1,varint,opt) 432 - 433 - // Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. 434 - // Deprecated. Planned for removal in 1.18. 435 - exact: bool @go(Exact) @protobuf(2,varint,opt) 436 - } 437 - 438 426 // GetOptions is the standard query options to the standard REST get call. 439 427 #GetOptions: { 440 428 #TypeMeta ··· 567 555 // types (JsonPatch, MergePatch, StrategicMergePatch). 568 556 // +optional 569 557 fieldManager?: string @go(FieldManager) @protobuf(3,bytes) 558 + } 559 + 560 + // ApplyOptions may be provided when applying an API object. 561 + // FieldManager is required for apply requests. 562 + // ApplyOptions is equivalent to PatchOptions. It is provided as a convenience with documentation 563 + // that speaks specifically to how the options fields relate to apply. 564 + #ApplyOptions: { 565 + #TypeMeta 566 + 567 + // When present, indicates that modifications should not be 568 + // persisted. An invalid or unrecognized dryRun directive will 569 + // result in an error response and no further processing of the 570 + // request. Valid values are: 571 + // - All: all dry run stages will be processed 572 + // +optional 573 + dryRun?: [...string] @go(DryRun,[]string) @protobuf(1,bytes,rep) 574 + 575 + // Force is going to "force" Apply requests. It means user will 576 + // re-acquire conflicting fields owned by other people. 577 + force: bool @go(Force) @protobuf(2,varint,opt) 578 + 579 + // fieldManager is a name associated with the actor or entity 580 + // that is making these changes. The value must be less than or 581 + // 128 characters long, and only contain printable characters, 582 + // as defined by https://golang.org/pkg/unicode/#IsPrint. This 583 + // field is required. 584 + fieldManager: string @go(FieldManager) @protobuf(3,bytes) 570 585 } 571 586 572 587 // UpdateOptions may be provided when updating an API object.
+5
doc/tutorial/kubernetes/quick/cue.mod/gen/k8s.io/apimachinery/pkg/util/intstr/intstr_go_gen.cue
··· 22 22 #Int | 23 23 #String 24 24 25 + #values_Type: { 26 + Int: #Int 27 + String: #String 28 + } 29 + 25 30 #Int: #Type & 0 26 31 #String: #Type & 1
+5
doc/tutorial/kubernetes/quick/cue.mod/gen/k8s.io/apimachinery/pkg/watch/mux_go_gen.cue
··· 12 12 #WaitIfChannelFull | 13 13 #DropIfChannelFull 14 14 15 + #values_FullChannelBehavior: { 16 + WaitIfChannelFull: #WaitIfChannelFull 17 + DropIfChannelFull: #DropIfChannelFull 18 + } 19 + 15 20 #WaitIfChannelFull: #FullChannelBehavior & 0 16 21 #DropIfChannelFull: #FullChannelBehavior & 1 17 22