@overkube/kube-types 0.0.0 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of @overkube/kube-types might be problematic. Click here for more details.
- package/APACHE-2.0.txt +55 -0
- package/LICENSE +21 -0
- package/NOTICE +7 -0
- package/README.md +13 -1
- package/dist/gen/admissionregistration/v1.d.ts +888 -0
- package/dist/gen/admissionregistration/v1.d.ts.map +1 -0
- package/dist/gen/admissionregistration/v1.js +4 -0
- package/dist/gen/admissionregistration/v1.js.map +1 -0
- package/dist/gen/apiextensions/v1.d.ts +562 -0
- package/dist/gen/apiextensions/v1.d.ts.map +1 -0
- package/dist/gen/apiextensions/v1.js +4 -0
- package/dist/gen/apiextensions/v1.js.map +1 -0
- package/dist/gen/apiregistration/v1.d.ts +132 -0
- package/dist/gen/apiregistration/v1.d.ts.map +1 -0
- package/dist/gen/apiregistration/v1.js +4 -0
- package/dist/gen/apiregistration/v1.js.map +1 -0
- package/dist/gen/apps/v1.d.ts +760 -0
- package/dist/gen/apps/v1.d.ts.map +1 -0
- package/dist/gen/apps/v1.js +4 -0
- package/dist/gen/apps/v1.js.map +1 -0
- package/dist/gen/authentication/v1.d.ts +188 -0
- package/dist/gen/authentication/v1.d.ts.map +1 -0
- package/dist/gen/authentication/v1.js +4 -0
- package/dist/gen/authentication/v1.js.map +1 -0
- package/dist/gen/authorization/v1.d.ts +310 -0
- package/dist/gen/authorization/v1.d.ts.map +1 -0
- package/dist/gen/authorization/v1.js +4 -0
- package/dist/gen/authorization/v1.js.map +1 -0
- package/dist/gen/autoscaling/v1.d.ts +158 -0
- package/dist/gen/autoscaling/v1.d.ts.map +1 -0
- package/dist/gen/autoscaling/v1.js +4 -0
- package/dist/gen/autoscaling/v1.js.map +1 -0
- package/dist/gen/autoscaling/v2.d.ts +461 -0
- package/dist/gen/autoscaling/v2.d.ts.map +1 -0
- package/dist/gen/autoscaling/v2.js +4 -0
- package/dist/gen/autoscaling/v2.js.map +1 -0
- package/dist/gen/batch/v1.d.ts +469 -0
- package/dist/gen/batch/v1.d.ts.map +1 -0
- package/dist/gen/batch/v1.js +4 -0
- package/dist/gen/batch/v1.js.map +1 -0
- package/dist/gen/certificates/v1.d.ts +202 -0
- package/dist/gen/certificates/v1.d.ts.map +1 -0
- package/dist/gen/certificates/v1.js +4 -0
- package/dist/gen/certificates/v1.js.map +1 -0
- package/dist/gen/coordination/v1.d.ts +77 -0
- package/dist/gen/coordination/v1.d.ts.map +1 -0
- package/dist/gen/coordination/v1.js +4 -0
- package/dist/gen/coordination/v1.js.map +1 -0
- package/dist/gen/core/v1.d.ts +5809 -0
- package/dist/gen/core/v1.d.ts.map +1 -0
- package/dist/gen/core/v1.js +4 -0
- package/dist/gen/core/v1.js.map +1 -0
- package/dist/gen/discovery/v1.d.ts +178 -0
- package/dist/gen/discovery/v1.d.ts.map +1 -0
- package/dist/gen/discovery/v1.js +4 -0
- package/dist/gen/discovery/v1.js.map +1 -0
- package/dist/gen/events/v1.d.ts +110 -0
- package/dist/gen/events/v1.d.ts.map +1 -0
- package/dist/gen/events/v1.js +4 -0
- package/dist/gen/events/v1.js.map +1 -0
- package/dist/gen/flowcontrol/v1.d.ts +417 -0
- package/dist/gen/flowcontrol/v1.d.ts.map +1 -0
- package/dist/gen/flowcontrol/v1.js +4 -0
- package/dist/gen/flowcontrol/v1.js.map +1 -0
- package/dist/gen/kinds.d.ts +889 -0
- package/dist/gen/kinds.d.ts.map +1 -0
- package/dist/gen/kinds.js +791 -0
- package/dist/gen/kinds.js.map +1 -0
- package/dist/gen/meta/v1.d.ts +476 -0
- package/dist/gen/meta/v1.d.ts.map +1 -0
- package/dist/gen/meta/v1.js +4 -0
- package/dist/gen/meta/v1.js.map +1 -0
- package/dist/gen/networking/v1.d.ts +601 -0
- package/dist/gen/networking/v1.d.ts.map +1 -0
- package/dist/gen/networking/v1.js +4 -0
- package/dist/gen/networking/v1.js.map +1 -0
- package/dist/gen/node/v1.d.ts +76 -0
- package/dist/gen/node/v1.d.ts.map +1 -0
- package/dist/gen/node/v1.js +4 -0
- package/dist/gen/node/v1.js.map +1 -0
- package/dist/gen/policy/v1.d.ts +143 -0
- package/dist/gen/policy/v1.d.ts.map +1 -0
- package/dist/gen/policy/v1.js +4 -0
- package/dist/gen/policy/v1.js.map +1 -0
- package/dist/gen/rbac/v1.d.ts +254 -0
- package/dist/gen/rbac/v1.d.ts.map +1 -0
- package/dist/gen/rbac/v1.js +4 -0
- package/dist/gen/rbac/v1.js.map +1 -0
- package/dist/gen/resource/v1.d.ts +1175 -0
- package/dist/gen/resource/v1.d.ts.map +1 -0
- package/dist/gen/resource/v1.js +4 -0
- package/dist/gen/resource/v1.js.map +1 -0
- package/dist/gen/scheduling/v1.d.ts +60 -0
- package/dist/gen/scheduling/v1.d.ts.map +1 -0
- package/dist/gen/scheduling/v1.js +4 -0
- package/dist/gen/scheduling/v1.js.map +1 -0
- package/dist/gen/storage/v1.d.ts +552 -0
- package/dist/gen/storage/v1.d.ts.map +1 -0
- package/dist/gen/storage/v1.js +4 -0
- package/dist/gen/storage/v1.js.map +1 -0
- package/dist/index.d.ts +19 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +16 -0
- package/dist/index.js.map +1 -0
- package/dist/object.d.ts +33 -0
- package/dist/object.d.ts.map +1 -0
- package/dist/object.js +5 -0
- package/dist/object.js.map +1 -0
- package/package.json +34 -3
|
@@ -0,0 +1,552 @@
|
|
|
1
|
+
import type { PersistentVolumeSpec, TopologySelectorTerm } from '../core/v1.js';
|
|
2
|
+
import type { LabelSelector, ListMeta, ObjectMeta, Time } from '../meta/v1.js';
|
|
3
|
+
/**
|
|
4
|
+
* CSIDriver captures information about a Container Storage Interface (CSI) volume driver deployed on the cluster. Kubernetes attach detach controller uses this object to determine whether attach is required. Kubelet uses this object to determine whether pod information needs to be passed on mount. CSIDriver objects are non-namespaced.
|
|
5
|
+
*/
|
|
6
|
+
export interface CSIDriver {
|
|
7
|
+
/**
|
|
8
|
+
* APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
|
|
9
|
+
*/
|
|
10
|
+
apiVersion?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
|
|
13
|
+
*/
|
|
14
|
+
kind?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Standard object metadata. metadata.Name indicates the name of the CSI driver that this object refers to; it MUST be the same name returned by the CSI GetPluginName() call for that driver. The driver name must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), dots (.), and alphanumerics between. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
|
17
|
+
*/
|
|
18
|
+
metadata?: ObjectMeta;
|
|
19
|
+
/**
|
|
20
|
+
* spec represents the specification of the CSI Driver.
|
|
21
|
+
*/
|
|
22
|
+
spec: CSIDriverSpec;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* CSIDriverList is a collection of CSIDriver objects.
|
|
26
|
+
*/
|
|
27
|
+
export interface CSIDriverList {
|
|
28
|
+
/**
|
|
29
|
+
* APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
|
|
30
|
+
*/
|
|
31
|
+
apiVersion?: string;
|
|
32
|
+
/**
|
|
33
|
+
* items is the list of CSIDriver
|
|
34
|
+
*/
|
|
35
|
+
items: CSIDriver[];
|
|
36
|
+
/**
|
|
37
|
+
* Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
|
|
38
|
+
*/
|
|
39
|
+
kind?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
|
42
|
+
*/
|
|
43
|
+
metadata?: ListMeta;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* CSIDriverSpec is the specification of a CSIDriver.
|
|
47
|
+
*/
|
|
48
|
+
export interface CSIDriverSpec {
|
|
49
|
+
/**
|
|
50
|
+
* attachRequired indicates this CSI volume driver requires an attach operation (because it implements the CSI ControllerPublishVolume() method), and that the Kubernetes attach detach controller should call the attach volume interface which checks the volumeattachment status and waits until the volume is attached before proceeding to mounting. The CSI external-attacher coordinates with CSI volume driver and updates the volumeattachment status when the attach operation is complete. If the value is specified to false, the attach operation will be skipped. Otherwise the attach operation will be called.
|
|
51
|
+
*
|
|
52
|
+
* This field is immutable.
|
|
53
|
+
*/
|
|
54
|
+
attachRequired?: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* fsGroupPolicy defines if the underlying volume supports changing ownership and permission of the volume before being mounted. Refer to the specific FSGroupPolicy values for additional details.
|
|
57
|
+
*
|
|
58
|
+
* This field was immutable in Kubernetes < 1.29 and now is mutable.
|
|
59
|
+
*
|
|
60
|
+
* Defaults to ReadWriteOnceWithFSType, which will examine each volume to determine if Kubernetes should modify ownership and permissions of the volume. With the default policy the defined fsGroup will only be applied if a fstype is defined and the volume's access mode contains ReadWriteOnce.
|
|
61
|
+
*/
|
|
62
|
+
fsGroupPolicy?: string;
|
|
63
|
+
/**
|
|
64
|
+
* nodeAllocatableUpdatePeriodSeconds specifies the interval between periodic updates of the CSINode allocatable capacity for this driver. When set, both periodic updates and updates triggered by capacity-related failures are enabled. If not set, no updates occur (neither periodic nor upon detecting capacity-related failures), and the allocatable.count remains static. The minimum allowed value for this field is 10 seconds.
|
|
65
|
+
*
|
|
66
|
+
* This is a beta feature and requires the MutableCSINodeAllocatableCount feature gate to be enabled.
|
|
67
|
+
*
|
|
68
|
+
* This field is mutable.
|
|
69
|
+
*/
|
|
70
|
+
nodeAllocatableUpdatePeriodSeconds?: number;
|
|
71
|
+
/**
|
|
72
|
+
* podInfoOnMount indicates this CSI volume driver requires additional pod information (like podName, podUID, etc.) during mount operations, if set to true. If set to false, pod information will not be passed on mount. Default is false.
|
|
73
|
+
*
|
|
74
|
+
* The CSI driver specifies podInfoOnMount as part of driver deployment. If true, Kubelet will pass pod information as VolumeContext in the CSI NodePublishVolume() calls. The CSI driver is responsible for parsing and validating the information passed in as VolumeContext.
|
|
75
|
+
*
|
|
76
|
+
* The following VolumeContext will be passed if podInfoOnMount is set to true. This list might grow, but the prefix will be used. "csi.storage.k8s.io/pod.name": pod.Name "csi.storage.k8s.io/pod.namespace": pod.Namespace "csi.storage.k8s.io/pod.uid": string(pod.UID) "csi.storage.k8s.io/ephemeral": "true" if the volume is an ephemeral inline volume
|
|
77
|
+
* defined by a CSIVolumeSource, otherwise "false"
|
|
78
|
+
*
|
|
79
|
+
* "csi.storage.k8s.io/ephemeral" is a new feature in Kubernetes 1.16. It is only required for drivers which support both the "Persistent" and "Ephemeral" VolumeLifecycleMode. Other drivers can leave pod info disabled and/or ignore this field. As Kubernetes 1.15 doesn't support this field, drivers can only support one mode when deployed on such a cluster and the deployment determines which mode that is, for example via a command line parameter of the driver.
|
|
80
|
+
*
|
|
81
|
+
* This field was immutable in Kubernetes < 1.29 and now is mutable.
|
|
82
|
+
*/
|
|
83
|
+
podInfoOnMount?: boolean;
|
|
84
|
+
/**
|
|
85
|
+
* requiresRepublish indicates the CSI driver wants `NodePublishVolume` being periodically called to reflect any possible change in the mounted volume. This field defaults to false.
|
|
86
|
+
*
|
|
87
|
+
* Note: After a successful initial NodePublishVolume call, subsequent calls to NodePublishVolume should only update the contents of the volume. New mount points will not be seen by a running container.
|
|
88
|
+
*/
|
|
89
|
+
requiresRepublish?: boolean;
|
|
90
|
+
/**
|
|
91
|
+
* seLinuxMount specifies if the CSI driver supports "-o context" mount option.
|
|
92
|
+
*
|
|
93
|
+
* When "true", the CSI driver must ensure that all volumes provided by this CSI driver can be mounted separately with different `-o context` options. This is typical for storage backends that provide volumes as filesystems on block devices or as independent shared volumes. Kubernetes will call NodeStage / NodePublish with "-o context=xyz" mount option when mounting a ReadWriteOncePod volume used in Pod that has explicitly set SELinux context. In the future, it may be expanded to other volume AccessModes. In any case, Kubernetes will ensure that the volume is mounted only with a single SELinux context.
|
|
94
|
+
*
|
|
95
|
+
* When "false", Kubernetes won't pass any special SELinux mount options to the driver. This is typical for volumes that represent subdirectories of a bigger shared filesystem.
|
|
96
|
+
*
|
|
97
|
+
* Default is "false".
|
|
98
|
+
*/
|
|
99
|
+
seLinuxMount?: boolean;
|
|
100
|
+
/**
|
|
101
|
+
* serviceAccountTokenInSecrets is an opt-in for CSI drivers to indicate that service account tokens should be passed via the Secrets field in NodePublishVolumeRequest instead of the VolumeContext field. The CSI specification provides a dedicated Secrets field for sensitive information like tokens, which is the appropriate mechanism for handling credentials. This addresses security concerns where sensitive tokens were being logged as part of volume context.
|
|
102
|
+
*
|
|
103
|
+
* When "true", kubelet will pass the tokens only in the Secrets field with the key "csi.storage.k8s.io/serviceAccount.tokens". The CSI driver must be updated to read tokens from the Secrets field instead of VolumeContext.
|
|
104
|
+
*
|
|
105
|
+
* When "false" or not set, kubelet will pass the tokens in VolumeContext with the key "csi.storage.k8s.io/serviceAccount.tokens" (existing behavior). This maintains backward compatibility with existing CSI drivers.
|
|
106
|
+
*
|
|
107
|
+
* This field can only be set when TokenRequests is configured. The API server will reject CSIDriver specs that set this field without TokenRequests.
|
|
108
|
+
*
|
|
109
|
+
* Default behavior if unset is to pass tokens in the VolumeContext field.
|
|
110
|
+
*/
|
|
111
|
+
serviceAccountTokenInSecrets?: boolean;
|
|
112
|
+
/**
|
|
113
|
+
* storageCapacity indicates that the CSI volume driver wants pod scheduling to consider the storage capacity that the driver deployment will report by creating CSIStorageCapacity objects with capacity information, if set to true.
|
|
114
|
+
*
|
|
115
|
+
* The check can be enabled immediately when deploying a driver. In that case, provisioning new volumes with late binding will pause until the driver deployment has published some suitable CSIStorageCapacity object.
|
|
116
|
+
*
|
|
117
|
+
* Alternatively, the driver can be deployed with the field unset or false and it can be flipped later when storage capacity information has been published.
|
|
118
|
+
*
|
|
119
|
+
* This field was immutable in Kubernetes <= 1.22 and now is mutable.
|
|
120
|
+
*/
|
|
121
|
+
storageCapacity?: boolean;
|
|
122
|
+
/**
|
|
123
|
+
* tokenRequests indicates the CSI driver needs pods' service account tokens it is mounting volume for to do necessary authentication. Kubelet will pass the tokens in VolumeContext in the CSI NodePublishVolume calls. The CSI driver should parse and validate the following VolumeContext: "csi.storage.k8s.io/serviceAccount.tokens": {
|
|
124
|
+
* "<audience>": {
|
|
125
|
+
* "token": <token>,
|
|
126
|
+
* "expirationTimestamp": <expiration timestamp in RFC3339>,
|
|
127
|
+
* },
|
|
128
|
+
* ...
|
|
129
|
+
* }
|
|
130
|
+
*
|
|
131
|
+
* Note: Audience in each TokenRequest should be different and at most one token is empty string. To receive a new token after expiry, RequiresRepublish can be used to trigger NodePublishVolume periodically.
|
|
132
|
+
*/
|
|
133
|
+
tokenRequests?: TokenRequest[];
|
|
134
|
+
/**
|
|
135
|
+
* volumeLifecycleModes defines what kind of volumes this CSI volume driver supports. The default if the list is empty is "Persistent", which is the usage defined by the CSI specification and implemented in Kubernetes via the usual PV/PVC mechanism.
|
|
136
|
+
*
|
|
137
|
+
* The other mode is "Ephemeral". In this mode, volumes are defined inline inside the pod spec with CSIVolumeSource and their lifecycle is tied to the lifecycle of that pod. A driver has to be aware of this because it is only going to get a NodePublishVolume call for such a volume.
|
|
138
|
+
*
|
|
139
|
+
* For more information about implementing this mode, see https://kubernetes-csi.github.io/docs/ephemeral-local-volumes.html A driver can support one or more of these modes and more modes may be added in the future.
|
|
140
|
+
*
|
|
141
|
+
* This field is beta. This field is immutable.
|
|
142
|
+
*/
|
|
143
|
+
volumeLifecycleModes?: string[];
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* CSINode holds information about all CSI drivers installed on a node. CSI drivers do not need to create the CSINode object directly. As long as they use the node-driver-registrar sidecar container, the kubelet will automatically populate the CSINode object for the CSI driver as part of kubelet plugin registration. CSINode has the same name as a node. If the object is missing, it means either there are no CSI Drivers available on the node, or the Kubelet version is low enough that it doesn't create this object. CSINode has an OwnerReference that points to the corresponding node object.
|
|
147
|
+
*/
|
|
148
|
+
export interface CSINode {
|
|
149
|
+
/**
|
|
150
|
+
* APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
|
|
151
|
+
*/
|
|
152
|
+
apiVersion?: string;
|
|
153
|
+
/**
|
|
154
|
+
* Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
|
|
155
|
+
*/
|
|
156
|
+
kind?: string;
|
|
157
|
+
/**
|
|
158
|
+
* Standard object's metadata. metadata.name must be the Kubernetes node name.
|
|
159
|
+
*/
|
|
160
|
+
metadata?: ObjectMeta;
|
|
161
|
+
/**
|
|
162
|
+
* spec is the specification of CSINode
|
|
163
|
+
*/
|
|
164
|
+
spec: CSINodeSpec;
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* CSINodeDriver holds information about the specification of one CSI driver installed on a node
|
|
168
|
+
*/
|
|
169
|
+
export interface CSINodeDriver {
|
|
170
|
+
/**
|
|
171
|
+
* allocatable represents the volume resources of a node that are available for scheduling. This field is beta.
|
|
172
|
+
*/
|
|
173
|
+
allocatable?: VolumeNodeResources;
|
|
174
|
+
/**
|
|
175
|
+
* name represents the name of the CSI driver that this object refers to. This MUST be the same name returned by the CSI GetPluginName() call for that driver.
|
|
176
|
+
*/
|
|
177
|
+
name: string;
|
|
178
|
+
/**
|
|
179
|
+
* nodeID of the node from the driver point of view. This field enables Kubernetes to communicate with storage systems that do not share the same nomenclature for nodes. For example, Kubernetes may refer to a given node as "node1", but the storage system may refer to the same node as "nodeA". When Kubernetes issues a command to the storage system to attach a volume to a specific node, it can use this field to refer to the node name using the ID that the storage system will understand, e.g. "nodeA" instead of "node1". This field is required.
|
|
180
|
+
*/
|
|
181
|
+
nodeID: string;
|
|
182
|
+
/**
|
|
183
|
+
* topologyKeys is the list of keys supported by the driver. When a driver is initialized on a cluster, it provides a set of topology keys that it understands (e.g. "company.com/zone", "company.com/region"). When a driver is initialized on a node, it provides the same topology keys along with values. Kubelet will expose these topology keys as labels on its own node object. When Kubernetes does topology aware provisioning, it can use this list to determine which labels it should retrieve from the node object and pass back to the driver. It is possible for different nodes to use different topology keys. This can be empty if driver does not support topology.
|
|
184
|
+
*/
|
|
185
|
+
topologyKeys?: string[];
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
* CSINodeList is a collection of CSINode objects.
|
|
189
|
+
*/
|
|
190
|
+
export interface CSINodeList {
|
|
191
|
+
/**
|
|
192
|
+
* APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
|
|
193
|
+
*/
|
|
194
|
+
apiVersion?: string;
|
|
195
|
+
/**
|
|
196
|
+
* items is the list of CSINode
|
|
197
|
+
*/
|
|
198
|
+
items: CSINode[];
|
|
199
|
+
/**
|
|
200
|
+
* Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
|
|
201
|
+
*/
|
|
202
|
+
kind?: string;
|
|
203
|
+
/**
|
|
204
|
+
* Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
|
205
|
+
*/
|
|
206
|
+
metadata?: ListMeta;
|
|
207
|
+
}
|
|
208
|
+
/**
|
|
209
|
+
* CSINodeSpec holds information about the specification of all CSI drivers installed on a node
|
|
210
|
+
*/
|
|
211
|
+
export interface CSINodeSpec {
|
|
212
|
+
/**
|
|
213
|
+
* drivers is a list of information of all CSI Drivers existing on a node. If all drivers in the list are uninstalled, this can become empty.
|
|
214
|
+
*/
|
|
215
|
+
drivers: CSINodeDriver[];
|
|
216
|
+
}
|
|
217
|
+
/**
|
|
218
|
+
* CSIStorageCapacity stores the result of one CSI GetCapacity call. For a given StorageClass, this describes the available capacity in a particular topology segment. This can be used when considering where to instantiate new PersistentVolumes.
|
|
219
|
+
*
|
|
220
|
+
* For example this can express things like: - StorageClass "standard" has "1234 GiB" available in "topology.kubernetes.io/zone=us-east1" - StorageClass "localssd" has "10 GiB" available in "kubernetes.io/hostname=knode-abc123"
|
|
221
|
+
*
|
|
222
|
+
* The following three cases all imply that no capacity is available for a certain combination: - no object exists with suitable topology and storage class name - such an object exists, but the capacity is unset - such an object exists, but the capacity is zero
|
|
223
|
+
*
|
|
224
|
+
* The producer of these objects can decide which approach is more suitable.
|
|
225
|
+
*
|
|
226
|
+
* They are consumed by the kube-scheduler when a CSI driver opts into capacity-aware scheduling with CSIDriverSpec.StorageCapacity. The scheduler compares the MaximumVolumeSize against the requested size of pending volumes to filter out unsuitable nodes. If MaximumVolumeSize is unset, it falls back to a comparison against the less precise Capacity. If that is also unset, the scheduler assumes that capacity is insufficient and tries some other node.
|
|
227
|
+
*/
|
|
228
|
+
export interface CSIStorageCapacity {
|
|
229
|
+
/**
|
|
230
|
+
* APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
|
|
231
|
+
*/
|
|
232
|
+
apiVersion?: string;
|
|
233
|
+
/**
|
|
234
|
+
* capacity is the value reported by the CSI driver in its GetCapacityResponse for a GetCapacityRequest with topology and parameters that match the previous fields.
|
|
235
|
+
*
|
|
236
|
+
* The semantic is currently (CSI spec 1.2) defined as: The available capacity, in bytes, of the storage that can be used to provision volumes. If not set, that information is currently unavailable.
|
|
237
|
+
*/
|
|
238
|
+
capacity?: string;
|
|
239
|
+
/**
|
|
240
|
+
* Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
|
|
241
|
+
*/
|
|
242
|
+
kind?: string;
|
|
243
|
+
/**
|
|
244
|
+
* maximumVolumeSize is the value reported by the CSI driver in its GetCapacityResponse for a GetCapacityRequest with topology and parameters that match the previous fields.
|
|
245
|
+
*
|
|
246
|
+
* This is defined since CSI spec 1.4.0 as the largest size that may be used in a CreateVolumeRequest.capacity_range.required_bytes field to create a volume with the same parameters as those in GetCapacityRequest. The corresponding value in the Kubernetes API is ResourceRequirements.Requests in a volume claim.
|
|
247
|
+
*/
|
|
248
|
+
maximumVolumeSize?: string;
|
|
249
|
+
/**
|
|
250
|
+
* Standard object's metadata. The name has no particular meaning. It must be a DNS subdomain (dots allowed, 253 characters). To ensure that there are no conflicts with other CSI drivers on the cluster, the recommendation is to use csisc-<uuid>, a generated name, or a reverse-domain name which ends with the unique CSI driver name.
|
|
251
|
+
*
|
|
252
|
+
* Objects are namespaced.
|
|
253
|
+
*
|
|
254
|
+
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
|
255
|
+
*/
|
|
256
|
+
metadata?: ObjectMeta;
|
|
257
|
+
/**
|
|
258
|
+
* nodeTopology defines which nodes have access to the storage for which capacity was reported. If not set, the storage is not accessible from any node in the cluster. If empty, the storage is accessible from all nodes. This field is immutable.
|
|
259
|
+
*/
|
|
260
|
+
nodeTopology?: LabelSelector;
|
|
261
|
+
/**
|
|
262
|
+
* storageClassName represents the name of the StorageClass that the reported capacity applies to. It must meet the same requirements as the name of a StorageClass object (non-empty, DNS subdomain). If that object no longer exists, the CSIStorageCapacity object is obsolete and should be removed by its creator. This field is immutable.
|
|
263
|
+
*/
|
|
264
|
+
storageClassName: string;
|
|
265
|
+
}
|
|
266
|
+
/**
|
|
267
|
+
* CSIStorageCapacityList is a collection of CSIStorageCapacity objects.
|
|
268
|
+
*/
|
|
269
|
+
export interface CSIStorageCapacityList {
|
|
270
|
+
/**
|
|
271
|
+
* APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
|
|
272
|
+
*/
|
|
273
|
+
apiVersion?: string;
|
|
274
|
+
/**
|
|
275
|
+
* items is the list of CSIStorageCapacity objects.
|
|
276
|
+
*/
|
|
277
|
+
items: CSIStorageCapacity[];
|
|
278
|
+
/**
|
|
279
|
+
* Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
|
|
280
|
+
*/
|
|
281
|
+
kind?: string;
|
|
282
|
+
/**
|
|
283
|
+
* Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
|
284
|
+
*/
|
|
285
|
+
metadata?: ListMeta;
|
|
286
|
+
}
|
|
287
|
+
/**
|
|
288
|
+
* StorageClass describes the parameters for a class of storage for which PersistentVolumes can be dynamically provisioned.
|
|
289
|
+
*
|
|
290
|
+
* StorageClasses are non-namespaced; the name of the storage class according to etcd is in ObjectMeta.Name.
|
|
291
|
+
*/
|
|
292
|
+
export interface StorageClass {
|
|
293
|
+
/**
|
|
294
|
+
* allowVolumeExpansion shows whether the storage class allow volume expand.
|
|
295
|
+
*/
|
|
296
|
+
allowVolumeExpansion?: boolean;
|
|
297
|
+
/**
|
|
298
|
+
* allowedTopologies restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature.
|
|
299
|
+
*/
|
|
300
|
+
allowedTopologies?: TopologySelectorTerm[];
|
|
301
|
+
/**
|
|
302
|
+
* APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
|
|
303
|
+
*/
|
|
304
|
+
apiVersion?: string;
|
|
305
|
+
/**
|
|
306
|
+
* Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
|
|
307
|
+
*/
|
|
308
|
+
kind?: string;
|
|
309
|
+
/**
|
|
310
|
+
* Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
|
311
|
+
*/
|
|
312
|
+
metadata?: ObjectMeta;
|
|
313
|
+
/**
|
|
314
|
+
* mountOptions controls the mountOptions for dynamically provisioned PersistentVolumes of this storage class. e.g. ["ro", "soft"]. Not validated - mount of the PVs will simply fail if one is invalid.
|
|
315
|
+
*/
|
|
316
|
+
mountOptions?: string[];
|
|
317
|
+
/**
|
|
318
|
+
* parameters holds the parameters for the provisioner that should create volumes of this storage class.
|
|
319
|
+
*/
|
|
320
|
+
parameters?: Record<string, string>;
|
|
321
|
+
/**
|
|
322
|
+
* provisioner indicates the type of the provisioner.
|
|
323
|
+
*/
|
|
324
|
+
provisioner: string;
|
|
325
|
+
/**
|
|
326
|
+
* reclaimPolicy controls the reclaimPolicy for dynamically provisioned PersistentVolumes of this storage class. Defaults to Delete.
|
|
327
|
+
*
|
|
328
|
+
* Possible enum values:
|
|
329
|
+
* - `"Delete"` means the volume will be deleted from Kubernetes on release from its claim. The volume plugin must support Deletion.
|
|
330
|
+
* - `"Recycle"` means the volume will be recycled back into the pool of unbound persistent volumes on release from its claim. The volume plugin must support Recycling.
|
|
331
|
+
* - `"Retain"` means the volume will be left in its current phase (Released) for manual reclamation by the administrator. The default policy is Retain.
|
|
332
|
+
*/
|
|
333
|
+
reclaimPolicy?: 'Delete' | 'Recycle' | 'Retain';
|
|
334
|
+
/**
|
|
335
|
+
* volumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the VolumeScheduling feature.
|
|
336
|
+
*
|
|
337
|
+
* Possible enum values:
|
|
338
|
+
* - `"Immediate"` indicates that PersistentVolumeClaims should be immediately provisioned and bound. This is the default mode.
|
|
339
|
+
* - `"WaitForFirstConsumer"` indicates that PersistentVolumeClaims should not be provisioned and bound until the first Pod is created that references the PeristentVolumeClaim. The volume provisioning and binding will occur during Pod scheduing.
|
|
340
|
+
*/
|
|
341
|
+
volumeBindingMode?: 'Immediate' | 'WaitForFirstConsumer';
|
|
342
|
+
}
|
|
343
|
+
/**
|
|
344
|
+
* StorageClassList is a collection of storage classes.
|
|
345
|
+
*/
|
|
346
|
+
export interface StorageClassList {
|
|
347
|
+
/**
|
|
348
|
+
* APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
|
|
349
|
+
*/
|
|
350
|
+
apiVersion?: string;
|
|
351
|
+
/**
|
|
352
|
+
* items is the list of StorageClasses
|
|
353
|
+
*/
|
|
354
|
+
items: StorageClass[];
|
|
355
|
+
/**
|
|
356
|
+
* Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
|
|
357
|
+
*/
|
|
358
|
+
kind?: string;
|
|
359
|
+
/**
|
|
360
|
+
* Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
|
361
|
+
*/
|
|
362
|
+
metadata?: ListMeta;
|
|
363
|
+
}
|
|
364
|
+
/**
|
|
365
|
+
* TokenRequest contains parameters of a service account token.
|
|
366
|
+
*/
|
|
367
|
+
export interface TokenRequest {
|
|
368
|
+
/**
|
|
369
|
+
* audience is the intended audience of the token in "TokenRequestSpec". It will default to the audiences of kube apiserver.
|
|
370
|
+
*/
|
|
371
|
+
audience: string;
|
|
372
|
+
/**
|
|
373
|
+
* expirationSeconds is the duration of validity of the token in "TokenRequestSpec". It has the same default value of "ExpirationSeconds" in "TokenRequestSpec".
|
|
374
|
+
*/
|
|
375
|
+
expirationSeconds?: number;
|
|
376
|
+
}
|
|
377
|
+
/**
|
|
378
|
+
* VolumeAttachment captures the intent to attach or detach the specified volume to/from the specified node.
|
|
379
|
+
*
|
|
380
|
+
* VolumeAttachment objects are non-namespaced.
|
|
381
|
+
*/
|
|
382
|
+
export interface VolumeAttachment {
|
|
383
|
+
/**
|
|
384
|
+
* APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
|
|
385
|
+
*/
|
|
386
|
+
apiVersion?: string;
|
|
387
|
+
/**
|
|
388
|
+
* Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
|
|
389
|
+
*/
|
|
390
|
+
kind?: string;
|
|
391
|
+
/**
|
|
392
|
+
* Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
|
393
|
+
*/
|
|
394
|
+
metadata?: ObjectMeta;
|
|
395
|
+
/**
|
|
396
|
+
* spec represents specification of the desired attach/detach volume behavior. Populated by the Kubernetes system.
|
|
397
|
+
*/
|
|
398
|
+
spec: VolumeAttachmentSpec;
|
|
399
|
+
/**
|
|
400
|
+
* status represents status of the VolumeAttachment request. Populated by the entity completing the attach or detach operation, i.e. the external-attacher.
|
|
401
|
+
*/
|
|
402
|
+
status?: VolumeAttachmentStatus;
|
|
403
|
+
}
|
|
404
|
+
/**
|
|
405
|
+
* VolumeAttachmentList is a collection of VolumeAttachment objects.
|
|
406
|
+
*/
|
|
407
|
+
export interface VolumeAttachmentList {
|
|
408
|
+
/**
|
|
409
|
+
* APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
|
|
410
|
+
*/
|
|
411
|
+
apiVersion?: string;
|
|
412
|
+
/**
|
|
413
|
+
* items is the list of VolumeAttachments
|
|
414
|
+
*/
|
|
415
|
+
items: VolumeAttachment[];
|
|
416
|
+
/**
|
|
417
|
+
* Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
|
|
418
|
+
*/
|
|
419
|
+
kind?: string;
|
|
420
|
+
/**
|
|
421
|
+
* Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
|
422
|
+
*/
|
|
423
|
+
metadata?: ListMeta;
|
|
424
|
+
}
|
|
425
|
+
/**
|
|
426
|
+
* VolumeAttachmentSource represents a volume that should be attached. Right now only PersistentVolumes can be attached via external attacher, in the future we may allow also inline volumes in pods. Exactly one member can be set.
|
|
427
|
+
*/
|
|
428
|
+
export interface VolumeAttachmentSource {
|
|
429
|
+
/**
|
|
430
|
+
* inlineVolumeSpec contains all the information necessary to attach a persistent volume defined by a pod's inline VolumeSource. This field is populated only for the CSIMigration feature. It contains translated fields from a pod's inline VolumeSource to a PersistentVolumeSpec. This field is beta-level and is only honored by servers that enabled the CSIMigration feature.
|
|
431
|
+
*/
|
|
432
|
+
inlineVolumeSpec?: PersistentVolumeSpec;
|
|
433
|
+
/**
|
|
434
|
+
* persistentVolumeName represents the name of the persistent volume to attach.
|
|
435
|
+
*/
|
|
436
|
+
persistentVolumeName?: string;
|
|
437
|
+
}
|
|
438
|
+
/**
|
|
439
|
+
* VolumeAttachmentSpec is the specification of a VolumeAttachment request.
|
|
440
|
+
*/
|
|
441
|
+
export interface VolumeAttachmentSpec {
|
|
442
|
+
/**
|
|
443
|
+
* attacher indicates the name of the volume driver that MUST handle this request. This is the name returned by GetPluginName().
|
|
444
|
+
*/
|
|
445
|
+
attacher: string;
|
|
446
|
+
/**
|
|
447
|
+
* nodeName represents the node that the volume should be attached to.
|
|
448
|
+
*/
|
|
449
|
+
nodeName: string;
|
|
450
|
+
/**
|
|
451
|
+
* source represents the volume that should be attached.
|
|
452
|
+
*/
|
|
453
|
+
source: VolumeAttachmentSource;
|
|
454
|
+
}
|
|
455
|
+
/**
|
|
456
|
+
* VolumeAttachmentStatus is the status of a VolumeAttachment request.
|
|
457
|
+
*/
|
|
458
|
+
export interface VolumeAttachmentStatus {
|
|
459
|
+
/**
|
|
460
|
+
* attachError represents the last error encountered during attach operation, if any. This field must only be set by the entity completing the attach operation, i.e. the external-attacher.
|
|
461
|
+
*/
|
|
462
|
+
attachError?: VolumeError;
|
|
463
|
+
/**
|
|
464
|
+
* attached indicates the volume is successfully attached. This field must only be set by the entity completing the attach operation, i.e. the external-attacher.
|
|
465
|
+
*/
|
|
466
|
+
attached: boolean;
|
|
467
|
+
/**
|
|
468
|
+
* attachmentMetadata is populated with any information returned by the attach operation, upon successful attach, that must be passed into subsequent WaitForAttach or Mount calls. This field must only be set by the entity completing the attach operation, i.e. the external-attacher.
|
|
469
|
+
*/
|
|
470
|
+
attachmentMetadata?: Record<string, string>;
|
|
471
|
+
/**
|
|
472
|
+
* detachError represents the last error encountered during detach operation, if any. This field must only be set by the entity completing the detach operation, i.e. the external-attacher.
|
|
473
|
+
*/
|
|
474
|
+
detachError?: VolumeError;
|
|
475
|
+
}
|
|
476
|
+
/**
|
|
477
|
+
* VolumeAttributesClass represents a specification of mutable volume attributes defined by the CSI driver. The class can be specified during dynamic provisioning of PersistentVolumeClaims, and changed in the PersistentVolumeClaim spec after provisioning.
|
|
478
|
+
*/
|
|
479
|
+
export interface VolumeAttributesClass {
|
|
480
|
+
/**
|
|
481
|
+
* APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
|
|
482
|
+
*/
|
|
483
|
+
apiVersion?: string;
|
|
484
|
+
/**
|
|
485
|
+
* Name of the CSI driver This field is immutable.
|
|
486
|
+
*/
|
|
487
|
+
driverName: string;
|
|
488
|
+
/**
|
|
489
|
+
* Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
|
|
490
|
+
*/
|
|
491
|
+
kind?: string;
|
|
492
|
+
/**
|
|
493
|
+
* Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
|
494
|
+
*/
|
|
495
|
+
metadata?: ObjectMeta;
|
|
496
|
+
/**
|
|
497
|
+
* parameters hold volume attributes defined by the CSI driver. These values are opaque to the Kubernetes and are passed directly to the CSI driver. The underlying storage provider supports changing these attributes on an existing volume, however the parameters field itself is immutable. To invoke a volume update, a new VolumeAttributesClass should be created with new parameters, and the PersistentVolumeClaim should be updated to reference the new VolumeAttributesClass.
|
|
498
|
+
*
|
|
499
|
+
* This field is required and must contain at least one key/value pair. The keys cannot be empty, and the maximum number of parameters is 512, with a cumulative max size of 256K. If the CSI driver rejects invalid parameters, the target PersistentVolumeClaim will be set to an "Infeasible" state in the modifyVolumeStatus field.
|
|
500
|
+
*/
|
|
501
|
+
parameters?: Record<string, string>;
|
|
502
|
+
}
|
|
503
|
+
/**
|
|
504
|
+
* VolumeAttributesClassList is a collection of VolumeAttributesClass objects.
|
|
505
|
+
*/
|
|
506
|
+
export interface VolumeAttributesClassList {
|
|
507
|
+
/**
|
|
508
|
+
* APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
|
|
509
|
+
*/
|
|
510
|
+
apiVersion?: string;
|
|
511
|
+
/**
|
|
512
|
+
* items is the list of VolumeAttributesClass objects.
|
|
513
|
+
*/
|
|
514
|
+
items: VolumeAttributesClass[];
|
|
515
|
+
/**
|
|
516
|
+
* Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
|
|
517
|
+
*/
|
|
518
|
+
kind?: string;
|
|
519
|
+
/**
|
|
520
|
+
* Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
|
521
|
+
*/
|
|
522
|
+
metadata?: ListMeta;
|
|
523
|
+
}
|
|
524
|
+
/**
|
|
525
|
+
* VolumeError captures an error encountered during a volume operation.
|
|
526
|
+
*/
|
|
527
|
+
export interface VolumeError {
|
|
528
|
+
/**
|
|
529
|
+
* errorCode is a numeric gRPC code representing the error encountered during Attach or Detach operations.
|
|
530
|
+
*
|
|
531
|
+
* This is an optional, beta field that requires the MutableCSINodeAllocatableCount feature gate being enabled to be set.
|
|
532
|
+
*/
|
|
533
|
+
errorCode?: number;
|
|
534
|
+
/**
|
|
535
|
+
* message represents the error encountered during Attach or Detach operation. This string may be logged, so it should not contain sensitive information.
|
|
536
|
+
*/
|
|
537
|
+
message?: string;
|
|
538
|
+
/**
|
|
539
|
+
* time represents the time the error was encountered.
|
|
540
|
+
*/
|
|
541
|
+
time?: Time;
|
|
542
|
+
}
|
|
543
|
+
/**
|
|
544
|
+
* VolumeNodeResources is a set of resource limits for scheduling of volumes.
|
|
545
|
+
*/
|
|
546
|
+
export interface VolumeNodeResources {
|
|
547
|
+
/**
|
|
548
|
+
* count indicates the maximum number of unique volumes managed by the CSI driver that can be used on a node. A volume that is both attached and mounted on a node is considered to be used once, not twice. The same rule applies for a unique volume that is shared among multiple pods on the same node. If this field is not specified, then the supported number of volumes on this node is unbounded.
|
|
549
|
+
*/
|
|
550
|
+
count?: number;
|
|
551
|
+
}
|
|
552
|
+
//# sourceMappingURL=v1.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v1.d.ts","sourceRoot":"","sources":["../../../src/gen/storage/v1.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAChF,OAAO,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAE/E;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,QAAQ,CAAC,EAAE,UAAU,CAAC;IACtB;;OAEG;IACH,IAAI,EAAE,aAAa,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,KAAK,EAAE,SAAS,EAAE,CAAC;IACnB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B;;;;OAIG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;;;;;OAMG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;;;OAMG;IACH,kCAAkC,CAAC,EAAE,MAAM,CAAC;IAC5C;;;;;;;;;;;OAWG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B;;;;;;;;OAQG;IACH,YA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OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC5C;;OAEG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,QAAQ,CAAC,EAAE,UAAU,CAAC;IACtB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACrC;AAED;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,KAAK,EAAE,qBAAqB,EAAE,CAAC;IAC/B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,IAAI,CAAC,EAAE,IAAI,CAAC;CACb;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v1.js","sourceRoot":"","sources":["../../../src/gen/storage/v1.ts"],"names":[],"mappings":"AAAA,4GAA4G;AAC5G,sEAAsE"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Kubernetes object types. The kinds' types are generated from a cluster's
|
|
3
|
+
* OpenAPI schemas (overkube-typegen, packages/typegen) and imported by group and version:
|
|
4
|
+
*
|
|
5
|
+
* import type { Pod } from '@overkube/kube-types/core/v1';
|
|
6
|
+
* import type { Deployment } from '@overkube/kube-types/apps/v1';
|
|
7
|
+
*
|
|
8
|
+
* Here: the kinds table, which type each kind's objects have, what any
|
|
9
|
+
* object is.
|
|
10
|
+
*/
|
|
11
|
+
import { type KindMap } from './gen/kinds.js';
|
|
12
|
+
import type { KindInfo } from './object.js';
|
|
13
|
+
export { type KindMap, kinds } from './gen/kinds.js';
|
|
14
|
+
/** Every kind the kinds table knows: what a kind is before a cluster's discovery says (and in a cluster in memory). */
|
|
15
|
+
export declare const knownKinds: readonly KindInfo[];
|
|
16
|
+
export { apiVersion, type GroupVersionKind, type KindInfo, type KubeObject } from './object.js';
|
|
17
|
+
/** The type of a kind's objects: ObjectOf<typeof kinds.apps.v1.Deployment> is Deployment. */
|
|
18
|
+
export type ObjectOf<K extends KindInfo> = K['id'] extends keyof KindMap ? KindMap[K['id']] : never;
|
|
19
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,EAAE,KAAK,OAAO,EAAS,MAAM,gBAAgB,CAAC;AACrD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAE5C,OAAO,EAAE,KAAK,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAErD,uHAAuH;AACvH,eAAO,MAAM,UAAU,EAAE,SAAS,QAAQ,EAEzC,CAAC;AACF,OAAO,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,KAAK,QAAQ,EAAE,KAAK,UAAU,EAAE,MAAM,aAAa,CAAC;AAEhG,6FAA6F;AAC7F,MAAM,MAAM,QAAQ,CAAC,CAAC,SAAS,QAAQ,IAAI,CAAC,CAAC,IAAI,CAAC,SAAS,MAAM,OAAO,GAAG,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,KAAK,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Kubernetes object types. The kinds' types are generated from a cluster's
|
|
3
|
+
* OpenAPI schemas (overkube-typegen, packages/typegen) and imported by group and version:
|
|
4
|
+
*
|
|
5
|
+
* import type { Pod } from '@overkube/kube-types/core/v1';
|
|
6
|
+
* import type { Deployment } from '@overkube/kube-types/apps/v1';
|
|
7
|
+
*
|
|
8
|
+
* Here: the kinds table, which type each kind's objects have, what any
|
|
9
|
+
* object is.
|
|
10
|
+
*/
|
|
11
|
+
import { kinds } from './gen/kinds.js';
|
|
12
|
+
export { kinds } from './gen/kinds.js';
|
|
13
|
+
/** Every kind the kinds table knows: what a kind is before a cluster's discovery says (and in a cluster in memory). */
|
|
14
|
+
export const knownKinds = Object.freeze(Object.values(kinds).flatMap((versions) => Object.values(versions).flatMap((byKind) => Object.values(byKind))));
|
|
15
|
+
export { apiVersion } from './object.js';
|
|
16
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,EAAgB,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAGrD,OAAO,EAAgB,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAErD,uHAAuH;AACvH,MAAM,CAAC,MAAM,UAAU,GAAwB,MAAM,CAAC,MAAM,CAC1D,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,MAAkC,CAAC,CAAC,CAAC,CAC3I,CAAC;AACF,OAAO,EAAE,UAAU,EAAyD,MAAM,aAAa,CAAC"}
|