@intentius/chant-lexicon-k8s 0.0.12
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.
- package/dist/integrity.json +32 -0
- package/dist/manifest.json +8 -0
- package/dist/meta.json +1413 -0
- package/dist/rules/hardcoded-namespace.ts +56 -0
- package/dist/rules/k8s-helpers.ts +149 -0
- package/dist/rules/wk8005.ts +59 -0
- package/dist/rules/wk8006.ts +68 -0
- package/dist/rules/wk8041.ts +73 -0
- package/dist/rules/wk8042.ts +48 -0
- package/dist/rules/wk8101.ts +65 -0
- package/dist/rules/wk8102.ts +42 -0
- package/dist/rules/wk8103.ts +45 -0
- package/dist/rules/wk8104.ts +69 -0
- package/dist/rules/wk8105.ts +45 -0
- package/dist/rules/wk8201.ts +55 -0
- package/dist/rules/wk8202.ts +46 -0
- package/dist/rules/wk8203.ts +46 -0
- package/dist/rules/wk8204.ts +54 -0
- package/dist/rules/wk8205.ts +56 -0
- package/dist/rules/wk8207.ts +45 -0
- package/dist/rules/wk8208.ts +45 -0
- package/dist/rules/wk8209.ts +45 -0
- package/dist/rules/wk8301.ts +51 -0
- package/dist/rules/wk8302.ts +46 -0
- package/dist/rules/wk8303.ts +96 -0
- package/dist/skills/chant-k8s.md +433 -0
- package/dist/types/index.d.ts +2934 -0
- package/package.json +30 -0
- package/src/actions/actions.test.ts +83 -0
- package/src/actions/apps.ts +23 -0
- package/src/actions/batch.ts +9 -0
- package/src/actions/core.ts +62 -0
- package/src/actions/index.ts +50 -0
- package/src/actions/networking.ts +15 -0
- package/src/actions/rbac.ts +13 -0
- package/src/codegen/docs-cli.ts +3 -0
- package/src/codegen/docs.ts +1147 -0
- package/src/codegen/generate-cli.ts +41 -0
- package/src/codegen/generate-lexicon.ts +69 -0
- package/src/codegen/generate-typescript.ts +97 -0
- package/src/codegen/generate.ts +144 -0
- package/src/codegen/naming.test.ts +63 -0
- package/src/codegen/naming.ts +187 -0
- package/src/codegen/package.ts +56 -0
- package/src/codegen/patches.ts +108 -0
- package/src/codegen/snapshot.test.ts +95 -0
- package/src/codegen/typecheck.test.ts +24 -0
- package/src/codegen/typecheck.ts +4 -0
- package/src/codegen/versions.ts +43 -0
- package/src/composites/autoscaled-service.ts +236 -0
- package/src/composites/composites.test.ts +1109 -0
- package/src/composites/cron-workload.ts +167 -0
- package/src/composites/index.ts +14 -0
- package/src/composites/namespace-env.ts +163 -0
- package/src/composites/node-agent.ts +224 -0
- package/src/composites/stateful-app.ts +134 -0
- package/src/composites/web-app.ts +180 -0
- package/src/composites/worker-pool.ts +230 -0
- package/src/coverage.test.ts +27 -0
- package/src/coverage.ts +35 -0
- package/src/crd/loader.ts +112 -0
- package/src/crd/parser.test.ts +217 -0
- package/src/crd/parser.ts +279 -0
- package/src/crd/types.ts +54 -0
- package/src/default-labels.test.ts +111 -0
- package/src/default-labels.ts +122 -0
- package/src/generated/index.d.ts +2934 -0
- package/src/generated/index.ts +203 -0
- package/src/generated/lexicon-k8s.json +1413 -0
- package/src/generated/runtime.ts +4 -0
- package/src/import/generator.test.ts +121 -0
- package/src/import/generator.ts +285 -0
- package/src/import/parser.test.ts +156 -0
- package/src/import/parser.ts +204 -0
- package/src/import/roundtrip.test.ts +86 -0
- package/src/index.ts +38 -0
- package/src/lint/post-synth/k8s-helpers.test.ts +219 -0
- package/src/lint/post-synth/k8s-helpers.ts +149 -0
- package/src/lint/post-synth/post-synth.test.ts +969 -0
- package/src/lint/post-synth/wk8005.ts +59 -0
- package/src/lint/post-synth/wk8006.ts +68 -0
- package/src/lint/post-synth/wk8041.ts +73 -0
- package/src/lint/post-synth/wk8042.ts +48 -0
- package/src/lint/post-synth/wk8101.ts +65 -0
- package/src/lint/post-synth/wk8102.ts +42 -0
- package/src/lint/post-synth/wk8103.ts +45 -0
- package/src/lint/post-synth/wk8104.ts +69 -0
- package/src/lint/post-synth/wk8105.ts +45 -0
- package/src/lint/post-synth/wk8201.ts +55 -0
- package/src/lint/post-synth/wk8202.ts +46 -0
- package/src/lint/post-synth/wk8203.ts +46 -0
- package/src/lint/post-synth/wk8204.ts +54 -0
- package/src/lint/post-synth/wk8205.ts +56 -0
- package/src/lint/post-synth/wk8207.ts +45 -0
- package/src/lint/post-synth/wk8208.ts +45 -0
- package/src/lint/post-synth/wk8209.ts +45 -0
- package/src/lint/post-synth/wk8301.ts +51 -0
- package/src/lint/post-synth/wk8302.ts +46 -0
- package/src/lint/post-synth/wk8303.ts +96 -0
- package/src/lint/rules/hardcoded-namespace.ts +56 -0
- package/src/lint/rules/rules.test.ts +69 -0
- package/src/lsp/completions.test.ts +64 -0
- package/src/lsp/completions.ts +20 -0
- package/src/lsp/hover.test.ts +69 -0
- package/src/lsp/hover.ts +68 -0
- package/src/package-cli.ts +28 -0
- package/src/plugin.test.ts +209 -0
- package/src/plugin.ts +915 -0
- package/src/serializer.test.ts +275 -0
- package/src/serializer.ts +278 -0
- package/src/spec/fetch.test.ts +24 -0
- package/src/spec/fetch.ts +68 -0
- package/src/spec/parse.test.ts +102 -0
- package/src/spec/parse.ts +477 -0
- package/src/testdata/manifests/configmap.yaml +7 -0
- package/src/testdata/manifests/deployment.yaml +22 -0
- package/src/testdata/manifests/full-app.yaml +61 -0
- package/src/testdata/manifests/secret.yaml +7 -0
- package/src/testdata/manifests/service.yaml +15 -0
- package/src/validate-cli.ts +21 -0
- package/src/validate.test.ts +29 -0
- package/src/validate.ts +46 -0
- package/src/variables.ts +36 -0
|
@@ -0,0 +1,2934 @@
|
|
|
1
|
+
// Code generated by chant k8s generate. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
// --- Kubernetes Resource classes ---
|
|
4
|
+
|
|
5
|
+
export declare class APIGroup {
|
|
6
|
+
constructor(props: {
|
|
7
|
+
/** name is the name of the group. */
|
|
8
|
+
name: string;
|
|
9
|
+
/** versions are the versions supported in this group. */
|
|
10
|
+
versions: Record<string, unknown>[];
|
|
11
|
+
/** preferredVersion is the version preferred by the API server, which probably is the storage version. */
|
|
12
|
+
preferredVersion?: Record<string, unknown>;
|
|
13
|
+
/** a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. */
|
|
14
|
+
serverAddressByClientCIDRs?: Record<string, unknown>[];
|
|
15
|
+
});
|
|
16
|
+
readonly name: string;
|
|
17
|
+
readonly namespace: string;
|
|
18
|
+
readonly uid: string;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export declare class APIGroupList {
|
|
22
|
+
constructor(props: {
|
|
23
|
+
/** groups is a list of APIGroup. */
|
|
24
|
+
groups: Record<string, unknown>[];
|
|
25
|
+
});
|
|
26
|
+
readonly name: string;
|
|
27
|
+
readonly namespace: string;
|
|
28
|
+
readonly uid: string;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export declare class APIResourceList {
|
|
32
|
+
constructor(props: {
|
|
33
|
+
/** groupVersion is the group and version this APIResourceList is for. */
|
|
34
|
+
groupVersion: string;
|
|
35
|
+
/** resources contains the name of the resources and if they are namespaced. */
|
|
36
|
+
resources: Record<string, unknown>[];
|
|
37
|
+
});
|
|
38
|
+
readonly name: string;
|
|
39
|
+
readonly namespace: string;
|
|
40
|
+
readonly uid: string;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export declare class APIService {
|
|
44
|
+
constructor(props: {
|
|
45
|
+
/** Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
|
|
46
|
+
metadata?: ObjectMeta;
|
|
47
|
+
/** Spec contains information for locating and communicating with a server */
|
|
48
|
+
spec?: Record<string, unknown>;
|
|
49
|
+
});
|
|
50
|
+
readonly name: string;
|
|
51
|
+
readonly namespace: string;
|
|
52
|
+
readonly uid: string;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export declare class APIServiceList {
|
|
56
|
+
constructor(props: {
|
|
57
|
+
/** Items is the list of APIService */
|
|
58
|
+
items: Record<string, unknown>[];
|
|
59
|
+
/** Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
|
|
60
|
+
metadata?: Record<string, unknown>;
|
|
61
|
+
});
|
|
62
|
+
readonly name: string;
|
|
63
|
+
readonly namespace: string;
|
|
64
|
+
readonly uid: string;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export declare class APIVersions {
|
|
68
|
+
constructor(props: {
|
|
69
|
+
/** a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. */
|
|
70
|
+
serverAddressByClientCIDRs: Record<string, unknown>[];
|
|
71
|
+
/** versions are the api versions that are available. */
|
|
72
|
+
versions: string[];
|
|
73
|
+
});
|
|
74
|
+
readonly name: string;
|
|
75
|
+
readonly namespace: string;
|
|
76
|
+
readonly uid: string;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export declare class BatchJob {
|
|
80
|
+
constructor(props: {
|
|
81
|
+
/** Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
|
|
82
|
+
metadata?: ObjectMeta;
|
|
83
|
+
/** Specification of the desired behavior of a job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status */
|
|
84
|
+
spec?: Record<string, unknown>;
|
|
85
|
+
});
|
|
86
|
+
readonly name: string;
|
|
87
|
+
readonly namespace: string;
|
|
88
|
+
readonly uid: string;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export declare class Binding {
|
|
92
|
+
constructor(props: {
|
|
93
|
+
/** The target object that you want to bind to the standard object. */
|
|
94
|
+
target: ObjectReference;
|
|
95
|
+
/** Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
|
|
96
|
+
metadata?: ObjectMeta;
|
|
97
|
+
});
|
|
98
|
+
readonly name: string;
|
|
99
|
+
readonly namespace: string;
|
|
100
|
+
readonly uid: string;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export declare class CertificateSigningRequest {
|
|
104
|
+
constructor(props: {
|
|
105
|
+
/** spec contains the certificate request, and is immutable after creation. Only the request, signerName, expirationSeconds, and usages fields can be set on creation. Other fields are derived by Kubernetes and cannot be modified by users. */
|
|
106
|
+
spec: Record<string, unknown>;
|
|
107
|
+
metadata?: ObjectMeta;
|
|
108
|
+
});
|
|
109
|
+
readonly name: string;
|
|
110
|
+
readonly namespace: string;
|
|
111
|
+
readonly uid: string;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export declare class CertificateSigningRequestList {
|
|
115
|
+
constructor(props: {
|
|
116
|
+
/** items is a collection of CertificateSigningRequest objects */
|
|
117
|
+
items: Record<string, unknown>[];
|
|
118
|
+
metadata?: Record<string, unknown>;
|
|
119
|
+
});
|
|
120
|
+
readonly name: string;
|
|
121
|
+
readonly namespace: string;
|
|
122
|
+
readonly uid: string;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export declare class ClusterRole {
|
|
126
|
+
constructor(props: {
|
|
127
|
+
/** AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller. */
|
|
128
|
+
aggregationRule?: Record<string, unknown>;
|
|
129
|
+
/** Standard object's metadata. */
|
|
130
|
+
metadata?: ObjectMeta;
|
|
131
|
+
/** Rules holds all the PolicyRules for this ClusterRole */
|
|
132
|
+
rules?: PolicyRule[];
|
|
133
|
+
});
|
|
134
|
+
readonly name: string;
|
|
135
|
+
readonly namespace: string;
|
|
136
|
+
readonly uid: string;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export declare class ClusterRoleBinding {
|
|
140
|
+
constructor(props: {
|
|
141
|
+
/** RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. This field is immutable. */
|
|
142
|
+
roleRef: RoleRef;
|
|
143
|
+
/** Standard object's metadata. */
|
|
144
|
+
metadata?: ObjectMeta;
|
|
145
|
+
/** Subjects holds references to the objects the role applies to. */
|
|
146
|
+
subjects?: Subject[];
|
|
147
|
+
});
|
|
148
|
+
readonly name: string;
|
|
149
|
+
readonly namespace: string;
|
|
150
|
+
readonly uid: string;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
export declare class ClusterRoleBindingList {
|
|
154
|
+
constructor(props: {
|
|
155
|
+
/** Items is a list of ClusterRoleBindings */
|
|
156
|
+
items: Record<string, unknown>[];
|
|
157
|
+
/** Standard object's metadata. */
|
|
158
|
+
metadata?: Record<string, unknown>;
|
|
159
|
+
});
|
|
160
|
+
readonly name: string;
|
|
161
|
+
readonly namespace: string;
|
|
162
|
+
readonly uid: string;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
export declare class ClusterRoleList {
|
|
166
|
+
constructor(props: {
|
|
167
|
+
/** Items is a list of ClusterRoles */
|
|
168
|
+
items: Record<string, unknown>[];
|
|
169
|
+
/** Standard object's metadata. */
|
|
170
|
+
metadata?: Record<string, unknown>;
|
|
171
|
+
});
|
|
172
|
+
readonly name: string;
|
|
173
|
+
readonly namespace: string;
|
|
174
|
+
readonly uid: string;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
export declare class CM {
|
|
178
|
+
constructor(props: {
|
|
179
|
+
/** BinaryData contains the binary data. Each key must consist of alphanumeric characters, '-', '_' or '.'. BinaryData can contain byte sequences that are not in the UTF-8 range. The keys stored in BinaryData must not overlap with the ones in the Data field, this is enforced during validation process. Using this field will require 1.10+ apiserver and kubelet. */
|
|
180
|
+
binaryData?: Record<string, string>;
|
|
181
|
+
/** Data contains the configuration data. Each key must consist of alphanumeric characters, '-', '_' or '.'. Values with non-UTF-8 byte sequences must use the BinaryData field. The keys stored in Data must not overlap with the keys in the BinaryData field, this is enforced during validation process. */
|
|
182
|
+
data?: Record<string, string>;
|
|
183
|
+
/** Immutable, if set to true, ensures that data stored in the ConfigMap cannot be updated (only object metadata can be modified). If not set to true, the field can be modified at any time. Defaulted to nil. */
|
|
184
|
+
immutable?: boolean;
|
|
185
|
+
/** Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
|
|
186
|
+
metadata?: ObjectMeta;
|
|
187
|
+
});
|
|
188
|
+
readonly name: string;
|
|
189
|
+
readonly namespace: string;
|
|
190
|
+
readonly uid: string;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
export declare class ComponentStatus {
|
|
194
|
+
constructor(props: {
|
|
195
|
+
/** List of component conditions observed */
|
|
196
|
+
conditions?: Record<string, unknown>[];
|
|
197
|
+
/** Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
|
|
198
|
+
metadata?: ObjectMeta;
|
|
199
|
+
});
|
|
200
|
+
readonly name: string;
|
|
201
|
+
readonly namespace: string;
|
|
202
|
+
readonly uid: string;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
export declare class ComponentStatusList {
|
|
206
|
+
constructor(props: {
|
|
207
|
+
/** List of ComponentStatus objects. */
|
|
208
|
+
items: Record<string, unknown>[];
|
|
209
|
+
/** Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds */
|
|
210
|
+
metadata?: Record<string, unknown>;
|
|
211
|
+
});
|
|
212
|
+
readonly name: string;
|
|
213
|
+
readonly namespace: string;
|
|
214
|
+
readonly uid: string;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
export declare class ConfigMap {
|
|
218
|
+
constructor(props: {
|
|
219
|
+
/** BinaryData contains the binary data. Each key must consist of alphanumeric characters, '-', '_' or '.'. BinaryData can contain byte sequences that are not in the UTF-8 range. The keys stored in BinaryData must not overlap with the ones in the Data field, this is enforced during validation process. Using this field will require 1.10+ apiserver and kubelet. */
|
|
220
|
+
binaryData?: Record<string, string>;
|
|
221
|
+
/** Data contains the configuration data. Each key must consist of alphanumeric characters, '-', '_' or '.'. Values with non-UTF-8 byte sequences must use the BinaryData field. The keys stored in Data must not overlap with the keys in the BinaryData field, this is enforced during validation process. */
|
|
222
|
+
data?: Record<string, string>;
|
|
223
|
+
/** Immutable, if set to true, ensures that data stored in the ConfigMap cannot be updated (only object metadata can be modified). If not set to true, the field can be modified at any time. Defaulted to nil. */
|
|
224
|
+
immutable?: boolean;
|
|
225
|
+
/** Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
|
|
226
|
+
metadata?: ObjectMeta;
|
|
227
|
+
});
|
|
228
|
+
readonly name: string;
|
|
229
|
+
readonly namespace: string;
|
|
230
|
+
readonly uid: string;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
export declare class ConfigMapList {
|
|
234
|
+
constructor(props: {
|
|
235
|
+
/** Items is the list of ConfigMaps. */
|
|
236
|
+
items: Record<string, unknown>[];
|
|
237
|
+
/** More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
|
|
238
|
+
metadata?: Record<string, unknown>;
|
|
239
|
+
});
|
|
240
|
+
readonly name: string;
|
|
241
|
+
readonly namespace: string;
|
|
242
|
+
readonly uid: string;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
export declare class ControllerRevision {
|
|
246
|
+
constructor(props: {
|
|
247
|
+
/** Revision indicates the revision of the state represented by Data. */
|
|
248
|
+
revision: number;
|
|
249
|
+
/** Data is the serialized representation of the state. */
|
|
250
|
+
data?: Record<string, unknown>;
|
|
251
|
+
/** Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
|
|
252
|
+
metadata?: ObjectMeta;
|
|
253
|
+
});
|
|
254
|
+
readonly name: string;
|
|
255
|
+
readonly namespace: string;
|
|
256
|
+
readonly uid: string;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
export declare class ControllerRevisionList {
|
|
260
|
+
constructor(props: {
|
|
261
|
+
/** Items is the list of ControllerRevisions */
|
|
262
|
+
items: Record<string, unknown>[];
|
|
263
|
+
/** More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
|
|
264
|
+
metadata?: Record<string, unknown>;
|
|
265
|
+
});
|
|
266
|
+
readonly name: string;
|
|
267
|
+
readonly namespace: string;
|
|
268
|
+
readonly uid: string;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
export declare class CoreEventList {
|
|
272
|
+
constructor(props: {
|
|
273
|
+
/** List of events */
|
|
274
|
+
items: Record<string, unknown>[];
|
|
275
|
+
/** Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds */
|
|
276
|
+
metadata?: Record<string, unknown>;
|
|
277
|
+
});
|
|
278
|
+
readonly name: string;
|
|
279
|
+
readonly namespace: string;
|
|
280
|
+
readonly uid: string;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
export declare class CronJob {
|
|
284
|
+
constructor(props: {
|
|
285
|
+
/** Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
|
|
286
|
+
metadata?: ObjectMeta;
|
|
287
|
+
/** Specification of the desired behavior of a cron job, including the schedule. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status */
|
|
288
|
+
spec?: Record<string, unknown>;
|
|
289
|
+
});
|
|
290
|
+
readonly name: string;
|
|
291
|
+
readonly namespace: string;
|
|
292
|
+
readonly uid: string;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
export declare class CronJobList {
|
|
296
|
+
constructor(props: {
|
|
297
|
+
/** items is the list of CronJobs. */
|
|
298
|
+
items: Record<string, unknown>[];
|
|
299
|
+
/** Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
|
|
300
|
+
metadata?: Record<string, unknown>;
|
|
301
|
+
});
|
|
302
|
+
readonly name: string;
|
|
303
|
+
readonly namespace: string;
|
|
304
|
+
readonly uid: string;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
export declare class CSIDriver {
|
|
308
|
+
constructor(props: {
|
|
309
|
+
/** spec represents the specification of the CSI Driver. */
|
|
310
|
+
spec: Record<string, unknown>;
|
|
311
|
+
/** 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 */
|
|
312
|
+
metadata?: ObjectMeta;
|
|
313
|
+
});
|
|
314
|
+
readonly name: string;
|
|
315
|
+
readonly namespace: string;
|
|
316
|
+
readonly uid: string;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
export declare class CSIDriverList {
|
|
320
|
+
constructor(props: {
|
|
321
|
+
/** items is the list of CSIDriver */
|
|
322
|
+
items: Record<string, unknown>[];
|
|
323
|
+
/** Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
|
|
324
|
+
metadata?: Record<string, unknown>;
|
|
325
|
+
});
|
|
326
|
+
readonly name: string;
|
|
327
|
+
readonly namespace: string;
|
|
328
|
+
readonly uid: string;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
export declare class CSINode {
|
|
332
|
+
constructor(props: {
|
|
333
|
+
/** spec is the specification of CSINode */
|
|
334
|
+
spec: Record<string, unknown>;
|
|
335
|
+
/** Standard object's metadata. metadata.name must be the Kubernetes node name. */
|
|
336
|
+
metadata?: ObjectMeta;
|
|
337
|
+
});
|
|
338
|
+
readonly name: string;
|
|
339
|
+
readonly namespace: string;
|
|
340
|
+
readonly uid: string;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
export declare class CSINodeList {
|
|
344
|
+
constructor(props: {
|
|
345
|
+
/** items is the list of CSINode */
|
|
346
|
+
items: Record<string, unknown>[];
|
|
347
|
+
/** Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
|
|
348
|
+
metadata?: Record<string, unknown>;
|
|
349
|
+
});
|
|
350
|
+
readonly name: string;
|
|
351
|
+
readonly namespace: string;
|
|
352
|
+
readonly uid: string;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
export declare class CSIStorageCapacity {
|
|
356
|
+
constructor(props: {
|
|
357
|
+
/** 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. */
|
|
358
|
+
storageClassName: string;
|
|
359
|
+
/** capacity is the value reported by the CSI driver in its GetCapacityResponse for a GetCapacityRequest with topology and parameters that match the previous fields.
|
|
360
|
+
|
|
361
|
+
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. */
|
|
362
|
+
capacity?: string;
|
|
363
|
+
/** maximumVolumeSize is the value reported by the CSI driver in its GetCapacityResponse for a GetCapacityRequest with topology and parameters that match the previous fields.
|
|
364
|
+
|
|
365
|
+
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. */
|
|
366
|
+
maximumVolumeSize?: string;
|
|
367
|
+
/** 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.
|
|
368
|
+
|
|
369
|
+
Objects are namespaced.
|
|
370
|
+
|
|
371
|
+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
|
|
372
|
+
metadata?: ObjectMeta;
|
|
373
|
+
/** 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. */
|
|
374
|
+
nodeTopology?: LabelSelector;
|
|
375
|
+
});
|
|
376
|
+
readonly name: string;
|
|
377
|
+
readonly namespace: string;
|
|
378
|
+
readonly uid: string;
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
export declare class CSIStorageCapacityList {
|
|
382
|
+
constructor(props: {
|
|
383
|
+
/** items is the list of CSIStorageCapacity objects. */
|
|
384
|
+
items: Record<string, unknown>[];
|
|
385
|
+
/** Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
|
|
386
|
+
metadata?: Record<string, unknown>;
|
|
387
|
+
});
|
|
388
|
+
readonly name: string;
|
|
389
|
+
readonly namespace: string;
|
|
390
|
+
readonly uid: string;
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
export declare class CustomResourceDefinition {
|
|
394
|
+
constructor(props: {
|
|
395
|
+
/** spec describes how the user wants the resources to appear */
|
|
396
|
+
spec: Record<string, unknown>;
|
|
397
|
+
/** Standard object's metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
|
|
398
|
+
metadata?: ObjectMeta;
|
|
399
|
+
});
|
|
400
|
+
readonly name: string;
|
|
401
|
+
readonly namespace: string;
|
|
402
|
+
readonly uid: string;
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
export declare class CustomResourceDefinitionList {
|
|
406
|
+
constructor(props: {
|
|
407
|
+
/** items list individual CustomResourceDefinition objects */
|
|
408
|
+
items: Record<string, unknown>[];
|
|
409
|
+
/** Standard object's metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
|
|
410
|
+
metadata?: Record<string, unknown>;
|
|
411
|
+
});
|
|
412
|
+
readonly name: string;
|
|
413
|
+
readonly namespace: string;
|
|
414
|
+
readonly uid: string;
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
export declare class DaemonSet {
|
|
418
|
+
constructor(props: {
|
|
419
|
+
/** Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
|
|
420
|
+
metadata?: ObjectMeta;
|
|
421
|
+
/** The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status */
|
|
422
|
+
spec?: Record<string, unknown>;
|
|
423
|
+
});
|
|
424
|
+
readonly name: string;
|
|
425
|
+
readonly namespace: string;
|
|
426
|
+
readonly uid: string;
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
export declare class DaemonSetList {
|
|
430
|
+
constructor(props: {
|
|
431
|
+
/** A list of daemon sets. */
|
|
432
|
+
items: Record<string, unknown>[];
|
|
433
|
+
/** Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
|
|
434
|
+
metadata?: Record<string, unknown>;
|
|
435
|
+
});
|
|
436
|
+
readonly name: string;
|
|
437
|
+
readonly namespace: string;
|
|
438
|
+
readonly uid: string;
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
export declare class DeleteOptions {
|
|
442
|
+
constructor(props: {
|
|
443
|
+
/** When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed */
|
|
444
|
+
dryRun?: string[];
|
|
445
|
+
/** The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. */
|
|
446
|
+
gracePeriodSeconds?: number;
|
|
447
|
+
/** if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it */
|
|
448
|
+
ignoreStoreReadErrorWithClusterBreakingPotential?: boolean;
|
|
449
|
+
/** Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. */
|
|
450
|
+
orphanDependents?: boolean;
|
|
451
|
+
/** Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be returned. */
|
|
452
|
+
preconditions?: Record<string, unknown>;
|
|
453
|
+
/** Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. */
|
|
454
|
+
propagationPolicy?: string;
|
|
455
|
+
});
|
|
456
|
+
readonly name: string;
|
|
457
|
+
readonly namespace: string;
|
|
458
|
+
readonly uid: string;
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
export declare class Deploy {
|
|
462
|
+
constructor(props: {
|
|
463
|
+
/** Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
|
|
464
|
+
metadata?: ObjectMeta;
|
|
465
|
+
/** Specification of the desired behavior of the Deployment. */
|
|
466
|
+
spec?: Record<string, unknown>;
|
|
467
|
+
});
|
|
468
|
+
readonly name: string;
|
|
469
|
+
readonly namespace: string;
|
|
470
|
+
readonly uid: string;
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
export declare class Deployment {
|
|
474
|
+
constructor(props: {
|
|
475
|
+
/** Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
|
|
476
|
+
metadata?: ObjectMeta;
|
|
477
|
+
/** Specification of the desired behavior of the Deployment. */
|
|
478
|
+
spec?: Record<string, unknown>;
|
|
479
|
+
});
|
|
480
|
+
readonly name: string;
|
|
481
|
+
readonly namespace: string;
|
|
482
|
+
readonly uid: string;
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
export declare class DeploymentList {
|
|
486
|
+
constructor(props: {
|
|
487
|
+
/** Items is the list of Deployments. */
|
|
488
|
+
items: Record<string, unknown>[];
|
|
489
|
+
/** Standard list metadata. */
|
|
490
|
+
metadata?: Record<string, unknown>;
|
|
491
|
+
});
|
|
492
|
+
readonly name: string;
|
|
493
|
+
readonly namespace: string;
|
|
494
|
+
readonly uid: string;
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
export declare class DeviceClass {
|
|
498
|
+
constructor(props: {
|
|
499
|
+
/** Spec defines what can be allocated and how to configure it.
|
|
500
|
+
|
|
501
|
+
This is mutable. Consumers have to be prepared for classes changing at any time, either because they get updated or replaced. Claim allocations are done once based on whatever was set in classes at the time of allocation.
|
|
502
|
+
|
|
503
|
+
Changing the spec automatically increments the metadata.generation number. */
|
|
504
|
+
spec: Record<string, unknown>;
|
|
505
|
+
/** Standard object metadata */
|
|
506
|
+
metadata?: ObjectMeta;
|
|
507
|
+
});
|
|
508
|
+
readonly name: string;
|
|
509
|
+
readonly namespace: string;
|
|
510
|
+
readonly uid: string;
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
export declare class DeviceClassList {
|
|
514
|
+
constructor(props: {
|
|
515
|
+
/** Items is the list of resource classes. */
|
|
516
|
+
items: Record<string, unknown>[];
|
|
517
|
+
/** Standard list metadata */
|
|
518
|
+
metadata?: Record<string, unknown>;
|
|
519
|
+
});
|
|
520
|
+
readonly name: string;
|
|
521
|
+
readonly namespace: string;
|
|
522
|
+
readonly uid: string;
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
export declare class DS {
|
|
526
|
+
constructor(props: {
|
|
527
|
+
/** Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
|
|
528
|
+
metadata?: ObjectMeta;
|
|
529
|
+
/** The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status */
|
|
530
|
+
spec?: Record<string, unknown>;
|
|
531
|
+
});
|
|
532
|
+
readonly name: string;
|
|
533
|
+
readonly namespace: string;
|
|
534
|
+
readonly uid: string;
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
export declare class Endpoints {
|
|
538
|
+
constructor(props: {
|
|
539
|
+
/** Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
|
|
540
|
+
metadata?: ObjectMeta;
|
|
541
|
+
/** The set of all endpoints is the union of all subsets. Addresses are placed into subsets according to the IPs they share. A single address with multiple ports, some of which are ready and some of which are not (because they come from different containers) will result in the address being displayed in different subsets for the different ports. No address will appear in both Addresses and NotReadyAddresses in the same subset. Sets of addresses and ports that comprise a service. */
|
|
542
|
+
subsets?: Record<string, unknown>[];
|
|
543
|
+
});
|
|
544
|
+
readonly name: string;
|
|
545
|
+
readonly namespace: string;
|
|
546
|
+
readonly uid: string;
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
export declare class EndpointSlice {
|
|
550
|
+
constructor(props: {
|
|
551
|
+
/** addressType specifies the type of address carried by this EndpointSlice. All addresses in this slice must be the same type. This field is immutable after creation. The following address types are currently supported: * IPv4: Represents an IPv4 Address. * IPv6: Represents an IPv6 Address. * FQDN: Represents a Fully Qualified Domain Name. */
|
|
552
|
+
addressType: string;
|
|
553
|
+
/** endpoints is a list of unique endpoints in this slice. Each slice may include a maximum of 1000 endpoints. */
|
|
554
|
+
endpoints: Record<string, unknown>[];
|
|
555
|
+
/** Standard object's metadata. */
|
|
556
|
+
metadata?: ObjectMeta;
|
|
557
|
+
/** ports specifies the list of network ports exposed by each endpoint in this slice. Each port must have a unique name. When ports is empty, it indicates that there are no defined ports. When a port is defined with a nil port value, it indicates "all ports". Each slice may include a maximum of 100 ports. */
|
|
558
|
+
ports?: Record<string, unknown>[];
|
|
559
|
+
});
|
|
560
|
+
readonly name: string;
|
|
561
|
+
readonly namespace: string;
|
|
562
|
+
readonly uid: string;
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
export declare class EndpointSliceList {
|
|
566
|
+
constructor(props: {
|
|
567
|
+
/** items is the list of endpoint slices */
|
|
568
|
+
items: Record<string, unknown>[];
|
|
569
|
+
/** Standard list metadata. */
|
|
570
|
+
metadata?: Record<string, unknown>;
|
|
571
|
+
});
|
|
572
|
+
readonly name: string;
|
|
573
|
+
readonly namespace: string;
|
|
574
|
+
readonly uid: string;
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
export declare class EndpointsList {
|
|
578
|
+
constructor(props: {
|
|
579
|
+
/** List of endpoints. */
|
|
580
|
+
items: Record<string, unknown>[];
|
|
581
|
+
/** Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds */
|
|
582
|
+
metadata?: Record<string, unknown>;
|
|
583
|
+
});
|
|
584
|
+
readonly name: string;
|
|
585
|
+
readonly namespace: string;
|
|
586
|
+
readonly uid: string;
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
export declare class Event {
|
|
590
|
+
constructor(props: {
|
|
591
|
+
/** The object that this event is about. */
|
|
592
|
+
involvedObject: ObjectReference;
|
|
593
|
+
/** Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
|
|
594
|
+
metadata: ObjectMeta;
|
|
595
|
+
/** What action was taken/failed regarding to the Regarding object. */
|
|
596
|
+
action?: string;
|
|
597
|
+
/** The number of times this event has occurred. */
|
|
598
|
+
count?: number;
|
|
599
|
+
/** Time when this Event was first observed. */
|
|
600
|
+
eventTime?: string;
|
|
601
|
+
/** The time at which the event was first recorded. (Time of server receipt is in TypeMeta.) */
|
|
602
|
+
firstTimestamp?: string;
|
|
603
|
+
/** The time at which the most recent occurrence of this event was recorded. */
|
|
604
|
+
lastTimestamp?: string;
|
|
605
|
+
/** A human-readable description of the status of this operation. */
|
|
606
|
+
message?: string;
|
|
607
|
+
/** This should be a short, machine understandable string that gives the reason for the transition into the object's current status. */
|
|
608
|
+
reason?: string;
|
|
609
|
+
/** Optional secondary object for more complex actions. */
|
|
610
|
+
related?: ObjectReference;
|
|
611
|
+
/** Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. */
|
|
612
|
+
reportingComponent?: string;
|
|
613
|
+
/** ID of the controller instance, e.g. `kubelet-xyzf`. */
|
|
614
|
+
reportingInstance?: string;
|
|
615
|
+
/** Data about the Event series this event represents or nil if it's a singleton Event. */
|
|
616
|
+
series?: Record<string, unknown>;
|
|
617
|
+
/** The component reporting this event. Should be a short machine understandable string. */
|
|
618
|
+
source?: Record<string, unknown>;
|
|
619
|
+
/** Type of this event (Normal, Warning), new types could be added in the future */
|
|
620
|
+
type?: string;
|
|
621
|
+
});
|
|
622
|
+
readonly name: string;
|
|
623
|
+
readonly namespace: string;
|
|
624
|
+
readonly uid: string;
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
export declare class EventsEvent {
|
|
628
|
+
constructor(props: {
|
|
629
|
+
/** eventTime is the time when this Event was first observed. It is required. */
|
|
630
|
+
eventTime: string;
|
|
631
|
+
/** action is what action was taken/failed regarding to the regarding object. It is machine-readable. This field cannot be empty for new Events and it can have at most 128 characters. */
|
|
632
|
+
action?: string;
|
|
633
|
+
/** deprecatedCount is the deprecated field assuring backward compatibility with core.v1 Event type. */
|
|
634
|
+
deprecatedCount?: number;
|
|
635
|
+
/** deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. */
|
|
636
|
+
deprecatedFirstTimestamp?: string;
|
|
637
|
+
/** deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. */
|
|
638
|
+
deprecatedLastTimestamp?: string;
|
|
639
|
+
/** deprecatedSource is the deprecated field assuring backward compatibility with core.v1 Event type. */
|
|
640
|
+
deprecatedSource?: Record<string, unknown>;
|
|
641
|
+
/** Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
|
|
642
|
+
metadata?: ObjectMeta;
|
|
643
|
+
/** note is a human-readable description of the status of this operation. Maximal length of the note is 1kB, but libraries should be prepared to handle values up to 64kB. */
|
|
644
|
+
note?: string;
|
|
645
|
+
/** reason is why the action was taken. It is human-readable. This field cannot be empty for new Events and it can have at most 128 characters. */
|
|
646
|
+
reason?: string;
|
|
647
|
+
/** regarding contains the object this Event is about. In most cases it's an Object reporting controller implements, e.g. ReplicaSetController implements ReplicaSets and this event is emitted because it acts on some changes in a ReplicaSet object. */
|
|
648
|
+
regarding?: ObjectReference;
|
|
649
|
+
/** related is the optional secondary object for more complex actions. E.g. when regarding object triggers a creation or deletion of related object. */
|
|
650
|
+
related?: ObjectReference;
|
|
651
|
+
/** reportingController is the name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. This field cannot be empty for new Events. */
|
|
652
|
+
reportingController?: string;
|
|
653
|
+
/** reportingInstance is the ID of the controller instance, e.g. `kubelet-xyzf`. This field cannot be empty for new Events and it can have at most 128 characters. */
|
|
654
|
+
reportingInstance?: string;
|
|
655
|
+
/** series is data about the Event series this event represents or nil if it's a singleton Event. */
|
|
656
|
+
series?: Record<string, unknown>;
|
|
657
|
+
/** type is the type of this event (Normal, Warning), new types could be added in the future. It is machine-readable. This field cannot be empty for new Events. */
|
|
658
|
+
type?: string;
|
|
659
|
+
});
|
|
660
|
+
readonly name: string;
|
|
661
|
+
readonly namespace: string;
|
|
662
|
+
readonly uid: string;
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
export declare class EventsEventList {
|
|
666
|
+
constructor(props: {
|
|
667
|
+
/** items is a list of schema objects. */
|
|
668
|
+
items: Record<string, unknown>[];
|
|
669
|
+
/** Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
|
|
670
|
+
metadata?: Record<string, unknown>;
|
|
671
|
+
});
|
|
672
|
+
readonly name: string;
|
|
673
|
+
readonly namespace: string;
|
|
674
|
+
readonly uid: string;
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
export declare class Eviction {
|
|
678
|
+
constructor(props: {
|
|
679
|
+
/** DeleteOptions may be provided */
|
|
680
|
+
deleteOptions?: Record<string, unknown>;
|
|
681
|
+
/** ObjectMeta describes the pod that is being evicted. */
|
|
682
|
+
metadata?: ObjectMeta;
|
|
683
|
+
});
|
|
684
|
+
readonly name: string;
|
|
685
|
+
readonly namespace: string;
|
|
686
|
+
readonly uid: string;
|
|
687
|
+
}
|
|
688
|
+
|
|
689
|
+
export declare class FlowSchema {
|
|
690
|
+
constructor(props: {
|
|
691
|
+
/** `metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
|
|
692
|
+
metadata?: ObjectMeta;
|
|
693
|
+
/** `spec` is the specification of the desired behavior of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status */
|
|
694
|
+
spec?: Record<string, unknown>;
|
|
695
|
+
});
|
|
696
|
+
readonly name: string;
|
|
697
|
+
readonly namespace: string;
|
|
698
|
+
readonly uid: string;
|
|
699
|
+
}
|
|
700
|
+
|
|
701
|
+
export declare class FlowSchemaList {
|
|
702
|
+
constructor(props: {
|
|
703
|
+
/** `items` is a list of FlowSchemas. */
|
|
704
|
+
items: Record<string, unknown>[];
|
|
705
|
+
/** `metadata` is the standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
|
|
706
|
+
metadata?: Record<string, unknown>;
|
|
707
|
+
});
|
|
708
|
+
readonly name: string;
|
|
709
|
+
readonly namespace: string;
|
|
710
|
+
readonly uid: string;
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
export declare class HorizontalPodAutoscaler {
|
|
714
|
+
constructor(props: {
|
|
715
|
+
/** metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
|
|
716
|
+
metadata?: ObjectMeta;
|
|
717
|
+
/** spec is the specification for the behaviour of the autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. */
|
|
718
|
+
spec?: Record<string, unknown>;
|
|
719
|
+
});
|
|
720
|
+
readonly name: string;
|
|
721
|
+
readonly namespace: string;
|
|
722
|
+
readonly uid: string;
|
|
723
|
+
}
|
|
724
|
+
|
|
725
|
+
export declare class HorizontalPodAutoscalerList {
|
|
726
|
+
constructor(props: {
|
|
727
|
+
/** items is the list of horizontal pod autoscaler objects. */
|
|
728
|
+
items: Record<string, unknown>[];
|
|
729
|
+
/** metadata is the standard list metadata. */
|
|
730
|
+
metadata?: Record<string, unknown>;
|
|
731
|
+
});
|
|
732
|
+
readonly name: string;
|
|
733
|
+
readonly namespace: string;
|
|
734
|
+
readonly uid: string;
|
|
735
|
+
}
|
|
736
|
+
|
|
737
|
+
export declare class HPA {
|
|
738
|
+
constructor(props: {
|
|
739
|
+
/** metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
|
|
740
|
+
metadata?: ObjectMeta;
|
|
741
|
+
/** spec is the specification for the behaviour of the autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. */
|
|
742
|
+
spec?: Record<string, unknown>;
|
|
743
|
+
});
|
|
744
|
+
readonly name: string;
|
|
745
|
+
readonly namespace: string;
|
|
746
|
+
readonly uid: string;
|
|
747
|
+
}
|
|
748
|
+
|
|
749
|
+
export declare class Ing {
|
|
750
|
+
constructor(props: {
|
|
751
|
+
/** Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
|
|
752
|
+
metadata?: ObjectMeta;
|
|
753
|
+
/** spec is the desired state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status */
|
|
754
|
+
spec?: Record<string, unknown>;
|
|
755
|
+
});
|
|
756
|
+
readonly name: string;
|
|
757
|
+
readonly namespace: string;
|
|
758
|
+
readonly uid: string;
|
|
759
|
+
}
|
|
760
|
+
|
|
761
|
+
export declare class Ingress {
|
|
762
|
+
constructor(props: {
|
|
763
|
+
/** Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
|
|
764
|
+
metadata?: ObjectMeta;
|
|
765
|
+
/** spec is the desired state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status */
|
|
766
|
+
spec?: Record<string, unknown>;
|
|
767
|
+
});
|
|
768
|
+
readonly name: string;
|
|
769
|
+
readonly namespace: string;
|
|
770
|
+
readonly uid: string;
|
|
771
|
+
}
|
|
772
|
+
|
|
773
|
+
export declare class IngressClass {
|
|
774
|
+
constructor(props: {
|
|
775
|
+
/** Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
|
|
776
|
+
metadata?: ObjectMeta;
|
|
777
|
+
/** spec is the desired state of the IngressClass. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status */
|
|
778
|
+
spec?: Record<string, unknown>;
|
|
779
|
+
});
|
|
780
|
+
readonly name: string;
|
|
781
|
+
readonly namespace: string;
|
|
782
|
+
readonly uid: string;
|
|
783
|
+
}
|
|
784
|
+
|
|
785
|
+
export declare class IngressClassList {
|
|
786
|
+
constructor(props: {
|
|
787
|
+
/** items is the list of IngressClasses. */
|
|
788
|
+
items: Record<string, unknown>[];
|
|
789
|
+
/** Standard list metadata. */
|
|
790
|
+
metadata?: Record<string, unknown>;
|
|
791
|
+
});
|
|
792
|
+
readonly name: string;
|
|
793
|
+
readonly namespace: string;
|
|
794
|
+
readonly uid: string;
|
|
795
|
+
}
|
|
796
|
+
|
|
797
|
+
export declare class IngressList {
|
|
798
|
+
constructor(props: {
|
|
799
|
+
/** items is the list of Ingress. */
|
|
800
|
+
items: Record<string, unknown>[];
|
|
801
|
+
/** Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
|
|
802
|
+
metadata?: Record<string, unknown>;
|
|
803
|
+
});
|
|
804
|
+
readonly name: string;
|
|
805
|
+
readonly namespace: string;
|
|
806
|
+
readonly uid: string;
|
|
807
|
+
}
|
|
808
|
+
|
|
809
|
+
export declare class IPAddress {
|
|
810
|
+
constructor(props: {
|
|
811
|
+
/** Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
|
|
812
|
+
metadata?: ObjectMeta;
|
|
813
|
+
/** spec is the desired state of the IPAddress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status */
|
|
814
|
+
spec?: Record<string, unknown>;
|
|
815
|
+
});
|
|
816
|
+
readonly name: string;
|
|
817
|
+
readonly namespace: string;
|
|
818
|
+
readonly uid: string;
|
|
819
|
+
}
|
|
820
|
+
|
|
821
|
+
export declare class IPAddressList {
|
|
822
|
+
constructor(props: {
|
|
823
|
+
/** items is the list of IPAddresses. */
|
|
824
|
+
items: Record<string, unknown>[];
|
|
825
|
+
/** Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
|
|
826
|
+
metadata?: Record<string, unknown>;
|
|
827
|
+
});
|
|
828
|
+
readonly name: string;
|
|
829
|
+
readonly namespace: string;
|
|
830
|
+
readonly uid: string;
|
|
831
|
+
}
|
|
832
|
+
|
|
833
|
+
export declare class Job {
|
|
834
|
+
constructor(props: {
|
|
835
|
+
/** Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
|
|
836
|
+
metadata?: ObjectMeta;
|
|
837
|
+
/** Specification of the desired behavior of a job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status */
|
|
838
|
+
spec?: Record<string, unknown>;
|
|
839
|
+
});
|
|
840
|
+
readonly name: string;
|
|
841
|
+
readonly namespace: string;
|
|
842
|
+
readonly uid: string;
|
|
843
|
+
}
|
|
844
|
+
|
|
845
|
+
export declare class JobList {
|
|
846
|
+
constructor(props: {
|
|
847
|
+
/** items is the list of Jobs. */
|
|
848
|
+
items: Record<string, unknown>[];
|
|
849
|
+
/** Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
|
|
850
|
+
metadata?: Record<string, unknown>;
|
|
851
|
+
});
|
|
852
|
+
readonly name: string;
|
|
853
|
+
readonly namespace: string;
|
|
854
|
+
readonly uid: string;
|
|
855
|
+
}
|
|
856
|
+
|
|
857
|
+
export declare class Lease {
|
|
858
|
+
constructor(props: {
|
|
859
|
+
/** More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
|
|
860
|
+
metadata?: ObjectMeta;
|
|
861
|
+
/** spec contains the specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status */
|
|
862
|
+
spec?: Record<string, unknown>;
|
|
863
|
+
});
|
|
864
|
+
readonly name: string;
|
|
865
|
+
readonly namespace: string;
|
|
866
|
+
readonly uid: string;
|
|
867
|
+
}
|
|
868
|
+
|
|
869
|
+
export declare class LeaseList {
|
|
870
|
+
constructor(props: {
|
|
871
|
+
/** items is a list of schema objects. */
|
|
872
|
+
items: Record<string, unknown>[];
|
|
873
|
+
/** Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
|
|
874
|
+
metadata?: Record<string, unknown>;
|
|
875
|
+
});
|
|
876
|
+
readonly name: string;
|
|
877
|
+
readonly namespace: string;
|
|
878
|
+
readonly uid: string;
|
|
879
|
+
}
|
|
880
|
+
|
|
881
|
+
export declare class LimitRange {
|
|
882
|
+
constructor(props: {
|
|
883
|
+
/** Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
|
|
884
|
+
metadata?: ObjectMeta;
|
|
885
|
+
/** Spec defines the limits enforced. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status */
|
|
886
|
+
spec?: Record<string, unknown>;
|
|
887
|
+
});
|
|
888
|
+
readonly name: string;
|
|
889
|
+
readonly namespace: string;
|
|
890
|
+
readonly uid: string;
|
|
891
|
+
}
|
|
892
|
+
|
|
893
|
+
export declare class LimitRangeList {
|
|
894
|
+
constructor(props: {
|
|
895
|
+
/** Items is a list of LimitRange objects. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ */
|
|
896
|
+
items: Record<string, unknown>[];
|
|
897
|
+
/** Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds */
|
|
898
|
+
metadata?: Record<string, unknown>;
|
|
899
|
+
});
|
|
900
|
+
readonly name: string;
|
|
901
|
+
readonly namespace: string;
|
|
902
|
+
readonly uid: string;
|
|
903
|
+
}
|
|
904
|
+
|
|
905
|
+
export declare class LocalSubjectAccessReview {
|
|
906
|
+
constructor(props: {
|
|
907
|
+
/** Spec holds information about the request being evaluated. spec.namespace must be equal to the namespace you made the request against. If empty, it is defaulted. */
|
|
908
|
+
spec: Record<string, unknown>;
|
|
909
|
+
/** Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
|
|
910
|
+
metadata?: ObjectMeta;
|
|
911
|
+
});
|
|
912
|
+
readonly name: string;
|
|
913
|
+
readonly namespace: string;
|
|
914
|
+
readonly uid: string;
|
|
915
|
+
}
|
|
916
|
+
|
|
917
|
+
export declare class MutatingWebhookConfiguration {
|
|
918
|
+
constructor(props: {
|
|
919
|
+
/** Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. */
|
|
920
|
+
metadata?: ObjectMeta;
|
|
921
|
+
/** Webhooks is a list of webhooks and the affected resources and operations. */
|
|
922
|
+
webhooks?: Record<string, unknown>[];
|
|
923
|
+
});
|
|
924
|
+
readonly name: string;
|
|
925
|
+
readonly namespace: string;
|
|
926
|
+
readonly uid: string;
|
|
927
|
+
}
|
|
928
|
+
|
|
929
|
+
export declare class MutatingWebhookConfigurationList {
|
|
930
|
+
constructor(props: {
|
|
931
|
+
/** List of MutatingWebhookConfiguration. */
|
|
932
|
+
items: Record<string, unknown>[];
|
|
933
|
+
/** Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds */
|
|
934
|
+
metadata?: Record<string, unknown>;
|
|
935
|
+
});
|
|
936
|
+
readonly name: string;
|
|
937
|
+
readonly namespace: string;
|
|
938
|
+
readonly uid: string;
|
|
939
|
+
}
|
|
940
|
+
|
|
941
|
+
export declare class Namespace {
|
|
942
|
+
constructor(props: {
|
|
943
|
+
/** Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
|
|
944
|
+
metadata?: ObjectMeta;
|
|
945
|
+
/** Spec defines the behavior of the Namespace. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status */
|
|
946
|
+
spec?: Record<string, unknown>;
|
|
947
|
+
});
|
|
948
|
+
readonly name: string;
|
|
949
|
+
readonly namespace: string;
|
|
950
|
+
readonly uid: string;
|
|
951
|
+
}
|
|
952
|
+
|
|
953
|
+
export declare class NamespaceList {
|
|
954
|
+
constructor(props: {
|
|
955
|
+
/** Items is the list of Namespace objects in the list. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ */
|
|
956
|
+
items: Record<string, unknown>[];
|
|
957
|
+
/** Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds */
|
|
958
|
+
metadata?: Record<string, unknown>;
|
|
959
|
+
});
|
|
960
|
+
readonly name: string;
|
|
961
|
+
readonly namespace: string;
|
|
962
|
+
readonly uid: string;
|
|
963
|
+
}
|
|
964
|
+
|
|
965
|
+
export declare class NetPol {
|
|
966
|
+
constructor(props: {
|
|
967
|
+
/** Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
|
|
968
|
+
metadata?: ObjectMeta;
|
|
969
|
+
/** spec represents the specification of the desired behavior for this NetworkPolicy. */
|
|
970
|
+
spec?: Record<string, unknown>;
|
|
971
|
+
});
|
|
972
|
+
readonly name: string;
|
|
973
|
+
readonly namespace: string;
|
|
974
|
+
readonly uid: string;
|
|
975
|
+
}
|
|
976
|
+
|
|
977
|
+
export declare class NetworkPolicy {
|
|
978
|
+
constructor(props: {
|
|
979
|
+
/** Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
|
|
980
|
+
metadata?: ObjectMeta;
|
|
981
|
+
/** spec represents the specification of the desired behavior for this NetworkPolicy. */
|
|
982
|
+
spec?: Record<string, unknown>;
|
|
983
|
+
});
|
|
984
|
+
readonly name: string;
|
|
985
|
+
readonly namespace: string;
|
|
986
|
+
readonly uid: string;
|
|
987
|
+
}
|
|
988
|
+
|
|
989
|
+
export declare class NetworkPolicyList {
|
|
990
|
+
constructor(props: {
|
|
991
|
+
/** items is a list of schema objects. */
|
|
992
|
+
items: Record<string, unknown>[];
|
|
993
|
+
/** Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
|
|
994
|
+
metadata?: Record<string, unknown>;
|
|
995
|
+
});
|
|
996
|
+
readonly name: string;
|
|
997
|
+
readonly namespace: string;
|
|
998
|
+
readonly uid: string;
|
|
999
|
+
}
|
|
1000
|
+
|
|
1001
|
+
export declare class Node {
|
|
1002
|
+
constructor(props: {
|
|
1003
|
+
/** Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
|
|
1004
|
+
metadata?: ObjectMeta;
|
|
1005
|
+
/** Spec defines the behavior of a node. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status */
|
|
1006
|
+
spec?: Record<string, unknown>;
|
|
1007
|
+
});
|
|
1008
|
+
readonly name: string;
|
|
1009
|
+
readonly namespace: string;
|
|
1010
|
+
readonly uid: string;
|
|
1011
|
+
}
|
|
1012
|
+
|
|
1013
|
+
export declare class NodeList {
|
|
1014
|
+
constructor(props: {
|
|
1015
|
+
/** List of nodes */
|
|
1016
|
+
items: Record<string, unknown>[];
|
|
1017
|
+
/** Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds */
|
|
1018
|
+
metadata?: Record<string, unknown>;
|
|
1019
|
+
});
|
|
1020
|
+
readonly name: string;
|
|
1021
|
+
readonly namespace: string;
|
|
1022
|
+
readonly uid: string;
|
|
1023
|
+
}
|
|
1024
|
+
|
|
1025
|
+
export declare class NS {
|
|
1026
|
+
constructor(props: {
|
|
1027
|
+
/** Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
|
|
1028
|
+
metadata?: ObjectMeta;
|
|
1029
|
+
/** Spec defines the behavior of the Namespace. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status */
|
|
1030
|
+
spec?: Record<string, unknown>;
|
|
1031
|
+
});
|
|
1032
|
+
readonly name: string;
|
|
1033
|
+
readonly namespace: string;
|
|
1034
|
+
readonly uid: string;
|
|
1035
|
+
}
|
|
1036
|
+
|
|
1037
|
+
export declare class PDB {
|
|
1038
|
+
constructor(props: {
|
|
1039
|
+
/** Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
|
|
1040
|
+
metadata?: ObjectMeta;
|
|
1041
|
+
/** Specification of the desired behavior of the PodDisruptionBudget. */
|
|
1042
|
+
spec?: PodDisruptionBudgetSpec;
|
|
1043
|
+
});
|
|
1044
|
+
readonly name: string;
|
|
1045
|
+
readonly namespace: string;
|
|
1046
|
+
readonly uid: string;
|
|
1047
|
+
}
|
|
1048
|
+
|
|
1049
|
+
export declare class PersistentVolume {
|
|
1050
|
+
constructor(props: {
|
|
1051
|
+
/** Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
|
|
1052
|
+
metadata?: ObjectMeta;
|
|
1053
|
+
/** spec defines a specification of a persistent volume owned by the cluster. Provisioned by an administrator. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes */
|
|
1054
|
+
spec?: Record<string, unknown>;
|
|
1055
|
+
});
|
|
1056
|
+
readonly name: string;
|
|
1057
|
+
readonly namespace: string;
|
|
1058
|
+
readonly uid: string;
|
|
1059
|
+
}
|
|
1060
|
+
|
|
1061
|
+
export declare class PersistentVolumeClaim {
|
|
1062
|
+
constructor(props: {
|
|
1063
|
+
/** Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
|
|
1064
|
+
metadata?: ObjectMeta;
|
|
1065
|
+
/** spec defines the desired characteristics of a volume requested by a pod author. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims */
|
|
1066
|
+
spec?: PersistentVolumeClaimSpec;
|
|
1067
|
+
});
|
|
1068
|
+
readonly name: string;
|
|
1069
|
+
readonly namespace: string;
|
|
1070
|
+
readonly uid: string;
|
|
1071
|
+
}
|
|
1072
|
+
|
|
1073
|
+
export declare class PersistentVolumeClaimList {
|
|
1074
|
+
constructor(props: {
|
|
1075
|
+
/** items is a list of persistent volume claims. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims */
|
|
1076
|
+
items: Record<string, unknown>[];
|
|
1077
|
+
/** Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds */
|
|
1078
|
+
metadata?: Record<string, unknown>;
|
|
1079
|
+
});
|
|
1080
|
+
readonly name: string;
|
|
1081
|
+
readonly namespace: string;
|
|
1082
|
+
readonly uid: string;
|
|
1083
|
+
}
|
|
1084
|
+
|
|
1085
|
+
export declare class PersistentVolumeList {
|
|
1086
|
+
constructor(props: {
|
|
1087
|
+
/** items is a list of persistent volumes. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes */
|
|
1088
|
+
items: Record<string, unknown>[];
|
|
1089
|
+
/** Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds */
|
|
1090
|
+
metadata?: Record<string, unknown>;
|
|
1091
|
+
});
|
|
1092
|
+
readonly name: string;
|
|
1093
|
+
readonly namespace: string;
|
|
1094
|
+
readonly uid: string;
|
|
1095
|
+
}
|
|
1096
|
+
|
|
1097
|
+
export declare class Pod {
|
|
1098
|
+
constructor(props: {
|
|
1099
|
+
/** Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
|
|
1100
|
+
metadata?: ObjectMeta;
|
|
1101
|
+
/** Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status */
|
|
1102
|
+
spec?: PodSpec;
|
|
1103
|
+
});
|
|
1104
|
+
readonly name: string;
|
|
1105
|
+
readonly namespace: string;
|
|
1106
|
+
readonly uid: string;
|
|
1107
|
+
}
|
|
1108
|
+
|
|
1109
|
+
export declare class PodDisruptionBudget {
|
|
1110
|
+
constructor(props: {
|
|
1111
|
+
/** Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
|
|
1112
|
+
metadata?: ObjectMeta;
|
|
1113
|
+
/** Specification of the desired behavior of the PodDisruptionBudget. */
|
|
1114
|
+
spec?: PodDisruptionBudgetSpec;
|
|
1115
|
+
});
|
|
1116
|
+
readonly name: string;
|
|
1117
|
+
readonly namespace: string;
|
|
1118
|
+
readonly uid: string;
|
|
1119
|
+
}
|
|
1120
|
+
|
|
1121
|
+
export declare class PodDisruptionBudgetList {
|
|
1122
|
+
constructor(props: {
|
|
1123
|
+
/** Items is a list of PodDisruptionBudgets */
|
|
1124
|
+
items: Record<string, unknown>[];
|
|
1125
|
+
/** Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
|
|
1126
|
+
metadata?: Record<string, unknown>;
|
|
1127
|
+
});
|
|
1128
|
+
readonly name: string;
|
|
1129
|
+
readonly namespace: string;
|
|
1130
|
+
readonly uid: string;
|
|
1131
|
+
}
|
|
1132
|
+
|
|
1133
|
+
export declare class PodList {
|
|
1134
|
+
constructor(props: {
|
|
1135
|
+
/** List of pods. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md */
|
|
1136
|
+
items: Record<string, unknown>[];
|
|
1137
|
+
/** Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds */
|
|
1138
|
+
metadata?: Record<string, unknown>;
|
|
1139
|
+
});
|
|
1140
|
+
readonly name: string;
|
|
1141
|
+
readonly namespace: string;
|
|
1142
|
+
readonly uid: string;
|
|
1143
|
+
}
|
|
1144
|
+
|
|
1145
|
+
export declare class PodTemplate {
|
|
1146
|
+
constructor(props: {
|
|
1147
|
+
/** Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
|
|
1148
|
+
metadata?: ObjectMeta;
|
|
1149
|
+
/** Template defines the pods that will be created from this pod template. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status */
|
|
1150
|
+
template?: PodTemplateSpec;
|
|
1151
|
+
});
|
|
1152
|
+
readonly name: string;
|
|
1153
|
+
readonly namespace: string;
|
|
1154
|
+
readonly uid: string;
|
|
1155
|
+
}
|
|
1156
|
+
|
|
1157
|
+
export declare class PodTemplateList {
|
|
1158
|
+
constructor(props: {
|
|
1159
|
+
/** List of pod templates */
|
|
1160
|
+
items: Record<string, unknown>[];
|
|
1161
|
+
/** Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds */
|
|
1162
|
+
metadata?: Record<string, unknown>;
|
|
1163
|
+
});
|
|
1164
|
+
readonly name: string;
|
|
1165
|
+
readonly namespace: string;
|
|
1166
|
+
readonly uid: string;
|
|
1167
|
+
}
|
|
1168
|
+
|
|
1169
|
+
export declare class PriorityClass {
|
|
1170
|
+
constructor(props: {
|
|
1171
|
+
/** value represents the integer value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec. */
|
|
1172
|
+
value: number;
|
|
1173
|
+
/** description is an arbitrary string that usually provides guidelines on when this priority class should be used. */
|
|
1174
|
+
description?: string;
|
|
1175
|
+
/** globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority. */
|
|
1176
|
+
globalDefault?: boolean;
|
|
1177
|
+
/** Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
|
|
1178
|
+
metadata?: ObjectMeta;
|
|
1179
|
+
/** preemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. */
|
|
1180
|
+
preemptionPolicy?: string;
|
|
1181
|
+
});
|
|
1182
|
+
readonly name: string;
|
|
1183
|
+
readonly namespace: string;
|
|
1184
|
+
readonly uid: string;
|
|
1185
|
+
}
|
|
1186
|
+
|
|
1187
|
+
export declare class PriorityClassList {
|
|
1188
|
+
constructor(props: {
|
|
1189
|
+
/** items is the list of PriorityClasses */
|
|
1190
|
+
items: Record<string, unknown>[];
|
|
1191
|
+
/** Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
|
|
1192
|
+
metadata?: Record<string, unknown>;
|
|
1193
|
+
});
|
|
1194
|
+
readonly name: string;
|
|
1195
|
+
readonly namespace: string;
|
|
1196
|
+
readonly uid: string;
|
|
1197
|
+
}
|
|
1198
|
+
|
|
1199
|
+
export declare class PriorityLevelConfiguration {
|
|
1200
|
+
constructor(props: {
|
|
1201
|
+
/** `metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
|
|
1202
|
+
metadata?: ObjectMeta;
|
|
1203
|
+
/** `spec` is the specification of the desired behavior of a "request-priority". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status */
|
|
1204
|
+
spec?: Record<string, unknown>;
|
|
1205
|
+
});
|
|
1206
|
+
readonly name: string;
|
|
1207
|
+
readonly namespace: string;
|
|
1208
|
+
readonly uid: string;
|
|
1209
|
+
}
|
|
1210
|
+
|
|
1211
|
+
export declare class PriorityLevelConfigurationList {
|
|
1212
|
+
constructor(props: {
|
|
1213
|
+
/** `items` is a list of request-priorities. */
|
|
1214
|
+
items: Record<string, unknown>[];
|
|
1215
|
+
/** `metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
|
|
1216
|
+
metadata?: Record<string, unknown>;
|
|
1217
|
+
});
|
|
1218
|
+
readonly name: string;
|
|
1219
|
+
readonly namespace: string;
|
|
1220
|
+
readonly uid: string;
|
|
1221
|
+
}
|
|
1222
|
+
|
|
1223
|
+
export declare class PV {
|
|
1224
|
+
constructor(props: {
|
|
1225
|
+
/** Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
|
|
1226
|
+
metadata?: ObjectMeta;
|
|
1227
|
+
/** spec defines a specification of a persistent volume owned by the cluster. Provisioned by an administrator. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes */
|
|
1228
|
+
spec?: Record<string, unknown>;
|
|
1229
|
+
});
|
|
1230
|
+
readonly name: string;
|
|
1231
|
+
readonly namespace: string;
|
|
1232
|
+
readonly uid: string;
|
|
1233
|
+
}
|
|
1234
|
+
|
|
1235
|
+
export declare class PVC {
|
|
1236
|
+
constructor(props: {
|
|
1237
|
+
/** Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
|
|
1238
|
+
metadata?: ObjectMeta;
|
|
1239
|
+
/** spec defines the desired characteristics of a volume requested by a pod author. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims */
|
|
1240
|
+
spec?: PersistentVolumeClaimSpec;
|
|
1241
|
+
});
|
|
1242
|
+
readonly name: string;
|
|
1243
|
+
readonly namespace: string;
|
|
1244
|
+
readonly uid: string;
|
|
1245
|
+
}
|
|
1246
|
+
|
|
1247
|
+
export declare class ReplicaSet {
|
|
1248
|
+
constructor(props: {
|
|
1249
|
+
/** If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
|
|
1250
|
+
metadata?: ObjectMeta;
|
|
1251
|
+
/** Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status */
|
|
1252
|
+
spec?: Record<string, unknown>;
|
|
1253
|
+
});
|
|
1254
|
+
readonly name: string;
|
|
1255
|
+
readonly namespace: string;
|
|
1256
|
+
readonly uid: string;
|
|
1257
|
+
}
|
|
1258
|
+
|
|
1259
|
+
export declare class ReplicaSetList {
|
|
1260
|
+
constructor(props: {
|
|
1261
|
+
/** List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller */
|
|
1262
|
+
items: Record<string, unknown>[];
|
|
1263
|
+
/** Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds */
|
|
1264
|
+
metadata?: Record<string, unknown>;
|
|
1265
|
+
});
|
|
1266
|
+
readonly name: string;
|
|
1267
|
+
readonly namespace: string;
|
|
1268
|
+
readonly uid: string;
|
|
1269
|
+
}
|
|
1270
|
+
|
|
1271
|
+
export declare class ReplicationController {
|
|
1272
|
+
constructor(props: {
|
|
1273
|
+
/** If the Labels of a ReplicationController are empty, they are defaulted to be the same as the Pod(s) that the replication controller manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
|
|
1274
|
+
metadata?: ObjectMeta;
|
|
1275
|
+
/** Spec defines the specification of the desired behavior of the replication controller. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status */
|
|
1276
|
+
spec?: Record<string, unknown>;
|
|
1277
|
+
});
|
|
1278
|
+
readonly name: string;
|
|
1279
|
+
readonly namespace: string;
|
|
1280
|
+
readonly uid: string;
|
|
1281
|
+
}
|
|
1282
|
+
|
|
1283
|
+
export declare class ReplicationControllerList {
|
|
1284
|
+
constructor(props: {
|
|
1285
|
+
/** List of replication controllers. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller */
|
|
1286
|
+
items: Record<string, unknown>[];
|
|
1287
|
+
/** Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds */
|
|
1288
|
+
metadata?: Record<string, unknown>;
|
|
1289
|
+
});
|
|
1290
|
+
readonly name: string;
|
|
1291
|
+
readonly namespace: string;
|
|
1292
|
+
readonly uid: string;
|
|
1293
|
+
}
|
|
1294
|
+
|
|
1295
|
+
export declare class ResourceClaim {
|
|
1296
|
+
constructor(props: {
|
|
1297
|
+
/** Spec describes what is being requested and how to configure it. The spec is immutable. */
|
|
1298
|
+
spec: Record<string, unknown>;
|
|
1299
|
+
/** Standard object metadata */
|
|
1300
|
+
metadata?: ObjectMeta;
|
|
1301
|
+
});
|
|
1302
|
+
readonly name: string;
|
|
1303
|
+
readonly namespace: string;
|
|
1304
|
+
readonly uid: string;
|
|
1305
|
+
}
|
|
1306
|
+
|
|
1307
|
+
export declare class ResourceClaimList {
|
|
1308
|
+
constructor(props: {
|
|
1309
|
+
/** Items is the list of resource claims. */
|
|
1310
|
+
items: Record<string, unknown>[];
|
|
1311
|
+
/** Standard list metadata */
|
|
1312
|
+
metadata?: Record<string, unknown>;
|
|
1313
|
+
});
|
|
1314
|
+
readonly name: string;
|
|
1315
|
+
readonly namespace: string;
|
|
1316
|
+
readonly uid: string;
|
|
1317
|
+
}
|
|
1318
|
+
|
|
1319
|
+
export declare class ResourceClaimTemplate {
|
|
1320
|
+
constructor(props: {
|
|
1321
|
+
/** Describes the ResourceClaim that is to be generated.
|
|
1322
|
+
|
|
1323
|
+
This field is immutable. A ResourceClaim will get created by the control plane for a Pod when needed and then not get updated anymore. */
|
|
1324
|
+
spec: Record<string, unknown>;
|
|
1325
|
+
/** Standard object metadata */
|
|
1326
|
+
metadata?: ObjectMeta;
|
|
1327
|
+
});
|
|
1328
|
+
readonly name: string;
|
|
1329
|
+
readonly namespace: string;
|
|
1330
|
+
readonly uid: string;
|
|
1331
|
+
}
|
|
1332
|
+
|
|
1333
|
+
export declare class ResourceClaimTemplateList {
|
|
1334
|
+
constructor(props: {
|
|
1335
|
+
/** Items is the list of resource claim templates. */
|
|
1336
|
+
items: Record<string, unknown>[];
|
|
1337
|
+
/** Standard list metadata */
|
|
1338
|
+
metadata?: Record<string, unknown>;
|
|
1339
|
+
});
|
|
1340
|
+
readonly name: string;
|
|
1341
|
+
readonly namespace: string;
|
|
1342
|
+
readonly uid: string;
|
|
1343
|
+
}
|
|
1344
|
+
|
|
1345
|
+
export declare class ResourceQuota {
|
|
1346
|
+
constructor(props: {
|
|
1347
|
+
/** Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
|
|
1348
|
+
metadata?: ObjectMeta;
|
|
1349
|
+
/** Spec defines the desired quota. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status */
|
|
1350
|
+
spec?: Record<string, unknown>;
|
|
1351
|
+
});
|
|
1352
|
+
readonly name: string;
|
|
1353
|
+
readonly namespace: string;
|
|
1354
|
+
readonly uid: string;
|
|
1355
|
+
}
|
|
1356
|
+
|
|
1357
|
+
export declare class ResourceQuotaList {
|
|
1358
|
+
constructor(props: {
|
|
1359
|
+
/** Items is a list of ResourceQuota objects. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/ */
|
|
1360
|
+
items: Record<string, unknown>[];
|
|
1361
|
+
/** Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds */
|
|
1362
|
+
metadata?: Record<string, unknown>;
|
|
1363
|
+
});
|
|
1364
|
+
readonly name: string;
|
|
1365
|
+
readonly namespace: string;
|
|
1366
|
+
readonly uid: string;
|
|
1367
|
+
}
|
|
1368
|
+
|
|
1369
|
+
export declare class ResourceSlice {
|
|
1370
|
+
constructor(props: {
|
|
1371
|
+
/** Contains the information published by the driver.
|
|
1372
|
+
|
|
1373
|
+
Changing the spec automatically increments the metadata.generation number. */
|
|
1374
|
+
spec: Record<string, unknown>;
|
|
1375
|
+
/** Standard object metadata */
|
|
1376
|
+
metadata?: ObjectMeta;
|
|
1377
|
+
});
|
|
1378
|
+
readonly name: string;
|
|
1379
|
+
readonly namespace: string;
|
|
1380
|
+
readonly uid: string;
|
|
1381
|
+
}
|
|
1382
|
+
|
|
1383
|
+
export declare class ResourceSliceList {
|
|
1384
|
+
constructor(props: {
|
|
1385
|
+
/** Items is the list of resource ResourceSlices. */
|
|
1386
|
+
items: Record<string, unknown>[];
|
|
1387
|
+
/** Standard list metadata */
|
|
1388
|
+
metadata?: Record<string, unknown>;
|
|
1389
|
+
});
|
|
1390
|
+
readonly name: string;
|
|
1391
|
+
readonly namespace: string;
|
|
1392
|
+
readonly uid: string;
|
|
1393
|
+
}
|
|
1394
|
+
|
|
1395
|
+
export declare class Role {
|
|
1396
|
+
constructor(props: {
|
|
1397
|
+
/** Standard object's metadata. */
|
|
1398
|
+
metadata?: ObjectMeta;
|
|
1399
|
+
/** Rules holds all the PolicyRules for this Role */
|
|
1400
|
+
rules?: PolicyRule[];
|
|
1401
|
+
});
|
|
1402
|
+
readonly name: string;
|
|
1403
|
+
readonly namespace: string;
|
|
1404
|
+
readonly uid: string;
|
|
1405
|
+
}
|
|
1406
|
+
|
|
1407
|
+
export declare class RoleBinding {
|
|
1408
|
+
constructor(props: {
|
|
1409
|
+
/** RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. This field is immutable. */
|
|
1410
|
+
roleRef: RoleRef;
|
|
1411
|
+
/** Standard object's metadata. */
|
|
1412
|
+
metadata?: ObjectMeta;
|
|
1413
|
+
/** Subjects holds references to the objects the role applies to. */
|
|
1414
|
+
subjects?: Subject[];
|
|
1415
|
+
});
|
|
1416
|
+
readonly name: string;
|
|
1417
|
+
readonly namespace: string;
|
|
1418
|
+
readonly uid: string;
|
|
1419
|
+
}
|
|
1420
|
+
|
|
1421
|
+
export declare class RoleBindingList {
|
|
1422
|
+
constructor(props: {
|
|
1423
|
+
/** Items is a list of RoleBindings */
|
|
1424
|
+
items: Record<string, unknown>[];
|
|
1425
|
+
/** Standard object's metadata. */
|
|
1426
|
+
metadata?: Record<string, unknown>;
|
|
1427
|
+
});
|
|
1428
|
+
readonly name: string;
|
|
1429
|
+
readonly namespace: string;
|
|
1430
|
+
readonly uid: string;
|
|
1431
|
+
}
|
|
1432
|
+
|
|
1433
|
+
export declare class RoleList {
|
|
1434
|
+
constructor(props: {
|
|
1435
|
+
/** Items is a list of Roles */
|
|
1436
|
+
items: Record<string, unknown>[];
|
|
1437
|
+
/** Standard object's metadata. */
|
|
1438
|
+
metadata?: Record<string, unknown>;
|
|
1439
|
+
});
|
|
1440
|
+
readonly name: string;
|
|
1441
|
+
readonly namespace: string;
|
|
1442
|
+
readonly uid: string;
|
|
1443
|
+
}
|
|
1444
|
+
|
|
1445
|
+
export declare class RuntimeClass {
|
|
1446
|
+
constructor(props: {
|
|
1447
|
+
/** handler specifies the underlying runtime and configuration that the CRI implementation will use to handle pods of this class. The possible values are specific to the node & CRI configuration. It is assumed that all handlers are available on every node, and handlers of the same name are equivalent on every node. For example, a handler called "runc" might specify that the runc OCI runtime (using native Linux containers) will be used to run the containers in a pod. The Handler must be lowercase, conform to the DNS Label (RFC 1123) requirements, and is immutable. */
|
|
1448
|
+
handler: string;
|
|
1449
|
+
/** More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
|
|
1450
|
+
metadata?: ObjectMeta;
|
|
1451
|
+
/** overhead represents the resource overhead associated with running a pod for a given RuntimeClass. For more details, see
|
|
1452
|
+
https://kubernetes.io/docs/concepts/scheduling-eviction/pod-overhead/ */
|
|
1453
|
+
overhead?: Record<string, unknown>;
|
|
1454
|
+
/** scheduling holds the scheduling constraints to ensure that pods running with this RuntimeClass are scheduled to nodes that support it. If scheduling is nil, this RuntimeClass is assumed to be supported by all nodes. */
|
|
1455
|
+
scheduling?: Record<string, unknown>;
|
|
1456
|
+
});
|
|
1457
|
+
readonly name: string;
|
|
1458
|
+
readonly namespace: string;
|
|
1459
|
+
readonly uid: string;
|
|
1460
|
+
}
|
|
1461
|
+
|
|
1462
|
+
export declare class RuntimeClassList {
|
|
1463
|
+
constructor(props: {
|
|
1464
|
+
/** items is a list of schema objects. */
|
|
1465
|
+
items: Record<string, unknown>[];
|
|
1466
|
+
/** Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
|
|
1467
|
+
metadata?: Record<string, unknown>;
|
|
1468
|
+
});
|
|
1469
|
+
readonly name: string;
|
|
1470
|
+
readonly namespace: string;
|
|
1471
|
+
readonly uid: string;
|
|
1472
|
+
}
|
|
1473
|
+
|
|
1474
|
+
export declare class SA {
|
|
1475
|
+
constructor(props: {
|
|
1476
|
+
/** AutomountServiceAccountToken indicates whether pods running as this service account should have an API token automatically mounted. Can be overridden at the pod level. */
|
|
1477
|
+
automountServiceAccountToken?: boolean;
|
|
1478
|
+
/** ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet. More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod */
|
|
1479
|
+
imagePullSecrets?: LocalObjectReference[];
|
|
1480
|
+
/** Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
|
|
1481
|
+
metadata?: ObjectMeta;
|
|
1482
|
+
/** Secrets is a list of the secrets in the same namespace that pods running using this ServiceAccount are allowed to use. Pods are only limited to this list if this service account has a "kubernetes.io/enforce-mountable-secrets" annotation set to "true". The "kubernetes.io/enforce-mountable-secrets" annotation is deprecated since v1.32. Prefer separate namespaces to isolate access to mounted secrets. This field should not be used to find auto-generated service account token secrets for use outside of pods. Instead, tokens can be requested directly using the TokenRequest API, or service account token secrets can be manually created. More info: https://kubernetes.io/docs/concepts/configuration/secret */
|
|
1483
|
+
secrets?: ObjectReference[];
|
|
1484
|
+
});
|
|
1485
|
+
readonly name: string;
|
|
1486
|
+
readonly namespace: string;
|
|
1487
|
+
readonly uid: string;
|
|
1488
|
+
}
|
|
1489
|
+
|
|
1490
|
+
export declare class Scale {
|
|
1491
|
+
constructor(props: {
|
|
1492
|
+
/** Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. */
|
|
1493
|
+
metadata?: ObjectMeta;
|
|
1494
|
+
/** spec defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. */
|
|
1495
|
+
spec?: Record<string, unknown>;
|
|
1496
|
+
});
|
|
1497
|
+
readonly name: string;
|
|
1498
|
+
readonly namespace: string;
|
|
1499
|
+
readonly uid: string;
|
|
1500
|
+
}
|
|
1501
|
+
|
|
1502
|
+
export declare class Sec {
|
|
1503
|
+
constructor(props: {
|
|
1504
|
+
/** Data contains the secret data. Each key must consist of alphanumeric characters, '-', '_' or '.'. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4 */
|
|
1505
|
+
data?: Record<string, string>;
|
|
1506
|
+
/** Immutable, if set to true, ensures that data stored in the Secret cannot be updated (only object metadata can be modified). If not set to true, the field can be modified at any time. Defaulted to nil. */
|
|
1507
|
+
immutable?: boolean;
|
|
1508
|
+
/** Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
|
|
1509
|
+
metadata?: ObjectMeta;
|
|
1510
|
+
/** stringData allows specifying non-binary secret data in string form. It is provided as a write-only input field for convenience. All keys and values are merged into the data field on write, overwriting any existing values. The stringData field is never output when reading from the API. */
|
|
1511
|
+
stringData?: Record<string, string>;
|
|
1512
|
+
/** Used to facilitate programmatic handling of secret data. More info: https://kubernetes.io/docs/concepts/configuration/secret/#secret-types */
|
|
1513
|
+
type?: string;
|
|
1514
|
+
});
|
|
1515
|
+
readonly name: string;
|
|
1516
|
+
readonly namespace: string;
|
|
1517
|
+
readonly uid: string;
|
|
1518
|
+
}
|
|
1519
|
+
|
|
1520
|
+
export declare class Secret {
|
|
1521
|
+
constructor(props: {
|
|
1522
|
+
/** Data contains the secret data. Each key must consist of alphanumeric characters, '-', '_' or '.'. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4 */
|
|
1523
|
+
data?: Record<string, string>;
|
|
1524
|
+
/** Immutable, if set to true, ensures that data stored in the Secret cannot be updated (only object metadata can be modified). If not set to true, the field can be modified at any time. Defaulted to nil. */
|
|
1525
|
+
immutable?: boolean;
|
|
1526
|
+
/** Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
|
|
1527
|
+
metadata?: ObjectMeta;
|
|
1528
|
+
/** stringData allows specifying non-binary secret data in string form. It is provided as a write-only input field for convenience. All keys and values are merged into the data field on write, overwriting any existing values. The stringData field is never output when reading from the API. */
|
|
1529
|
+
stringData?: Record<string, string>;
|
|
1530
|
+
/** Used to facilitate programmatic handling of secret data. More info: https://kubernetes.io/docs/concepts/configuration/secret/#secret-types */
|
|
1531
|
+
type?: string;
|
|
1532
|
+
});
|
|
1533
|
+
readonly name: string;
|
|
1534
|
+
readonly namespace: string;
|
|
1535
|
+
readonly uid: string;
|
|
1536
|
+
}
|
|
1537
|
+
|
|
1538
|
+
export declare class SecretList {
|
|
1539
|
+
constructor(props: {
|
|
1540
|
+
/** Items is a list of secret objects. More info: https://kubernetes.io/docs/concepts/configuration/secret */
|
|
1541
|
+
items: Record<string, unknown>[];
|
|
1542
|
+
/** Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds */
|
|
1543
|
+
metadata?: Record<string, unknown>;
|
|
1544
|
+
});
|
|
1545
|
+
readonly name: string;
|
|
1546
|
+
readonly namespace: string;
|
|
1547
|
+
readonly uid: string;
|
|
1548
|
+
}
|
|
1549
|
+
|
|
1550
|
+
export declare class SelfSubjectAccessReview {
|
|
1551
|
+
constructor(props: {
|
|
1552
|
+
/** Spec holds information about the request being evaluated. user and groups must be empty */
|
|
1553
|
+
spec: Record<string, unknown>;
|
|
1554
|
+
/** Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
|
|
1555
|
+
metadata?: ObjectMeta;
|
|
1556
|
+
});
|
|
1557
|
+
readonly name: string;
|
|
1558
|
+
readonly namespace: string;
|
|
1559
|
+
readonly uid: string;
|
|
1560
|
+
}
|
|
1561
|
+
|
|
1562
|
+
export declare class SelfSubjectReview {
|
|
1563
|
+
constructor(props: {
|
|
1564
|
+
/** Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
|
|
1565
|
+
metadata?: ObjectMeta;
|
|
1566
|
+
});
|
|
1567
|
+
readonly name: string;
|
|
1568
|
+
readonly namespace: string;
|
|
1569
|
+
readonly uid: string;
|
|
1570
|
+
}
|
|
1571
|
+
|
|
1572
|
+
export declare class SelfSubjectRulesReview {
|
|
1573
|
+
constructor(props: {
|
|
1574
|
+
/** Spec holds information about the request being evaluated. */
|
|
1575
|
+
spec: Record<string, unknown>;
|
|
1576
|
+
/** Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
|
|
1577
|
+
metadata?: ObjectMeta;
|
|
1578
|
+
});
|
|
1579
|
+
readonly name: string;
|
|
1580
|
+
readonly namespace: string;
|
|
1581
|
+
readonly uid: string;
|
|
1582
|
+
}
|
|
1583
|
+
|
|
1584
|
+
export declare class Service {
|
|
1585
|
+
constructor(props: {
|
|
1586
|
+
/** Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
|
|
1587
|
+
metadata?: ObjectMeta;
|
|
1588
|
+
/** Spec defines the behavior of a service. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status */
|
|
1589
|
+
spec?: Record<string, unknown>;
|
|
1590
|
+
});
|
|
1591
|
+
readonly name: string;
|
|
1592
|
+
readonly namespace: string;
|
|
1593
|
+
readonly uid: string;
|
|
1594
|
+
}
|
|
1595
|
+
|
|
1596
|
+
export declare class ServiceAccount {
|
|
1597
|
+
constructor(props: {
|
|
1598
|
+
/** AutomountServiceAccountToken indicates whether pods running as this service account should have an API token automatically mounted. Can be overridden at the pod level. */
|
|
1599
|
+
automountServiceAccountToken?: boolean;
|
|
1600
|
+
/** ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet. More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod */
|
|
1601
|
+
imagePullSecrets?: LocalObjectReference[];
|
|
1602
|
+
/** Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
|
|
1603
|
+
metadata?: ObjectMeta;
|
|
1604
|
+
/** Secrets is a list of the secrets in the same namespace that pods running using this ServiceAccount are allowed to use. Pods are only limited to this list if this service account has a "kubernetes.io/enforce-mountable-secrets" annotation set to "true". The "kubernetes.io/enforce-mountable-secrets" annotation is deprecated since v1.32. Prefer separate namespaces to isolate access to mounted secrets. This field should not be used to find auto-generated service account token secrets for use outside of pods. Instead, tokens can be requested directly using the TokenRequest API, or service account token secrets can be manually created. More info: https://kubernetes.io/docs/concepts/configuration/secret */
|
|
1605
|
+
secrets?: ObjectReference[];
|
|
1606
|
+
});
|
|
1607
|
+
readonly name: string;
|
|
1608
|
+
readonly namespace: string;
|
|
1609
|
+
readonly uid: string;
|
|
1610
|
+
}
|
|
1611
|
+
|
|
1612
|
+
export declare class ServiceAccountList {
|
|
1613
|
+
constructor(props: {
|
|
1614
|
+
/** List of ServiceAccounts. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ */
|
|
1615
|
+
items: Record<string, unknown>[];
|
|
1616
|
+
/** Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds */
|
|
1617
|
+
metadata?: Record<string, unknown>;
|
|
1618
|
+
});
|
|
1619
|
+
readonly name: string;
|
|
1620
|
+
readonly namespace: string;
|
|
1621
|
+
readonly uid: string;
|
|
1622
|
+
}
|
|
1623
|
+
|
|
1624
|
+
export declare class ServiceCIDR {
|
|
1625
|
+
constructor(props: {
|
|
1626
|
+
/** Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
|
|
1627
|
+
metadata?: ObjectMeta;
|
|
1628
|
+
/** spec is the desired state of the ServiceCIDR. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status */
|
|
1629
|
+
spec?: Record<string, unknown>;
|
|
1630
|
+
});
|
|
1631
|
+
readonly name: string;
|
|
1632
|
+
readonly namespace: string;
|
|
1633
|
+
readonly uid: string;
|
|
1634
|
+
}
|
|
1635
|
+
|
|
1636
|
+
export declare class ServiceCIDRList {
|
|
1637
|
+
constructor(props: {
|
|
1638
|
+
/** items is the list of ServiceCIDRs. */
|
|
1639
|
+
items: Record<string, unknown>[];
|
|
1640
|
+
/** Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
|
|
1641
|
+
metadata?: Record<string, unknown>;
|
|
1642
|
+
});
|
|
1643
|
+
readonly name: string;
|
|
1644
|
+
readonly namespace: string;
|
|
1645
|
+
readonly uid: string;
|
|
1646
|
+
}
|
|
1647
|
+
|
|
1648
|
+
export declare class ServiceList {
|
|
1649
|
+
constructor(props: {
|
|
1650
|
+
/** List of services */
|
|
1651
|
+
items: Record<string, unknown>[];
|
|
1652
|
+
/** Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds */
|
|
1653
|
+
metadata?: Record<string, unknown>;
|
|
1654
|
+
});
|
|
1655
|
+
readonly name: string;
|
|
1656
|
+
readonly namespace: string;
|
|
1657
|
+
readonly uid: string;
|
|
1658
|
+
}
|
|
1659
|
+
|
|
1660
|
+
export declare class StatefulSet {
|
|
1661
|
+
constructor(props: {
|
|
1662
|
+
/** Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
|
|
1663
|
+
metadata?: ObjectMeta;
|
|
1664
|
+
/** Spec defines the desired identities of pods in this set. */
|
|
1665
|
+
spec?: Record<string, unknown>;
|
|
1666
|
+
});
|
|
1667
|
+
readonly name: string;
|
|
1668
|
+
readonly namespace: string;
|
|
1669
|
+
readonly uid: string;
|
|
1670
|
+
}
|
|
1671
|
+
|
|
1672
|
+
export declare class StatefulSetList {
|
|
1673
|
+
constructor(props: {
|
|
1674
|
+
/** Items is the list of stateful sets. */
|
|
1675
|
+
items: Record<string, unknown>[];
|
|
1676
|
+
/** Standard list's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
|
|
1677
|
+
metadata?: Record<string, unknown>;
|
|
1678
|
+
});
|
|
1679
|
+
readonly name: string;
|
|
1680
|
+
readonly namespace: string;
|
|
1681
|
+
readonly uid: string;
|
|
1682
|
+
}
|
|
1683
|
+
|
|
1684
|
+
export declare class Status {
|
|
1685
|
+
constructor(props: {
|
|
1686
|
+
/** Suggested HTTP return code for this status, 0 if not set. */
|
|
1687
|
+
code?: number;
|
|
1688
|
+
/** Extended data associated with the reason. Each reason may define its own extended details. This field is optional and the data returned is not guaranteed to conform to any schema except that defined by the reason type. */
|
|
1689
|
+
details?: Record<string, unknown>;
|
|
1690
|
+
/** A human-readable description of the status of this operation. */
|
|
1691
|
+
message?: string;
|
|
1692
|
+
/** Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds */
|
|
1693
|
+
metadata?: Record<string, unknown>;
|
|
1694
|
+
/** A machine-readable description of why this operation is in the "Failure" status. If this value is empty there is no information available. A Reason clarifies an HTTP status code but does not override it. */
|
|
1695
|
+
reason?: string;
|
|
1696
|
+
});
|
|
1697
|
+
readonly name: string;
|
|
1698
|
+
readonly namespace: string;
|
|
1699
|
+
readonly uid: string;
|
|
1700
|
+
}
|
|
1701
|
+
|
|
1702
|
+
export declare class StorageClass {
|
|
1703
|
+
constructor(props: {
|
|
1704
|
+
/** provisioner indicates the type of the provisioner. */
|
|
1705
|
+
provisioner: string;
|
|
1706
|
+
/** 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. */
|
|
1707
|
+
allowedTopologies?: Record<string, unknown>[];
|
|
1708
|
+
/** allowVolumeExpansion shows whether the storage class allow volume expand. */
|
|
1709
|
+
allowVolumeExpansion?: boolean;
|
|
1710
|
+
/** Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
|
|
1711
|
+
metadata?: ObjectMeta;
|
|
1712
|
+
/** 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. */
|
|
1713
|
+
mountOptions?: string[];
|
|
1714
|
+
/** parameters holds the parameters for the provisioner that should create volumes of this storage class. */
|
|
1715
|
+
parameters?: Record<string, string>;
|
|
1716
|
+
/** reclaimPolicy controls the reclaimPolicy for dynamically provisioned PersistentVolumes of this storage class. Defaults to Delete. */
|
|
1717
|
+
reclaimPolicy?: string;
|
|
1718
|
+
/** 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. */
|
|
1719
|
+
volumeBindingMode?: string;
|
|
1720
|
+
});
|
|
1721
|
+
readonly name: string;
|
|
1722
|
+
readonly namespace: string;
|
|
1723
|
+
readonly uid: string;
|
|
1724
|
+
}
|
|
1725
|
+
|
|
1726
|
+
export declare class StorageClassList {
|
|
1727
|
+
constructor(props: {
|
|
1728
|
+
/** items is the list of StorageClasses */
|
|
1729
|
+
items: Record<string, unknown>[];
|
|
1730
|
+
/** Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
|
|
1731
|
+
metadata?: Record<string, unknown>;
|
|
1732
|
+
});
|
|
1733
|
+
readonly name: string;
|
|
1734
|
+
readonly namespace: string;
|
|
1735
|
+
readonly uid: string;
|
|
1736
|
+
}
|
|
1737
|
+
|
|
1738
|
+
export declare class STS {
|
|
1739
|
+
constructor(props: {
|
|
1740
|
+
/** Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
|
|
1741
|
+
metadata?: ObjectMeta;
|
|
1742
|
+
/** Spec defines the desired identities of pods in this set. */
|
|
1743
|
+
spec?: Record<string, unknown>;
|
|
1744
|
+
});
|
|
1745
|
+
readonly name: string;
|
|
1746
|
+
readonly namespace: string;
|
|
1747
|
+
readonly uid: string;
|
|
1748
|
+
}
|
|
1749
|
+
|
|
1750
|
+
export declare class SubjectAccessReview {
|
|
1751
|
+
constructor(props: {
|
|
1752
|
+
/** Spec holds information about the request being evaluated */
|
|
1753
|
+
spec: Record<string, unknown>;
|
|
1754
|
+
/** Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
|
|
1755
|
+
metadata?: ObjectMeta;
|
|
1756
|
+
});
|
|
1757
|
+
readonly name: string;
|
|
1758
|
+
readonly namespace: string;
|
|
1759
|
+
readonly uid: string;
|
|
1760
|
+
}
|
|
1761
|
+
|
|
1762
|
+
export declare class TokenRequest {
|
|
1763
|
+
constructor(props: {
|
|
1764
|
+
/** Spec holds information about the request being evaluated */
|
|
1765
|
+
spec: Record<string, unknown>;
|
|
1766
|
+
/** Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
|
|
1767
|
+
metadata?: ObjectMeta;
|
|
1768
|
+
});
|
|
1769
|
+
readonly name: string;
|
|
1770
|
+
readonly namespace: string;
|
|
1771
|
+
readonly uid: string;
|
|
1772
|
+
}
|
|
1773
|
+
|
|
1774
|
+
export declare class TokenReview {
|
|
1775
|
+
constructor(props: {
|
|
1776
|
+
/** Spec holds information about the request being evaluated */
|
|
1777
|
+
spec: Record<string, unknown>;
|
|
1778
|
+
/** Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
|
|
1779
|
+
metadata?: ObjectMeta;
|
|
1780
|
+
});
|
|
1781
|
+
readonly name: string;
|
|
1782
|
+
readonly namespace: string;
|
|
1783
|
+
readonly uid: string;
|
|
1784
|
+
}
|
|
1785
|
+
|
|
1786
|
+
export declare class ValidatingAdmissionPolicy {
|
|
1787
|
+
constructor(props: {
|
|
1788
|
+
/** Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. */
|
|
1789
|
+
metadata?: ObjectMeta;
|
|
1790
|
+
/** Specification of the desired behavior of the ValidatingAdmissionPolicy. */
|
|
1791
|
+
spec?: Record<string, unknown>;
|
|
1792
|
+
});
|
|
1793
|
+
readonly name: string;
|
|
1794
|
+
readonly namespace: string;
|
|
1795
|
+
readonly uid: string;
|
|
1796
|
+
}
|
|
1797
|
+
|
|
1798
|
+
export declare class ValidatingAdmissionPolicyBinding {
|
|
1799
|
+
constructor(props: {
|
|
1800
|
+
/** Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. */
|
|
1801
|
+
metadata?: ObjectMeta;
|
|
1802
|
+
/** Specification of the desired behavior of the ValidatingAdmissionPolicyBinding. */
|
|
1803
|
+
spec?: Record<string, unknown>;
|
|
1804
|
+
});
|
|
1805
|
+
readonly name: string;
|
|
1806
|
+
readonly namespace: string;
|
|
1807
|
+
readonly uid: string;
|
|
1808
|
+
}
|
|
1809
|
+
|
|
1810
|
+
export declare class ValidatingAdmissionPolicyBindingList {
|
|
1811
|
+
constructor(props: {
|
|
1812
|
+
/** List of PolicyBinding. */
|
|
1813
|
+
items: Record<string, unknown>[];
|
|
1814
|
+
/** Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds */
|
|
1815
|
+
metadata?: Record<string, unknown>;
|
|
1816
|
+
});
|
|
1817
|
+
readonly name: string;
|
|
1818
|
+
readonly namespace: string;
|
|
1819
|
+
readonly uid: string;
|
|
1820
|
+
}
|
|
1821
|
+
|
|
1822
|
+
export declare class ValidatingAdmissionPolicyList {
|
|
1823
|
+
constructor(props: {
|
|
1824
|
+
/** List of ValidatingAdmissionPolicy. */
|
|
1825
|
+
items: Record<string, unknown>[];
|
|
1826
|
+
/** Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds */
|
|
1827
|
+
metadata?: Record<string, unknown>;
|
|
1828
|
+
});
|
|
1829
|
+
readonly name: string;
|
|
1830
|
+
readonly namespace: string;
|
|
1831
|
+
readonly uid: string;
|
|
1832
|
+
}
|
|
1833
|
+
|
|
1834
|
+
export declare class ValidatingWebhookConfiguration {
|
|
1835
|
+
constructor(props: {
|
|
1836
|
+
/** Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. */
|
|
1837
|
+
metadata?: ObjectMeta;
|
|
1838
|
+
/** Webhooks is a list of webhooks and the affected resources and operations. */
|
|
1839
|
+
webhooks?: Record<string, unknown>[];
|
|
1840
|
+
});
|
|
1841
|
+
readonly name: string;
|
|
1842
|
+
readonly namespace: string;
|
|
1843
|
+
readonly uid: string;
|
|
1844
|
+
}
|
|
1845
|
+
|
|
1846
|
+
export declare class ValidatingWebhookConfigurationList {
|
|
1847
|
+
constructor(props: {
|
|
1848
|
+
/** List of ValidatingWebhookConfiguration. */
|
|
1849
|
+
items: Record<string, unknown>[];
|
|
1850
|
+
/** Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds */
|
|
1851
|
+
metadata?: Record<string, unknown>;
|
|
1852
|
+
});
|
|
1853
|
+
readonly name: string;
|
|
1854
|
+
readonly namespace: string;
|
|
1855
|
+
readonly uid: string;
|
|
1856
|
+
}
|
|
1857
|
+
|
|
1858
|
+
export declare class VolumeAttachment {
|
|
1859
|
+
constructor(props: {
|
|
1860
|
+
/** spec represents specification of the desired attach/detach volume behavior. Populated by the Kubernetes system. */
|
|
1861
|
+
spec: Record<string, unknown>;
|
|
1862
|
+
/** Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
|
|
1863
|
+
metadata?: ObjectMeta;
|
|
1864
|
+
});
|
|
1865
|
+
readonly name: string;
|
|
1866
|
+
readonly namespace: string;
|
|
1867
|
+
readonly uid: string;
|
|
1868
|
+
}
|
|
1869
|
+
|
|
1870
|
+
export declare class VolumeAttachmentList {
|
|
1871
|
+
constructor(props: {
|
|
1872
|
+
/** items is the list of VolumeAttachments */
|
|
1873
|
+
items: Record<string, unknown>[];
|
|
1874
|
+
/** Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
|
|
1875
|
+
metadata?: Record<string, unknown>;
|
|
1876
|
+
});
|
|
1877
|
+
readonly name: string;
|
|
1878
|
+
readonly namespace: string;
|
|
1879
|
+
readonly uid: string;
|
|
1880
|
+
}
|
|
1881
|
+
|
|
1882
|
+
export declare class VolumeAttributesClass {
|
|
1883
|
+
constructor(props: {
|
|
1884
|
+
/** Name of the CSI driver This field is immutable. */
|
|
1885
|
+
driverName: string;
|
|
1886
|
+
/** Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
|
|
1887
|
+
metadata?: ObjectMeta;
|
|
1888
|
+
/** 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.
|
|
1889
|
+
|
|
1890
|
+
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. */
|
|
1891
|
+
parameters?: Record<string, string>;
|
|
1892
|
+
});
|
|
1893
|
+
readonly name: string;
|
|
1894
|
+
readonly namespace: string;
|
|
1895
|
+
readonly uid: string;
|
|
1896
|
+
}
|
|
1897
|
+
|
|
1898
|
+
export declare class VolumeAttributesClassList {
|
|
1899
|
+
constructor(props: {
|
|
1900
|
+
/** items is the list of VolumeAttributesClass objects. */
|
|
1901
|
+
items: Record<string, unknown>[];
|
|
1902
|
+
/** Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
|
|
1903
|
+
metadata?: Record<string, unknown>;
|
|
1904
|
+
});
|
|
1905
|
+
readonly name: string;
|
|
1906
|
+
readonly namespace: string;
|
|
1907
|
+
readonly uid: string;
|
|
1908
|
+
}
|
|
1909
|
+
|
|
1910
|
+
export declare class WatchEvent {
|
|
1911
|
+
constructor(props: {
|
|
1912
|
+
/** Object is:
|
|
1913
|
+
* If Type is Added or Modified: the new state of the object.
|
|
1914
|
+
* If Type is Deleted: the state of the object immediately before deletion.
|
|
1915
|
+
* If Type is Error: *Status is recommended; other types may make sense
|
|
1916
|
+
depending on context. */
|
|
1917
|
+
object: Record<string, unknown>;
|
|
1918
|
+
type: string;
|
|
1919
|
+
});
|
|
1920
|
+
readonly name: string;
|
|
1921
|
+
readonly namespace: string;
|
|
1922
|
+
readonly uid: string;
|
|
1923
|
+
}
|
|
1924
|
+
|
|
1925
|
+
// --- Property type classes ---
|
|
1926
|
+
|
|
1927
|
+
export declare class Affinity {
|
|
1928
|
+
constructor(props: {
|
|
1929
|
+
/** Describes node affinity scheduling rules for the pod. */
|
|
1930
|
+
nodeAffinity?: Record<string, unknown>;
|
|
1931
|
+
/** Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). */
|
|
1932
|
+
podAffinity?: Record<string, unknown>;
|
|
1933
|
+
/** Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). */
|
|
1934
|
+
podAntiAffinity?: Record<string, unknown>;
|
|
1935
|
+
});
|
|
1936
|
+
}
|
|
1937
|
+
|
|
1938
|
+
export declare class Capabilities {
|
|
1939
|
+
constructor(props: {
|
|
1940
|
+
/** Added capabilities */
|
|
1941
|
+
add?: string[];
|
|
1942
|
+
/** Removed capabilities */
|
|
1943
|
+
drop?: string[];
|
|
1944
|
+
});
|
|
1945
|
+
}
|
|
1946
|
+
|
|
1947
|
+
export declare class ConfigMapKeySelector {
|
|
1948
|
+
constructor(props: {
|
|
1949
|
+
/** The key to select. */
|
|
1950
|
+
key: string;
|
|
1951
|
+
/** Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names */
|
|
1952
|
+
name?: string;
|
|
1953
|
+
/** Specify whether the ConfigMap or its key must be defined */
|
|
1954
|
+
optional?: boolean;
|
|
1955
|
+
});
|
|
1956
|
+
}
|
|
1957
|
+
|
|
1958
|
+
export declare class Container {
|
|
1959
|
+
constructor(props: {
|
|
1960
|
+
/** Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. */
|
|
1961
|
+
name: string;
|
|
1962
|
+
/** Arguments to the entrypoint. The container image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell */
|
|
1963
|
+
args?: string[];
|
|
1964
|
+
/** Entrypoint array. Not executed within a shell. The container image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell */
|
|
1965
|
+
command?: string[];
|
|
1966
|
+
/** List of environment variables to set in the container. Cannot be updated. */
|
|
1967
|
+
env?: EnvVar[];
|
|
1968
|
+
/** List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. */
|
|
1969
|
+
envFrom?: EnvFromSource[];
|
|
1970
|
+
/** Container image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. */
|
|
1971
|
+
image?: string;
|
|
1972
|
+
/** Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images */
|
|
1973
|
+
imagePullPolicy?: string;
|
|
1974
|
+
/** Actions that the management system should take in response to container lifecycle events. Cannot be updated. */
|
|
1975
|
+
lifecycle?: Record<string, unknown>;
|
|
1976
|
+
/** Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes */
|
|
1977
|
+
livenessProbe?: Probe;
|
|
1978
|
+
/** List of ports to expose from the container. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Modifying this array with strategic merge patch may corrupt the data. For more information See https://github.com/kubernetes/kubernetes/issues/108255. Cannot be updated. */
|
|
1979
|
+
ports?: ContainerPort[];
|
|
1980
|
+
/** Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes */
|
|
1981
|
+
readinessProbe?: Probe;
|
|
1982
|
+
/** Resources resize policy for the container. */
|
|
1983
|
+
resizePolicy?: Record<string, unknown>[];
|
|
1984
|
+
/** Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ */
|
|
1985
|
+
resources?: ResourceRequirements;
|
|
1986
|
+
/** RestartPolicy defines the restart behavior of individual containers in a pod. This field may only be set for init containers, and the only allowed value is "Always". For non-init containers or when this field is not specified, the restart behavior is defined by the Pod's restart policy and the container type. Setting the RestartPolicy as "Always" for the init container will have the following effect: this init container will be continually restarted on exit until all regular containers have terminated. Once all regular containers have completed, all init containers with restartPolicy "Always" will be shut down. This lifecycle differs from normal init containers and is often referred to as a "sidecar" container. Although this init container still starts in the init container sequence, it does not wait for the container to complete before proceeding to the next init container. Instead, the next init container starts immediately after this init container is started, or after any startupProbe has successfully completed. */
|
|
1987
|
+
restartPolicy?: string;
|
|
1988
|
+
/** SecurityContext defines the security options the container should be run with. If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext. More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ */
|
|
1989
|
+
securityContext?: SecurityContext;
|
|
1990
|
+
/** StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes */
|
|
1991
|
+
startupProbe?: Probe;
|
|
1992
|
+
/** Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. */
|
|
1993
|
+
stdin?: boolean;
|
|
1994
|
+
/** Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false */
|
|
1995
|
+
stdinOnce?: boolean;
|
|
1996
|
+
/** Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. */
|
|
1997
|
+
terminationMessagePath?: string;
|
|
1998
|
+
/** Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. */
|
|
1999
|
+
terminationMessagePolicy?: string;
|
|
2000
|
+
/** Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. */
|
|
2001
|
+
tty?: boolean;
|
|
2002
|
+
/** volumeDevices is the list of block devices to be used by the container. */
|
|
2003
|
+
volumeDevices?: Record<string, unknown>[];
|
|
2004
|
+
/** Pod volumes to mount into the container's filesystem. Cannot be updated. */
|
|
2005
|
+
volumeMounts?: VolumeMount[];
|
|
2006
|
+
/** Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. */
|
|
2007
|
+
workingDir?: string;
|
|
2008
|
+
});
|
|
2009
|
+
}
|
|
2010
|
+
|
|
2011
|
+
export declare class ContainerPort {
|
|
2012
|
+
constructor(props: {
|
|
2013
|
+
/** Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. */
|
|
2014
|
+
containerPort: number;
|
|
2015
|
+
/** What host IP to bind the external port to. */
|
|
2016
|
+
hostIP?: string;
|
|
2017
|
+
/** Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. */
|
|
2018
|
+
hostPort?: number;
|
|
2019
|
+
/** If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. */
|
|
2020
|
+
name?: string;
|
|
2021
|
+
/** Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". */
|
|
2022
|
+
protocol?: string;
|
|
2023
|
+
});
|
|
2024
|
+
}
|
|
2025
|
+
|
|
2026
|
+
export declare class DeploymentStrategy {
|
|
2027
|
+
constructor(props: {
|
|
2028
|
+
/** Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate. */
|
|
2029
|
+
rollingUpdate?: RollingUpdateDeployment;
|
|
2030
|
+
/** Type of deployment. Can be "Recreate" or "RollingUpdate". Default is RollingUpdate. */
|
|
2031
|
+
type?: string;
|
|
2032
|
+
});
|
|
2033
|
+
}
|
|
2034
|
+
|
|
2035
|
+
export declare class EnvFromSource {
|
|
2036
|
+
constructor(props: {
|
|
2037
|
+
/** The ConfigMap to select from */
|
|
2038
|
+
configMapRef?: Record<string, unknown>;
|
|
2039
|
+
/** An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. */
|
|
2040
|
+
prefix?: string;
|
|
2041
|
+
/** The Secret to select from */
|
|
2042
|
+
secretRef?: Record<string, unknown>;
|
|
2043
|
+
});
|
|
2044
|
+
}
|
|
2045
|
+
|
|
2046
|
+
export declare class EnvVar {
|
|
2047
|
+
constructor(props: {
|
|
2048
|
+
/** Name of the environment variable. Must be a C_IDENTIFIER. */
|
|
2049
|
+
name: string;
|
|
2050
|
+
/** Variable references $(VAR_NAME) are expanded using the previously defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". */
|
|
2051
|
+
value?: string;
|
|
2052
|
+
/** Source for the environment variable's value. Cannot be used if value is not empty. */
|
|
2053
|
+
valueFrom?: EnvVarSource;
|
|
2054
|
+
});
|
|
2055
|
+
}
|
|
2056
|
+
|
|
2057
|
+
export declare class EnvVarSource {
|
|
2058
|
+
constructor(props: {
|
|
2059
|
+
/** Selects a key of a ConfigMap. */
|
|
2060
|
+
configMapKeyRef?: ConfigMapKeySelector;
|
|
2061
|
+
/** Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels['<KEY>']`, `metadata.annotations['<KEY>']`, spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs. */
|
|
2062
|
+
fieldRef?: Record<string, unknown>;
|
|
2063
|
+
/** Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. */
|
|
2064
|
+
resourceFieldRef?: Record<string, unknown>;
|
|
2065
|
+
/** Selects a key of a secret in the pod's namespace */
|
|
2066
|
+
secretKeyRef?: SecretKeySelector;
|
|
2067
|
+
});
|
|
2068
|
+
}
|
|
2069
|
+
|
|
2070
|
+
export declare class EphemeralContainer {
|
|
2071
|
+
constructor(props: {
|
|
2072
|
+
/** Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. */
|
|
2073
|
+
name: string;
|
|
2074
|
+
/** Arguments to the entrypoint. The image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell */
|
|
2075
|
+
args?: string[];
|
|
2076
|
+
/** Entrypoint array. Not executed within a shell. The image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell */
|
|
2077
|
+
command?: string[];
|
|
2078
|
+
/** List of environment variables to set in the container. Cannot be updated. */
|
|
2079
|
+
env?: EnvVar[];
|
|
2080
|
+
/** List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. */
|
|
2081
|
+
envFrom?: EnvFromSource[];
|
|
2082
|
+
/** Container image name. More info: https://kubernetes.io/docs/concepts/containers/images */
|
|
2083
|
+
image?: string;
|
|
2084
|
+
/** Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images */
|
|
2085
|
+
imagePullPolicy?: string;
|
|
2086
|
+
/** Lifecycle is not allowed for ephemeral containers. */
|
|
2087
|
+
lifecycle?: Record<string, unknown>;
|
|
2088
|
+
/** Probes are not allowed for ephemeral containers. */
|
|
2089
|
+
livenessProbe?: Probe;
|
|
2090
|
+
/** Ports are not allowed for ephemeral containers. */
|
|
2091
|
+
ports?: ContainerPort[];
|
|
2092
|
+
/** Probes are not allowed for ephemeral containers. */
|
|
2093
|
+
readinessProbe?: Probe;
|
|
2094
|
+
/** Resources resize policy for the container. */
|
|
2095
|
+
resizePolicy?: Record<string, unknown>[];
|
|
2096
|
+
/** Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. */
|
|
2097
|
+
resources?: ResourceRequirements;
|
|
2098
|
+
/** Restart policy for the container to manage the restart behavior of each container within a pod. This may only be set for init containers. You cannot set this field on ephemeral containers. */
|
|
2099
|
+
restartPolicy?: string;
|
|
2100
|
+
/** Optional: SecurityContext defines the security options the ephemeral container should be run with. If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext. */
|
|
2101
|
+
securityContext?: SecurityContext;
|
|
2102
|
+
/** Probes are not allowed for ephemeral containers. */
|
|
2103
|
+
startupProbe?: Probe;
|
|
2104
|
+
/** Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. */
|
|
2105
|
+
stdin?: boolean;
|
|
2106
|
+
/** Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false */
|
|
2107
|
+
stdinOnce?: boolean;
|
|
2108
|
+
/** If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container uses the namespaces configured in the Pod spec.
|
|
2109
|
+
|
|
2110
|
+
The container runtime must implement support for this feature. If the runtime does not support namespace targeting then the result of setting this field is undefined. */
|
|
2111
|
+
targetContainerName?: string;
|
|
2112
|
+
/** Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. */
|
|
2113
|
+
terminationMessagePath?: string;
|
|
2114
|
+
/** Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. */
|
|
2115
|
+
terminationMessagePolicy?: string;
|
|
2116
|
+
/** Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. */
|
|
2117
|
+
tty?: boolean;
|
|
2118
|
+
/** volumeDevices is the list of block devices to be used by the container. */
|
|
2119
|
+
volumeDevices?: Record<string, unknown>[];
|
|
2120
|
+
/** Pod volumes to mount into the container's filesystem. Subpath mounts are not allowed for ephemeral containers. Cannot be updated. */
|
|
2121
|
+
volumeMounts?: VolumeMount[];
|
|
2122
|
+
/** Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. */
|
|
2123
|
+
workingDir?: string;
|
|
2124
|
+
});
|
|
2125
|
+
}
|
|
2126
|
+
|
|
2127
|
+
export declare class ExecAction {
|
|
2128
|
+
constructor(props: {
|
|
2129
|
+
/** Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. */
|
|
2130
|
+
command?: string[];
|
|
2131
|
+
});
|
|
2132
|
+
}
|
|
2133
|
+
|
|
2134
|
+
export declare class HorizontalPodAutoscalerBehavior {
|
|
2135
|
+
constructor(props: {
|
|
2136
|
+
/** scaleDown is scaling policy for scaling Down. If not set, the default value is to allow to scale down to minReplicas pods, with a 300 second stabilization window (i.e., the highest recommendation for the last 300sec is used). */
|
|
2137
|
+
scaleDown?: Record<string, unknown>;
|
|
2138
|
+
/** scaleUp is scaling policy for scaling Up. If not set, the default value is the higher of:
|
|
2139
|
+
* increase no more than 4 pods per 60 seconds
|
|
2140
|
+
* double the number of pods per 60 seconds
|
|
2141
|
+
No stabilization is used. */
|
|
2142
|
+
scaleUp?: Record<string, unknown>;
|
|
2143
|
+
});
|
|
2144
|
+
}
|
|
2145
|
+
|
|
2146
|
+
export declare class HostAlias {
|
|
2147
|
+
constructor(props: {
|
|
2148
|
+
/** IP address of the host file entry. */
|
|
2149
|
+
ip: string;
|
|
2150
|
+
/** Hostnames for the above IP address. */
|
|
2151
|
+
hostnames?: string[];
|
|
2152
|
+
});
|
|
2153
|
+
}
|
|
2154
|
+
|
|
2155
|
+
export declare class HTTPGetAction {
|
|
2156
|
+
constructor(props: {
|
|
2157
|
+
/** Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. */
|
|
2158
|
+
port: string | number;
|
|
2159
|
+
/** Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. */
|
|
2160
|
+
host?: string;
|
|
2161
|
+
/** Custom headers to set in the request. HTTP allows repeated headers. */
|
|
2162
|
+
httpHeaders?: Record<string, unknown>[];
|
|
2163
|
+
/** Path to access on the HTTP server. */
|
|
2164
|
+
path?: string;
|
|
2165
|
+
/** Scheme to use for connecting to the host. Defaults to HTTP. */
|
|
2166
|
+
scheme?: string;
|
|
2167
|
+
});
|
|
2168
|
+
}
|
|
2169
|
+
|
|
2170
|
+
export declare class HTTPIngressPath {
|
|
2171
|
+
constructor(props: {
|
|
2172
|
+
/** backend defines the referenced service endpoint to which the traffic will be forwarded to. */
|
|
2173
|
+
backend: IngressBackend;
|
|
2174
|
+
/** pathType determines the interpretation of the path matching. PathType can be one of the following values: * Exact: Matches the URL path exactly. * Prefix: Matches based on a URL path prefix split by '/'. Matching is
|
|
2175
|
+
done on a path element by element basis. A path element refers is the
|
|
2176
|
+
list of labels in the path split by the '/' separator. A request is a
|
|
2177
|
+
match for path p if every p is an element-wise prefix of p of the
|
|
2178
|
+
request path. Note that if the last element of the path is a substring
|
|
2179
|
+
of the last element in request path, it is not a match (e.g. /foo/bar
|
|
2180
|
+
matches /foo/bar/baz, but does not match /foo/barbaz).
|
|
2181
|
+
* ImplementationSpecific: Interpretation of the Path matching is up to
|
|
2182
|
+
the IngressClass. Implementations can treat this as a separate PathType
|
|
2183
|
+
or treat it identically to Prefix or Exact path types.
|
|
2184
|
+
Implementations are required to support all path types. */
|
|
2185
|
+
pathType: string;
|
|
2186
|
+
/** path is matched against the path of an incoming request. Currently it can contain characters disallowed from the conventional "path" part of a URL as defined by RFC 3986. Paths must begin with a '/' and must be present when using PathType with value "Exact" or "Prefix". */
|
|
2187
|
+
path?: string;
|
|
2188
|
+
});
|
|
2189
|
+
}
|
|
2190
|
+
|
|
2191
|
+
export declare class IngressBackend {
|
|
2192
|
+
constructor(props: {
|
|
2193
|
+
/** resource is an ObjectRef to another Kubernetes resource in the namespace of the Ingress object. If resource is specified, a service.Name and service.Port must not be specified. This is a mutually exclusive setting with "Service". */
|
|
2194
|
+
resource?: Record<string, unknown>;
|
|
2195
|
+
/** service references a service as a backend. This is a mutually exclusive setting with "Resource". */
|
|
2196
|
+
service?: IngressServiceBackend;
|
|
2197
|
+
});
|
|
2198
|
+
}
|
|
2199
|
+
|
|
2200
|
+
export declare class IngressRule {
|
|
2201
|
+
constructor(props: {
|
|
2202
|
+
/** host is the fully qualified domain name of a network host, as defined by RFC 3986. Note the following deviations from the "host" part of the URI as defined in RFC 3986: 1. IPs are not allowed. Currently an IngressRuleValue can only apply to
|
|
2203
|
+
the IP in the Spec of the parent Ingress.
|
|
2204
|
+
2. The `:` delimiter is not respected because ports are not allowed.
|
|
2205
|
+
Currently the port of an Ingress is implicitly :80 for http and
|
|
2206
|
+
:443 for https.
|
|
2207
|
+
Both these may change in the future. Incoming requests are matched against the host before the IngressRuleValue. If the host is unspecified, the Ingress routes all traffic based on the specified IngressRuleValue.
|
|
2208
|
+
|
|
2209
|
+
host can be "precise" which is a domain name without the terminating dot of a network host (e.g. "foo.bar.com") or "wildcard", which is a domain name prefixed with a single wildcard label (e.g. "*.foo.com"). The wildcard character '*' must appear by itself as the first DNS label and matches only a single label. You cannot have a wildcard label by itself (e.g. Host == "*"). Requests will be matched against the Host field in the following way: 1. If host is precise, the request matches this rule if the http host header is equal to Host. 2. If host is a wildcard, then the request matches this rule if the http host header is to equal to the suffix (removing the first label) of the wildcard rule. */
|
|
2210
|
+
host?: string;
|
|
2211
|
+
http?: Record<string, unknown>;
|
|
2212
|
+
});
|
|
2213
|
+
}
|
|
2214
|
+
|
|
2215
|
+
export declare class IngressServiceBackend {
|
|
2216
|
+
constructor(props: {
|
|
2217
|
+
/** name is the referenced service. The service must exist in the same namespace as the Ingress object. */
|
|
2218
|
+
name: string;
|
|
2219
|
+
/** port of the referenced service. A port name or port number is required for a IngressServiceBackend. */
|
|
2220
|
+
port?: ServiceBackendPort;
|
|
2221
|
+
});
|
|
2222
|
+
}
|
|
2223
|
+
|
|
2224
|
+
export declare class IngressTLS {
|
|
2225
|
+
constructor(props: {
|
|
2226
|
+
/** hosts is a list of hosts included in the TLS certificate. The values in this list must match the name/s used in the tlsSecret. Defaults to the wildcard host setting for the loadbalancer controller fulfilling this Ingress, if left unspecified. */
|
|
2227
|
+
hosts?: string[];
|
|
2228
|
+
/** secretName is the name of the secret used to terminate TLS traffic on port 443. Field is left optional to allow TLS routing based on SNI hostname alone. If the SNI host in a listener conflicts with the "Host" header field used by an IngressRule, the SNI host is used for termination and value of the "Host" header is used for routing. */
|
|
2229
|
+
secretName?: string;
|
|
2230
|
+
});
|
|
2231
|
+
}
|
|
2232
|
+
|
|
2233
|
+
export declare class KeyToPath {
|
|
2234
|
+
constructor(props: {
|
|
2235
|
+
/** key is the key to project. */
|
|
2236
|
+
key: string;
|
|
2237
|
+
/** path is the relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. */
|
|
2238
|
+
path: string;
|
|
2239
|
+
/** mode is Optional: mode bits used to set permissions on this file. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. */
|
|
2240
|
+
mode?: number;
|
|
2241
|
+
});
|
|
2242
|
+
}
|
|
2243
|
+
|
|
2244
|
+
export declare class LabelSelector {
|
|
2245
|
+
constructor(props: {
|
|
2246
|
+
/** matchExpressions is a list of label selector requirements. The requirements are ANDed. */
|
|
2247
|
+
matchExpressions?: LabelSelectorRequirement[];
|
|
2248
|
+
/** matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. */
|
|
2249
|
+
matchLabels?: Record<string, string>;
|
|
2250
|
+
});
|
|
2251
|
+
}
|
|
2252
|
+
|
|
2253
|
+
export declare class LabelSelectorRequirement {
|
|
2254
|
+
constructor(props: {
|
|
2255
|
+
/** key is the label key that the selector applies to. */
|
|
2256
|
+
key: string;
|
|
2257
|
+
/** operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. */
|
|
2258
|
+
operator: string;
|
|
2259
|
+
/** values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. */
|
|
2260
|
+
values?: string[];
|
|
2261
|
+
});
|
|
2262
|
+
}
|
|
2263
|
+
|
|
2264
|
+
export declare class LocalObjectReference {
|
|
2265
|
+
constructor(props: {
|
|
2266
|
+
/** Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names */
|
|
2267
|
+
name?: string;
|
|
2268
|
+
});
|
|
2269
|
+
}
|
|
2270
|
+
|
|
2271
|
+
export declare class MetricSpec {
|
|
2272
|
+
constructor(props: {
|
|
2273
|
+
/** type is the type of metric source. It should be one of "ContainerResource", "External", "Object", "Pods" or "Resource", each mapping to a matching field in the object. */
|
|
2274
|
+
type: string;
|
|
2275
|
+
/** containerResource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod of the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the "pods" source. */
|
|
2276
|
+
containerResource?: Record<string, unknown>;
|
|
2277
|
+
/** external refers to a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster). */
|
|
2278
|
+
external?: Record<string, unknown>;
|
|
2279
|
+
/** object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object). */
|
|
2280
|
+
object?: Record<string, unknown>;
|
|
2281
|
+
/** pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value. */
|
|
2282
|
+
pods?: Record<string, unknown>;
|
|
2283
|
+
/** resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the "pods" source. */
|
|
2284
|
+
resource?: Record<string, unknown>;
|
|
2285
|
+
});
|
|
2286
|
+
}
|
|
2287
|
+
|
|
2288
|
+
export declare class NetworkPolicyEgressRule {
|
|
2289
|
+
constructor(props: {
|
|
2290
|
+
/** ports is a list of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. */
|
|
2291
|
+
ports?: NetworkPolicyPort[];
|
|
2292
|
+
/** to is a list of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list. */
|
|
2293
|
+
to?: NetworkPolicyPeer[];
|
|
2294
|
+
});
|
|
2295
|
+
}
|
|
2296
|
+
|
|
2297
|
+
export declare class NetworkPolicyIngressRule {
|
|
2298
|
+
constructor(props: {
|
|
2299
|
+
/** from is a list of sources which should be able to access the pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all sources (traffic not restricted by source). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the from list. */
|
|
2300
|
+
from?: NetworkPolicyPeer[];
|
|
2301
|
+
/** ports is a list of ports which should be made accessible on the pods selected for this rule. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. */
|
|
2302
|
+
ports?: NetworkPolicyPort[];
|
|
2303
|
+
});
|
|
2304
|
+
}
|
|
2305
|
+
|
|
2306
|
+
export declare class NetworkPolicyPeer {
|
|
2307
|
+
constructor(props: {
|
|
2308
|
+
/** ipBlock defines policy on a particular IPBlock. If this field is set then neither of the other fields can be. */
|
|
2309
|
+
ipBlock?: Record<string, unknown>;
|
|
2310
|
+
/** namespaceSelector selects namespaces using cluster-scoped labels. This field follows standard label selector semantics; if present but empty, it selects all namespaces.
|
|
2311
|
+
|
|
2312
|
+
If podSelector is also set, then the NetworkPolicyPeer as a whole selects the pods matching podSelector in the namespaces selected by namespaceSelector. Otherwise it selects all pods in the namespaces selected by namespaceSelector. */
|
|
2313
|
+
namespaceSelector?: LabelSelector;
|
|
2314
|
+
/** podSelector is a label selector which selects pods. This field follows standard label selector semantics; if present but empty, it selects all pods.
|
|
2315
|
+
|
|
2316
|
+
If namespaceSelector is also set, then the NetworkPolicyPeer as a whole selects the pods matching podSelector in the Namespaces selected by NamespaceSelector. Otherwise it selects the pods matching podSelector in the policy's own namespace. */
|
|
2317
|
+
podSelector?: LabelSelector;
|
|
2318
|
+
});
|
|
2319
|
+
}
|
|
2320
|
+
|
|
2321
|
+
export declare class NetworkPolicyPort {
|
|
2322
|
+
constructor(props: {
|
|
2323
|
+
/** endPort indicates that the range of ports from port to endPort if set, inclusive, should be allowed by the policy. This field cannot be defined if the port field is not defined or if the port field is defined as a named (string) port. The endPort must be equal or greater than port. */
|
|
2324
|
+
endPort?: number;
|
|
2325
|
+
/** port represents the port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers. If present, only traffic on the specified protocol AND port will be matched. */
|
|
2326
|
+
port?: string | number;
|
|
2327
|
+
/** protocol represents the protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP. */
|
|
2328
|
+
protocol?: string;
|
|
2329
|
+
});
|
|
2330
|
+
}
|
|
2331
|
+
|
|
2332
|
+
export declare class ObjectMeta {
|
|
2333
|
+
constructor(props: {
|
|
2334
|
+
/** Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations */
|
|
2335
|
+
annotations?: Record<string, string>;
|
|
2336
|
+
/** CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC.
|
|
2337
|
+
|
|
2338
|
+
Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
|
|
2339
|
+
creationTimestamp?: string;
|
|
2340
|
+
/** Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. */
|
|
2341
|
+
deletionGracePeriodSeconds?: number;
|
|
2342
|
+
/** DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested.
|
|
2343
|
+
|
|
2344
|
+
Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
|
|
2345
|
+
deletionTimestamp?: string;
|
|
2346
|
+
/** Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. */
|
|
2347
|
+
finalizers?: string[];
|
|
2348
|
+
/** GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.
|
|
2349
|
+
|
|
2350
|
+
If this field is specified and the generated name exists, the server will return a 409.
|
|
2351
|
+
|
|
2352
|
+
Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency */
|
|
2353
|
+
generateName?: string;
|
|
2354
|
+
/** A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. */
|
|
2355
|
+
generation?: number;
|
|
2356
|
+
/** Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels */
|
|
2357
|
+
labels?: Record<string, string>;
|
|
2358
|
+
/** ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. */
|
|
2359
|
+
managedFields?: Record<string, unknown>[];
|
|
2360
|
+
/** Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names */
|
|
2361
|
+
name?: string;
|
|
2362
|
+
/** Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.
|
|
2363
|
+
|
|
2364
|
+
Must be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces */
|
|
2365
|
+
namespace?: string;
|
|
2366
|
+
/** List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. */
|
|
2367
|
+
ownerReferences?: Record<string, unknown>[];
|
|
2368
|
+
/** An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.
|
|
2369
|
+
|
|
2370
|
+
Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency */
|
|
2371
|
+
resourceVersion?: string;
|
|
2372
|
+
/** Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. */
|
|
2373
|
+
selfLink?: string;
|
|
2374
|
+
/** UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.
|
|
2375
|
+
|
|
2376
|
+
Populated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids */
|
|
2377
|
+
uid?: string;
|
|
2378
|
+
});
|
|
2379
|
+
}
|
|
2380
|
+
|
|
2381
|
+
export declare class ObjectReference {
|
|
2382
|
+
constructor(props: {
|
|
2383
|
+
/** API version of the referent. */
|
|
2384
|
+
apiVersion?: string;
|
|
2385
|
+
/** If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. */
|
|
2386
|
+
fieldPath?: string;
|
|
2387
|
+
/** Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds */
|
|
2388
|
+
kind?: string;
|
|
2389
|
+
/** Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names */
|
|
2390
|
+
name?: string;
|
|
2391
|
+
/** Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ */
|
|
2392
|
+
namespace?: string;
|
|
2393
|
+
/** Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency */
|
|
2394
|
+
resourceVersion?: string;
|
|
2395
|
+
/** UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids */
|
|
2396
|
+
uid?: string;
|
|
2397
|
+
});
|
|
2398
|
+
}
|
|
2399
|
+
|
|
2400
|
+
export declare class PersistentVolumeClaimSpec {
|
|
2401
|
+
constructor(props: {
|
|
2402
|
+
/** accessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 */
|
|
2403
|
+
accessModes?: string[];
|
|
2404
|
+
/** dataSource field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. When the AnyVolumeDataSource feature gate is enabled, dataSource contents will be copied to dataSourceRef, and dataSourceRef contents will be copied to dataSource when dataSourceRef.namespace is not specified. If the namespace is specified, then dataSourceRef will not be copied to dataSource. */
|
|
2405
|
+
dataSource?: Record<string, unknown>;
|
|
2406
|
+
/** dataSourceRef specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the dataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, when namespace isn't specified in dataSourceRef, both fields (dataSource and dataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. When namespace is specified in dataSourceRef, dataSource isn't set to the same value and must be empty. There are three important differences between dataSource and dataSourceRef: * While dataSource only allows two specific types of objects, dataSourceRef
|
|
2407
|
+
allows any non-core object, as well as PersistentVolumeClaim objects.
|
|
2408
|
+
* While dataSource ignores disallowed values (dropping them), dataSourceRef
|
|
2409
|
+
preserves all values, and generates an error if a disallowed value is
|
|
2410
|
+
specified.
|
|
2411
|
+
* While dataSource only allows local objects, dataSourceRef allows objects
|
|
2412
|
+
in any namespaces.
|
|
2413
|
+
(Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled. (Alpha) Using the namespace field of dataSourceRef requires the CrossNamespaceVolumeDataSource feature gate to be enabled. */
|
|
2414
|
+
dataSourceRef?: Record<string, unknown>;
|
|
2415
|
+
/** resources represents the minimum resources the volume should have. If RecoverVolumeExpansionFailure feature is enabled users are allowed to specify resource requirements that are lower than previous value but must still be higher than capacity recorded in the status field of the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources */
|
|
2416
|
+
resources?: Record<string, unknown>;
|
|
2417
|
+
/** selector is a label query over volumes to consider for binding. */
|
|
2418
|
+
selector?: LabelSelector;
|
|
2419
|
+
/** storageClassName is the name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 */
|
|
2420
|
+
storageClassName?: string;
|
|
2421
|
+
/** volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim. If specified, the CSI driver will create or update the volume with the attributes defined in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName, it can be changed after the claim is created. An empty string value means that no VolumeAttributesClass will be applied to the claim but it's not allowed to reset this field to empty string once it is set. If unspecified and the PersistentVolumeClaim is unbound, the default VolumeAttributesClass will be set by the persistentvolume controller if it exists. If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource exists. More info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/ (Beta) Using this field requires the VolumeAttributesClass feature gate to be enabled (off by default). */
|
|
2422
|
+
volumeAttributesClassName?: string;
|
|
2423
|
+
/** volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. */
|
|
2424
|
+
volumeMode?: string;
|
|
2425
|
+
/** volumeName is the binding reference to the PersistentVolume backing this claim. */
|
|
2426
|
+
volumeName?: string;
|
|
2427
|
+
});
|
|
2428
|
+
}
|
|
2429
|
+
|
|
2430
|
+
export declare class PodDisruptionBudgetSpec {
|
|
2431
|
+
constructor(props: {
|
|
2432
|
+
/** An eviction is allowed if at most "maxUnavailable" pods selected by "selector" are unavailable after the eviction, i.e. even in absence of the evicted pod. For example, one can prevent all voluntary evictions by specifying 0. This is a mutually exclusive setting with "minAvailable". */
|
|
2433
|
+
maxUnavailable?: string | number;
|
|
2434
|
+
/** An eviction is allowed if at least "minAvailable" pods selected by "selector" will still be available after the eviction, i.e. even in the absence of the evicted pod. So for example you can prevent all voluntary evictions by specifying "100%". */
|
|
2435
|
+
minAvailable?: string | number;
|
|
2436
|
+
/** Label query over pods whose evictions are managed by the disruption budget. A null selector will match no pods, while an empty ({}) selector will select all pods within the namespace. */
|
|
2437
|
+
selector?: LabelSelector;
|
|
2438
|
+
/** UnhealthyPodEvictionPolicy defines the criteria for when unhealthy pods should be considered for eviction. Current implementation considers healthy pods, as pods that have status.conditions item with type="Ready",status="True".
|
|
2439
|
+
|
|
2440
|
+
Valid policies are IfHealthyBudget and AlwaysAllow. If no policy is specified, the default behavior will be used, which corresponds to the IfHealthyBudget policy.
|
|
2441
|
+
|
|
2442
|
+
IfHealthyBudget policy means that running pods (status.phase="Running"), but not yet healthy can be evicted only if the guarded application is not disrupted (status.currentHealthy is at least equal to status.desiredHealthy). Healthy pods will be subject to the PDB for eviction.
|
|
2443
|
+
|
|
2444
|
+
AlwaysAllow policy means that all running pods (status.phase="Running"), but not yet healthy are considered disrupted and can be evicted regardless of whether the criteria in a PDB is met. This means perspective running pods of a disrupted application might not get a chance to become healthy. Healthy pods will be subject to the PDB for eviction.
|
|
2445
|
+
|
|
2446
|
+
Additional policies may be added in the future. Clients making eviction decisions should disallow eviction of unhealthy pods if they encounter an unrecognized policy in this field.
|
|
2447
|
+
|
|
2448
|
+
This field is beta-level. The eviction API uses this field when the feature gate PDBUnhealthyPodEvictionPolicy is enabled (enabled by default). */
|
|
2449
|
+
unhealthyPodEvictionPolicy?: string;
|
|
2450
|
+
});
|
|
2451
|
+
}
|
|
2452
|
+
|
|
2453
|
+
export declare class PodSecurityContext {
|
|
2454
|
+
constructor(props: {
|
|
2455
|
+
/** appArmorProfile is the AppArmor options to use by the containers in this pod. Note that this field cannot be set when spec.os.name is windows. */
|
|
2456
|
+
appArmorProfile?: Record<string, unknown>;
|
|
2457
|
+
/** A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod:
|
|
2458
|
+
|
|
2459
|
+
1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw----
|
|
2460
|
+
|
|
2461
|
+
If unset, the Kubelet will not modify the ownership and permissions of any volume. Note that this field cannot be set when spec.os.name is windows. */
|
|
2462
|
+
fsGroup?: number;
|
|
2463
|
+
/** fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified, "Always" is used. Note that this field cannot be set when spec.os.name is windows. */
|
|
2464
|
+
fsGroupChangePolicy?: string;
|
|
2465
|
+
/** The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows. */
|
|
2466
|
+
runAsGroup?: number;
|
|
2467
|
+
/** Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. */
|
|
2468
|
+
runAsNonRoot?: boolean;
|
|
2469
|
+
/** The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows. */
|
|
2470
|
+
runAsUser?: number;
|
|
2471
|
+
/** The seccomp options to use by the containers in this pod. Note that this field cannot be set when spec.os.name is windows. */
|
|
2472
|
+
seccompProfile?: Record<string, unknown>;
|
|
2473
|
+
/** seLinuxChangePolicy defines how the container's SELinux label is applied to all volumes used by the Pod. It has no effect on nodes that do not support SELinux or to volumes does not support SELinux. Valid values are "MountOption" and "Recursive".
|
|
2474
|
+
|
|
2475
|
+
"Recursive" means relabeling of all files on all Pod volumes by the container runtime. This may be slow for large volumes, but allows mixing privileged and unprivileged Pods sharing the same volume on the same node.
|
|
2476
|
+
|
|
2477
|
+
"MountOption" mounts all eligible Pod volumes with `-o context` mount option. This requires all Pods that share the same volume to use the same SELinux label. It is not possible to share the same volume among privileged and unprivileged Pods. Eligible volumes are in-tree FibreChannel and iSCSI volumes, and all CSI volumes whose CSI driver announces SELinux support by setting spec.seLinuxMount: true in their CSIDriver instance. Other volumes are always re-labelled recursively. "MountOption" value is allowed only when SELinuxMount feature gate is enabled.
|
|
2478
|
+
|
|
2479
|
+
If not specified and SELinuxMount feature gate is enabled, "MountOption" is used. If not specified and SELinuxMount feature gate is disabled, "MountOption" is used for ReadWriteOncePod volumes and "Recursive" for all other volumes.
|
|
2480
|
+
|
|
2481
|
+
This field affects only Pods that have SELinux label set, either in PodSecurityContext or in SecurityContext of all containers.
|
|
2482
|
+
|
|
2483
|
+
All Pods that use the same volume should use the same seLinuxChangePolicy, otherwise some pods can get stuck in ContainerCreating state. Note that this field cannot be set when spec.os.name is windows. */
|
|
2484
|
+
seLinuxChangePolicy?: string;
|
|
2485
|
+
/** The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows. */
|
|
2486
|
+
seLinuxOptions?: Record<string, unknown>;
|
|
2487
|
+
/** A list of groups applied to the first process run in each container, in addition to the container's primary GID and fsGroup (if specified). If the SupplementalGroupsPolicy feature is enabled, the supplementalGroupsPolicy field determines whether these are in addition to or instead of any group memberships defined in the container image. If unspecified, no additional groups are added, though group memberships defined in the container image may still be used, depending on the supplementalGroupsPolicy field. Note that this field cannot be set when spec.os.name is windows. */
|
|
2488
|
+
supplementalGroups?: number[];
|
|
2489
|
+
/** Defines how supplemental groups of the first container processes are calculated. Valid values are "Merge" and "Strict". If not specified, "Merge" is used. (Alpha) Using the field requires the SupplementalGroupsPolicy feature gate to be enabled and the container runtime must implement support for this feature. Note that this field cannot be set when spec.os.name is windows. */
|
|
2490
|
+
supplementalGroupsPolicy?: string;
|
|
2491
|
+
/** Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. Note that this field cannot be set when spec.os.name is windows. */
|
|
2492
|
+
sysctls?: Record<string, unknown>[];
|
|
2493
|
+
/** The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is linux. */
|
|
2494
|
+
windowsOptions?: Record<string, unknown>;
|
|
2495
|
+
});
|
|
2496
|
+
}
|
|
2497
|
+
|
|
2498
|
+
export declare class PodSpec {
|
|
2499
|
+
constructor(props: {
|
|
2500
|
+
/** List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. */
|
|
2501
|
+
containers: Container[];
|
|
2502
|
+
/** Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. */
|
|
2503
|
+
activeDeadlineSeconds?: number;
|
|
2504
|
+
/** If specified, the pod's scheduling constraints */
|
|
2505
|
+
affinity?: Affinity;
|
|
2506
|
+
/** AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. */
|
|
2507
|
+
automountServiceAccountToken?: boolean;
|
|
2508
|
+
/** Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. */
|
|
2509
|
+
dnsConfig?: Record<string, unknown>;
|
|
2510
|
+
/** Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. */
|
|
2511
|
+
dnsPolicy?: string;
|
|
2512
|
+
/** EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. */
|
|
2513
|
+
enableServiceLinks?: boolean;
|
|
2514
|
+
/** List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. */
|
|
2515
|
+
ephemeralContainers?: EphemeralContainer[];
|
|
2516
|
+
/** HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. */
|
|
2517
|
+
hostAliases?: HostAlias[];
|
|
2518
|
+
/** Use the host's ipc namespace. Optional: Default to false. */
|
|
2519
|
+
hostIPC?: boolean;
|
|
2520
|
+
/** Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. */
|
|
2521
|
+
hostname?: string;
|
|
2522
|
+
/** Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. */
|
|
2523
|
+
hostNetwork?: boolean;
|
|
2524
|
+
/** Use the host's pid namespace. Optional: Default to false. */
|
|
2525
|
+
hostPID?: boolean;
|
|
2526
|
+
/** Use the host's user namespace. Optional: Default to true. If set to true or not present, the pod will be run in the host user namespace, useful for when the pod needs a feature only available to the host user namespace, such as loading a kernel module with CAP_SYS_MODULE. When set to false, a new userns is created for the pod. Setting false is useful for mitigating container breakout vulnerabilities even allowing users to run their containers as root without actually having root privileges on the host. This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature. */
|
|
2527
|
+
hostUsers?: boolean;
|
|
2528
|
+
/** ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod */
|
|
2529
|
+
imagePullSecrets?: LocalObjectReference[];
|
|
2530
|
+
/** List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ */
|
|
2531
|
+
initContainers?: Container[];
|
|
2532
|
+
/** NodeName indicates in which node this pod is scheduled. If empty, this pod is a candidate for scheduling by the scheduler defined in schedulerName. Once this field is set, the kubelet for this node becomes responsible for the lifecycle of this pod. This field should not be used to express a desire for the pod to be scheduled on a specific node. https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#nodename */
|
|
2533
|
+
nodeName?: string;
|
|
2534
|
+
/** NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ */
|
|
2535
|
+
nodeSelector?: Record<string, string>;
|
|
2536
|
+
/** Specifies the OS of the containers in the pod. Some pod and container fields are restricted if this is set.
|
|
2537
|
+
|
|
2538
|
+
If the OS field is set to linux, the following fields must be unset: -securityContext.windowsOptions
|
|
2539
|
+
|
|
2540
|
+
If the OS field is set to windows, following fields must be unset: - spec.hostPID - spec.hostIPC - spec.hostUsers - spec.securityContext.appArmorProfile - spec.securityContext.seLinuxOptions - spec.securityContext.seccompProfile - spec.securityContext.fsGroup - spec.securityContext.fsGroupChangePolicy - spec.securityContext.sysctls - spec.shareProcessNamespace - spec.securityContext.runAsUser - spec.securityContext.runAsGroup - spec.securityContext.supplementalGroups - spec.securityContext.supplementalGroupsPolicy - spec.containers[*].securityContext.appArmorProfile - spec.containers[*].securityContext.seLinuxOptions - spec.containers[*].securityContext.seccompProfile - spec.containers[*].securityContext.capabilities - spec.containers[*].securityContext.readOnlyRootFilesystem - spec.containers[*].securityContext.privileged - spec.containers[*].securityContext.allowPrivilegeEscalation - spec.containers[*].securityContext.procMount - spec.containers[*].securityContext.runAsUser - spec.containers[*].securityContext.runAsGroup */
|
|
2541
|
+
os?: Record<string, unknown>;
|
|
2542
|
+
/** Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md */
|
|
2543
|
+
overhead?: Record<string, string>;
|
|
2544
|
+
/** PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. */
|
|
2545
|
+
preemptionPolicy?: string;
|
|
2546
|
+
/** The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. */
|
|
2547
|
+
priority?: number;
|
|
2548
|
+
/** If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. */
|
|
2549
|
+
priorityClassName?: string;
|
|
2550
|
+
/** If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates */
|
|
2551
|
+
readinessGates?: Record<string, unknown>[];
|
|
2552
|
+
/** ResourceClaims defines which ResourceClaims must be allocated and reserved before the Pod is allowed to start. The resources will be made available to those containers which consume them by name.
|
|
2553
|
+
|
|
2554
|
+
This is an alpha field and requires enabling the DynamicResourceAllocation feature gate.
|
|
2555
|
+
|
|
2556
|
+
This field is immutable. */
|
|
2557
|
+
resourceClaims?: Record<string, unknown>[];
|
|
2558
|
+
/** Resources is the total amount of CPU and Memory resources required by all containers in the pod. It supports specifying Requests and Limits for "cpu" and "memory" resource names only. ResourceClaims are not supported.
|
|
2559
|
+
|
|
2560
|
+
This field enables fine-grained control over resource allocation for the entire pod, allowing resource sharing among containers in a pod.
|
|
2561
|
+
|
|
2562
|
+
This is an alpha field and requires enabling the PodLevelResources feature gate. */
|
|
2563
|
+
resources?: ResourceRequirements;
|
|
2564
|
+
/** Restart policy for all containers within the pod. One of Always, OnFailure, Never. In some contexts, only a subset of those values may be permitted. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy */
|
|
2565
|
+
restartPolicy?: string;
|
|
2566
|
+
/** RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class */
|
|
2567
|
+
runtimeClassName?: string;
|
|
2568
|
+
/** If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. */
|
|
2569
|
+
schedulerName?: string;
|
|
2570
|
+
/** SchedulingGates is an opaque list of values that if specified will block scheduling the pod. If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the scheduler will not attempt to schedule the pod.
|
|
2571
|
+
|
|
2572
|
+
SchedulingGates can only be set at pod creation time, and be removed only afterwards. */
|
|
2573
|
+
schedulingGates?: Record<string, unknown>[];
|
|
2574
|
+
/** SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. */
|
|
2575
|
+
securityContext?: PodSecurityContext;
|
|
2576
|
+
/** DeprecatedServiceAccount is a deprecated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. */
|
|
2577
|
+
serviceAccount?: string;
|
|
2578
|
+
/** ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ */
|
|
2579
|
+
serviceAccountName?: string;
|
|
2580
|
+
/** If true the pod's hostname will be configured as the pod's FQDN, rather than the leaf name (the default). In Linux containers, this means setting the FQDN in the hostname field of the kernel (the nodename field of struct utsname). In Windows containers, this means setting the registry value of hostname for the registry key HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\Tcpip\\Parameters to FQDN. If a pod does not have FQDN, this has no effect. Default to false. */
|
|
2581
|
+
setHostnameAsFQDN?: boolean;
|
|
2582
|
+
/** Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. */
|
|
2583
|
+
shareProcessNamespace?: boolean;
|
|
2584
|
+
/** If specified, the fully qualified Pod hostname will be "<hostname>.<subdomain>.<pod namespace>.svc.<cluster domain>". If not specified, the pod will not have a domainname at all. */
|
|
2585
|
+
subdomain?: string;
|
|
2586
|
+
/** Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. */
|
|
2587
|
+
terminationGracePeriodSeconds?: number;
|
|
2588
|
+
/** If specified, the pod's tolerations. */
|
|
2589
|
+
tolerations?: Toleration[];
|
|
2590
|
+
/** TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. All topologySpreadConstraints are ANDed. */
|
|
2591
|
+
topologySpreadConstraints?: TopologySpreadConstraint[];
|
|
2592
|
+
/** List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes */
|
|
2593
|
+
volumes?: Volume[];
|
|
2594
|
+
});
|
|
2595
|
+
}
|
|
2596
|
+
|
|
2597
|
+
export declare class PodTemplateSpec {
|
|
2598
|
+
constructor(props: {
|
|
2599
|
+
/** Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
|
|
2600
|
+
metadata?: ObjectMeta;
|
|
2601
|
+
/** Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status */
|
|
2602
|
+
spec?: PodSpec;
|
|
2603
|
+
});
|
|
2604
|
+
}
|
|
2605
|
+
|
|
2606
|
+
export declare class PolicyRule {
|
|
2607
|
+
constructor(props: {
|
|
2608
|
+
/** Verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs. */
|
|
2609
|
+
verbs: string[];
|
|
2610
|
+
/** APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. "" represents the core API group and "*" represents all API groups. */
|
|
2611
|
+
apiGroups?: string[];
|
|
2612
|
+
/** NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"), but not both. */
|
|
2613
|
+
nonResourceURLs?: string[];
|
|
2614
|
+
/** ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. */
|
|
2615
|
+
resourceNames?: string[];
|
|
2616
|
+
/** Resources is a list of resources this rule applies to. '*' represents all resources. */
|
|
2617
|
+
resources?: string[];
|
|
2618
|
+
});
|
|
2619
|
+
}
|
|
2620
|
+
|
|
2621
|
+
export declare class Probe {
|
|
2622
|
+
constructor(props: {
|
|
2623
|
+
/** Exec specifies a command to execute in the container. */
|
|
2624
|
+
exec?: ExecAction;
|
|
2625
|
+
/** Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. */
|
|
2626
|
+
failureThreshold?: number;
|
|
2627
|
+
/** GRPC specifies a GRPC HealthCheckRequest. */
|
|
2628
|
+
grpc?: Record<string, unknown>;
|
|
2629
|
+
/** HTTPGet specifies an HTTP GET request to perform. */
|
|
2630
|
+
httpGet?: HTTPGetAction;
|
|
2631
|
+
/** Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes */
|
|
2632
|
+
initialDelaySeconds?: number;
|
|
2633
|
+
/** How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. */
|
|
2634
|
+
periodSeconds?: number;
|
|
2635
|
+
/** Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. */
|
|
2636
|
+
successThreshold?: number;
|
|
2637
|
+
/** TCPSocket specifies a connection to a TCP port. */
|
|
2638
|
+
tcpSocket?: TCPSocketAction;
|
|
2639
|
+
/** Optional duration in seconds the pod needs to terminate gracefully upon probe failure. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this value overrides the value provided by the pod spec. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). This is a beta field and requires enabling ProbeTerminationGracePeriod feature gate. Minimum value is 1. spec.terminationGracePeriodSeconds is used if unset. */
|
|
2640
|
+
terminationGracePeriodSeconds?: number;
|
|
2641
|
+
/** Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes */
|
|
2642
|
+
timeoutSeconds?: number;
|
|
2643
|
+
});
|
|
2644
|
+
}
|
|
2645
|
+
|
|
2646
|
+
export declare class ResourceRequirements {
|
|
2647
|
+
constructor(props: {
|
|
2648
|
+
/** Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container.
|
|
2649
|
+
|
|
2650
|
+
This is an alpha field and requires enabling the DynamicResourceAllocation feature gate.
|
|
2651
|
+
|
|
2652
|
+
This field is immutable. It can only be set for containers. */
|
|
2653
|
+
claims?: Record<string, unknown>[];
|
|
2654
|
+
/** Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ */
|
|
2655
|
+
limits?: Record<string, string>;
|
|
2656
|
+
/** Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ */
|
|
2657
|
+
requests?: Record<string, string>;
|
|
2658
|
+
});
|
|
2659
|
+
}
|
|
2660
|
+
|
|
2661
|
+
export declare class RoleRef {
|
|
2662
|
+
constructor(props: {
|
|
2663
|
+
/** APIGroup is the group for the resource being referenced */
|
|
2664
|
+
apiGroup: string;
|
|
2665
|
+
/** Kind is the type of resource being referenced */
|
|
2666
|
+
kind: string;
|
|
2667
|
+
/** Name is the name of resource being referenced */
|
|
2668
|
+
name: string;
|
|
2669
|
+
});
|
|
2670
|
+
}
|
|
2671
|
+
|
|
2672
|
+
export declare class RollingUpdateDeployment {
|
|
2673
|
+
constructor(props: {
|
|
2674
|
+
/** The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new ReplicaSet can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods. */
|
|
2675
|
+
maxSurge?: string | number;
|
|
2676
|
+
/** The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old ReplicaSet can be scaled down further, followed by scaling up the new ReplicaSet, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. */
|
|
2677
|
+
maxUnavailable?: string | number;
|
|
2678
|
+
});
|
|
2679
|
+
}
|
|
2680
|
+
|
|
2681
|
+
export declare class SecretKeySelector {
|
|
2682
|
+
constructor(props: {
|
|
2683
|
+
/** The key of the secret to select from. Must be a valid secret key. */
|
|
2684
|
+
key: string;
|
|
2685
|
+
/** Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names */
|
|
2686
|
+
name?: string;
|
|
2687
|
+
/** Specify whether the Secret or its key must be defined */
|
|
2688
|
+
optional?: boolean;
|
|
2689
|
+
});
|
|
2690
|
+
}
|
|
2691
|
+
|
|
2692
|
+
export declare class SecurityContext {
|
|
2693
|
+
constructor(props: {
|
|
2694
|
+
/** AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN Note that this field cannot be set when spec.os.name is windows. */
|
|
2695
|
+
allowPrivilegeEscalation?: boolean;
|
|
2696
|
+
/** appArmorProfile is the AppArmor options to use by this container. If set, this profile overrides the pod's appArmorProfile. Note that this field cannot be set when spec.os.name is windows. */
|
|
2697
|
+
appArmorProfile?: Record<string, unknown>;
|
|
2698
|
+
/** The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. Note that this field cannot be set when spec.os.name is windows. */
|
|
2699
|
+
capabilities?: Capabilities;
|
|
2700
|
+
/** Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. Note that this field cannot be set when spec.os.name is windows. */
|
|
2701
|
+
privileged?: boolean;
|
|
2702
|
+
/** procMount denotes the type of proc mount to use for the containers. The default value is Default which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. Note that this field cannot be set when spec.os.name is windows. */
|
|
2703
|
+
procMount?: string;
|
|
2704
|
+
/** Whether this container has a read-only root filesystem. Default is false. Note that this field cannot be set when spec.os.name is windows. */
|
|
2705
|
+
readOnlyRootFilesystem?: boolean;
|
|
2706
|
+
/** The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows. */
|
|
2707
|
+
runAsGroup?: number;
|
|
2708
|
+
/** Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. */
|
|
2709
|
+
runAsNonRoot?: boolean;
|
|
2710
|
+
/** The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows. */
|
|
2711
|
+
runAsUser?: number;
|
|
2712
|
+
/** The seccomp options to use by this container. If seccomp options are provided at both the pod & container level, the container options override the pod options. Note that this field cannot be set when spec.os.name is windows. */
|
|
2713
|
+
seccompProfile?: Record<string, unknown>;
|
|
2714
|
+
/** The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows. */
|
|
2715
|
+
seLinuxOptions?: Record<string, unknown>;
|
|
2716
|
+
/** The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is linux. */
|
|
2717
|
+
windowsOptions?: Record<string, unknown>;
|
|
2718
|
+
});
|
|
2719
|
+
}
|
|
2720
|
+
|
|
2721
|
+
export declare class ServiceBackendPort {
|
|
2722
|
+
constructor(props: {
|
|
2723
|
+
/** name is the name of the port on the Service. This is a mutually exclusive setting with "Number". */
|
|
2724
|
+
name?: string;
|
|
2725
|
+
/** number is the numerical port number (e.g. 80) on the Service. This is a mutually exclusive setting with "Name". */
|
|
2726
|
+
number?: number;
|
|
2727
|
+
});
|
|
2728
|
+
}
|
|
2729
|
+
|
|
2730
|
+
export declare class ServicePort {
|
|
2731
|
+
constructor(props: {
|
|
2732
|
+
/** The port that will be exposed by this service. */
|
|
2733
|
+
port: number;
|
|
2734
|
+
/** The application protocol for this port. This is used as a hint for implementations to offer richer behavior for protocols that they understand. This field follows standard Kubernetes label syntax. Valid values are either:
|
|
2735
|
+
|
|
2736
|
+
* Un-prefixed protocol names - reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names).
|
|
2737
|
+
|
|
2738
|
+
* Kubernetes-defined prefixed names:
|
|
2739
|
+
* 'kubernetes.io/h2c' - HTTP/2 prior knowledge over cleartext as described in https://www.rfc-editor.org/rfc/rfc9113.html#name-starting-http-2-with-prior-
|
|
2740
|
+
* 'kubernetes.io/ws' - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455
|
|
2741
|
+
* 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455
|
|
2742
|
+
|
|
2743
|
+
* Other protocols should use implementation-defined prefixed names such as mycompany.com/my-custom-protocol. */
|
|
2744
|
+
appProtocol?: string;
|
|
2745
|
+
/** The name of this port within the service. This must be a DNS_LABEL. All ports within a ServiceSpec must have unique names. When considering the endpoints for a Service, this must match the 'name' field in the EndpointPort. Optional if only one ServicePort is defined on this service. */
|
|
2746
|
+
name?: string;
|
|
2747
|
+
/** The port on each node on which this service is exposed when type is NodePort or LoadBalancer. Usually assigned by the system. If a value is specified, in-range, and not in use it will be used, otherwise the operation will fail. If not specified, a port will be allocated if this Service requires one. If this field is specified when creating a Service which does not need it, creation will fail. This field will be wiped when updating a Service to no longer need it (e.g. changing type from NodePort to ClusterIP). More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport */
|
|
2748
|
+
nodePort?: number;
|
|
2749
|
+
/** The IP protocol for this port. Supports "TCP", "UDP", and "SCTP". Default is TCP. */
|
|
2750
|
+
protocol?: string;
|
|
2751
|
+
/** Number or name of the port to access on the pods targeted by the service. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. If this is a string, it will be looked up as a named port in the target Pod's container ports. If this is not specified, the value of the 'port' field is used (an identity map). This field is ignored for services with clusterIP=None, and should be omitted or set equal to the 'port' field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service */
|
|
2752
|
+
targetPort?: string | number;
|
|
2753
|
+
});
|
|
2754
|
+
}
|
|
2755
|
+
|
|
2756
|
+
export declare class Subject {
|
|
2757
|
+
constructor(props: {
|
|
2758
|
+
/** Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount". If the Authorizer does not recognized the kind value, the Authorizer should report an error. */
|
|
2759
|
+
kind: string;
|
|
2760
|
+
/** Name of the object being referenced. */
|
|
2761
|
+
name: string;
|
|
2762
|
+
/** APIGroup holds the API group of the referenced subject. Defaults to "" for ServiceAccount subjects. Defaults to "rbac.authorization.k8s.io" for User and Group subjects. */
|
|
2763
|
+
apiGroup?: string;
|
|
2764
|
+
/** Namespace of the referenced object. If the object kind is non-namespace, such as "User" or "Group", and this value is not empty the Authorizer should report an error. */
|
|
2765
|
+
namespace?: string;
|
|
2766
|
+
});
|
|
2767
|
+
}
|
|
2768
|
+
|
|
2769
|
+
export declare class TCPSocketAction {
|
|
2770
|
+
constructor(props: {
|
|
2771
|
+
/** Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. */
|
|
2772
|
+
port: string | number;
|
|
2773
|
+
/** Optional: Host name to connect to, defaults to the pod IP. */
|
|
2774
|
+
host?: string;
|
|
2775
|
+
});
|
|
2776
|
+
}
|
|
2777
|
+
|
|
2778
|
+
export declare class Toleration {
|
|
2779
|
+
constructor(props: {
|
|
2780
|
+
/** Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. */
|
|
2781
|
+
effect?: string;
|
|
2782
|
+
/** Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. */
|
|
2783
|
+
key?: string;
|
|
2784
|
+
/** Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. */
|
|
2785
|
+
operator?: string;
|
|
2786
|
+
/** TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. */
|
|
2787
|
+
tolerationSeconds?: number;
|
|
2788
|
+
/** Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. */
|
|
2789
|
+
value?: string;
|
|
2790
|
+
});
|
|
2791
|
+
}
|
|
2792
|
+
|
|
2793
|
+
export declare class TopologySpreadConstraint {
|
|
2794
|
+
constructor(props: {
|
|
2795
|
+
/** MaxSkew describes the degree to which pods may be unevenly distributed. When `whenUnsatisfiable=DoNotSchedule`, it is the maximum permitted difference between the number of matching pods in the target topology and the global minimum. The global minimum is the minimum number of matching pods in an eligible domain or zero if the number of eligible domains is less than MinDomains. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 2/2/1: In this case, the global minimum is 1. | zone1 | zone2 | zone3 | | P P | P P | P | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 2/2/2; scheduling it onto zone1(zone2) would make the ActualSkew(3-1) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. When `whenUnsatisfiable=ScheduleAnyway`, it is used to give higher precedence to topologies that satisfy it. It's a required field. Default value is 1 and 0 is not allowed. */
|
|
2796
|
+
maxSkew: number;
|
|
2797
|
+
/** TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each <key, value> as a "bucket", and try to put balanced number of pods into each bucket. We define a domain as a particular instance of a topology. Also, we define an eligible domain as a domain whose nodes meet the requirements of nodeAffinityPolicy and nodeTaintsPolicy. e.g. If TopologyKey is "kubernetes.io/hostname", each Node is a domain of that topology. And, if TopologyKey is "topology.kubernetes.io/zone", each zone is a domain of that topology. It's a required field. */
|
|
2798
|
+
topologyKey: string;
|
|
2799
|
+
/** WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it. - ScheduleAnyway tells the scheduler to schedule the pod in any location,
|
|
2800
|
+
but giving higher precedence to topologies that would help reduce the
|
|
2801
|
+
skew.
|
|
2802
|
+
A constraint is considered "Unsatisfiable" for an incoming pod if and only if every possible node assignment for that pod would violate "MaxSkew" on some topology. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. */
|
|
2803
|
+
whenUnsatisfiable: string;
|
|
2804
|
+
/** LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. */
|
|
2805
|
+
labelSelector?: LabelSelector;
|
|
2806
|
+
/** MatchLabelKeys is a set of pod label keys to select the pods over which spreading will be calculated. The keys are used to lookup values from the incoming pod labels, those key-value labels are ANDed with labelSelector to select the group of existing pods over which spreading will be calculated for the incoming pod. The same key is forbidden to exist in both MatchLabelKeys and LabelSelector. MatchLabelKeys cannot be set when LabelSelector isn't set. Keys that don't exist in the incoming pod labels will be ignored. A null or empty list means only match against labelSelector.
|
|
2807
|
+
|
|
2808
|
+
This is a beta field and requires the MatchLabelKeysInPodTopologySpread feature gate to be enabled (enabled by default). */
|
|
2809
|
+
matchLabelKeys?: string[];
|
|
2810
|
+
/** MinDomains indicates a minimum number of eligible domains. When the number of eligible domains with matching topology keys is less than minDomains, Pod Topology Spread treats "global minimum" as 0, and then the calculation of Skew is performed. And when the number of eligible domains with matching topology keys equals or greater than minDomains, this value has no effect on scheduling. As a result, when the number of eligible domains is less than minDomains, scheduler won't schedule more than maxSkew Pods to those domains. If value is nil, the constraint behaves as if MinDomains is equal to 1. Valid values are integers greater than 0. When value is not nil, WhenUnsatisfiable must be DoNotSchedule.
|
|
2811
|
+
|
|
2812
|
+
For example, in a 3-zone cluster, MaxSkew is set to 2, MinDomains is set to 5 and pods with the same labelSelector spread as 2/2/2: | zone1 | zone2 | zone3 | | P P | P P | P P | The number of domains is less than 5(MinDomains), so "global minimum" is treated as 0. In this situation, new pod with the same labelSelector cannot be scheduled, because computed skew will be 3(3 - 0) if new Pod is scheduled to any of the three zones, it will violate MaxSkew. */
|
|
2813
|
+
minDomains?: number;
|
|
2814
|
+
/** NodeAffinityPolicy indicates how we will treat Pod's nodeAffinity/nodeSelector when calculating pod topology spread skew. Options are: - Honor: only nodes matching nodeAffinity/nodeSelector are included in the calculations. - Ignore: nodeAffinity/nodeSelector are ignored. All nodes are included in the calculations.
|
|
2815
|
+
|
|
2816
|
+
If this value is nil, the behavior is equivalent to the Honor policy. This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag. */
|
|
2817
|
+
nodeAffinityPolicy?: string;
|
|
2818
|
+
/** NodeTaintsPolicy indicates how we will treat node taints when calculating pod topology spread skew. Options are: - Honor: nodes without taints, along with tainted nodes for which the incoming pod has a toleration, are included. - Ignore: node taints are ignored. All nodes are included.
|
|
2819
|
+
|
|
2820
|
+
If this value is nil, the behavior is equivalent to the Ignore policy. This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag. */
|
|
2821
|
+
nodeTaintsPolicy?: string;
|
|
2822
|
+
});
|
|
2823
|
+
}
|
|
2824
|
+
|
|
2825
|
+
export declare class Volume {
|
|
2826
|
+
constructor(props: {
|
|
2827
|
+
/** name of the volume. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names */
|
|
2828
|
+
name: string;
|
|
2829
|
+
/** awsElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Deprecated: AWSElasticBlockStore is deprecated. All operations for the in-tree awsElasticBlockStore type are redirected to the ebs.csi.aws.com CSI driver. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore */
|
|
2830
|
+
awsElasticBlockStore?: Record<string, unknown>;
|
|
2831
|
+
/** azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. Deprecated: AzureDisk is deprecated. All operations for the in-tree azureDisk type are redirected to the disk.csi.azure.com CSI driver. */
|
|
2832
|
+
azureDisk?: Record<string, unknown>;
|
|
2833
|
+
/** azureFile represents an Azure File Service mount on the host and bind mount to the pod. Deprecated: AzureFile is deprecated. All operations for the in-tree azureFile type are redirected to the file.csi.azure.com CSI driver. */
|
|
2834
|
+
azureFile?: Record<string, unknown>;
|
|
2835
|
+
/** cephFS represents a Ceph FS mount on the host that shares a pod's lifetime. Deprecated: CephFS is deprecated and the in-tree cephfs type is no longer supported. */
|
|
2836
|
+
cephfs?: Record<string, unknown>;
|
|
2837
|
+
/** cinder represents a cinder volume attached and mounted on kubelets host machine. Deprecated: Cinder is deprecated. All operations for the in-tree cinder type are redirected to the cinder.csi.openstack.org CSI driver. More info: https://examples.k8s.io/mysql-cinder-pd/README.md */
|
|
2838
|
+
cinder?: Record<string, unknown>;
|
|
2839
|
+
/** configMap represents a configMap that should populate this volume */
|
|
2840
|
+
configMap?: Record<string, unknown>;
|
|
2841
|
+
/** csi (Container Storage Interface) represents ephemeral storage that is handled by certain external CSI drivers. */
|
|
2842
|
+
csi?: Record<string, unknown>;
|
|
2843
|
+
/** downwardAPI represents downward API about the pod that should populate this volume */
|
|
2844
|
+
downwardAPI?: Record<string, unknown>;
|
|
2845
|
+
/** emptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir */
|
|
2846
|
+
emptyDir?: Record<string, unknown>;
|
|
2847
|
+
/** ephemeral represents a volume that is handled by a cluster storage driver. The volume's lifecycle is tied to the pod that defines it - it will be created before the pod starts, and deleted when the pod is removed.
|
|
2848
|
+
|
|
2849
|
+
Use this if: a) the volume is only needed while the pod runs, b) features of normal volumes like restoring from snapshot or capacity
|
|
2850
|
+
tracking are needed,
|
|
2851
|
+
c) the storage driver is specified through a storage class, and d) the storage driver supports dynamic volume provisioning through
|
|
2852
|
+
a PersistentVolumeClaim (see EphemeralVolumeSource for more
|
|
2853
|
+
information on the connection between this volume type
|
|
2854
|
+
and PersistentVolumeClaim).
|
|
2855
|
+
|
|
2856
|
+
Use PersistentVolumeClaim or one of the vendor-specific APIs for volumes that persist for longer than the lifecycle of an individual pod.
|
|
2857
|
+
|
|
2858
|
+
Use CSI for light-weight local ephemeral volumes if the CSI driver is meant to be used that way - see the documentation of the driver for more information.
|
|
2859
|
+
|
|
2860
|
+
A pod can use both types of ephemeral volumes and persistent volumes at the same time. */
|
|
2861
|
+
ephemeral?: Record<string, unknown>;
|
|
2862
|
+
/** fc represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. */
|
|
2863
|
+
fc?: Record<string, unknown>;
|
|
2864
|
+
/** flexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. Deprecated: FlexVolume is deprecated. Consider using a CSIDriver instead. */
|
|
2865
|
+
flexVolume?: Record<string, unknown>;
|
|
2866
|
+
/** flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running. Deprecated: Flocker is deprecated and the in-tree flocker type is no longer supported. */
|
|
2867
|
+
flocker?: Record<string, unknown>;
|
|
2868
|
+
/** gcePersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Deprecated: GCEPersistentDisk is deprecated. All operations for the in-tree gcePersistentDisk type are redirected to the pd.csi.storage.gke.io CSI driver. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk */
|
|
2869
|
+
gcePersistentDisk?: Record<string, unknown>;
|
|
2870
|
+
/** gitRepo represents a git repository at a particular revision. Deprecated: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. */
|
|
2871
|
+
gitRepo?: Record<string, unknown>;
|
|
2872
|
+
/** glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. Deprecated: Glusterfs is deprecated and the in-tree glusterfs type is no longer supported. More info: https://examples.k8s.io/volumes/glusterfs/README.md */
|
|
2873
|
+
glusterfs?: Record<string, unknown>;
|
|
2874
|
+
/** hostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath */
|
|
2875
|
+
hostPath?: Record<string, unknown>;
|
|
2876
|
+
/** image represents an OCI object (a container image or artifact) pulled and mounted on the kubelet's host machine. The volume is resolved at pod startup depending on which PullPolicy value is provided:
|
|
2877
|
+
|
|
2878
|
+
- Always: the kubelet always attempts to pull the reference. Container creation will fail If the pull fails. - Never: the kubelet never pulls the reference and only uses a local image or artifact. Container creation will fail if the reference isn't present. - IfNotPresent: the kubelet pulls if the reference isn't already present on disk. Container creation will fail if the reference isn't present and the pull fails.
|
|
2879
|
+
|
|
2880
|
+
The volume gets re-resolved if the pod gets deleted and recreated, which means that new remote content will become available on pod recreation. A failure to resolve or pull the image during pod startup will block containers from starting and may add significant latency. Failures will be retried using normal volume backoff and will be reported on the pod reason and message. The types of objects that may be mounted by this volume are defined by the container runtime implementation on a host machine and at minimum must include all valid types supported by the container image field. The OCI object gets mounted in a single directory (spec.containers[*].volumeMounts.mountPath) by merging the manifest layers in the same way as for container images. The volume will be mounted read-only (ro) and non-executable files (noexec). Sub path mounts for containers are not supported (spec.containers[*].volumeMounts.subpath). The field spec.securityContext.fsGroupChangePolicy has no effect on this volume type. */
|
|
2881
|
+
image?: Record<string, unknown>;
|
|
2882
|
+
/** iscsi represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md */
|
|
2883
|
+
iscsi?: Record<string, unknown>;
|
|
2884
|
+
/** nfs represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs */
|
|
2885
|
+
nfs?: Record<string, unknown>;
|
|
2886
|
+
/** persistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims */
|
|
2887
|
+
persistentVolumeClaim?: Record<string, unknown>;
|
|
2888
|
+
/** photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine. Deprecated: PhotonPersistentDisk is deprecated and the in-tree photonPersistentDisk type is no longer supported. */
|
|
2889
|
+
photonPersistentDisk?: Record<string, unknown>;
|
|
2890
|
+
/** portworxVolume represents a portworx volume attached and mounted on kubelets host machine. Deprecated: PortworxVolume is deprecated. All operations for the in-tree portworxVolume type are redirected to the pxd.portworx.com CSI driver when the CSIMigrationPortworx feature-gate is on. */
|
|
2891
|
+
portworxVolume?: Record<string, unknown>;
|
|
2892
|
+
/** projected items for all in one resources secrets, configmaps, and downward API */
|
|
2893
|
+
projected?: Record<string, unknown>;
|
|
2894
|
+
/** quobyte represents a Quobyte mount on the host that shares a pod's lifetime. Deprecated: Quobyte is deprecated and the in-tree quobyte type is no longer supported. */
|
|
2895
|
+
quobyte?: Record<string, unknown>;
|
|
2896
|
+
/** rbd represents a Rados Block Device mount on the host that shares a pod's lifetime. Deprecated: RBD is deprecated and the in-tree rbd type is no longer supported. More info: https://examples.k8s.io/volumes/rbd/README.md */
|
|
2897
|
+
rbd?: Record<string, unknown>;
|
|
2898
|
+
/** scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. Deprecated: ScaleIO is deprecated and the in-tree scaleIO type is no longer supported. */
|
|
2899
|
+
scaleIO?: Record<string, unknown>;
|
|
2900
|
+
/** secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret */
|
|
2901
|
+
secret?: Record<string, unknown>;
|
|
2902
|
+
/** storageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. Deprecated: StorageOS is deprecated and the in-tree storageos type is no longer supported. */
|
|
2903
|
+
storageos?: Record<string, unknown>;
|
|
2904
|
+
/** vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine. Deprecated: VsphereVolume is deprecated. All operations for the in-tree vsphereVolume type are redirected to the csi.vsphere.vmware.com CSI driver. */
|
|
2905
|
+
vsphereVolume?: Record<string, unknown>;
|
|
2906
|
+
});
|
|
2907
|
+
}
|
|
2908
|
+
|
|
2909
|
+
export declare class VolumeMount {
|
|
2910
|
+
constructor(props: {
|
|
2911
|
+
/** Path within the container at which the volume should be mounted. Must not contain ':'. */
|
|
2912
|
+
mountPath: string;
|
|
2913
|
+
/** This must match the Name of a Volume. */
|
|
2914
|
+
name: string;
|
|
2915
|
+
/** mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. When RecursiveReadOnly is set to IfPossible or to Enabled, MountPropagation must be None or unspecified (which defaults to None). */
|
|
2916
|
+
mountPropagation?: string;
|
|
2917
|
+
/** Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. */
|
|
2918
|
+
readOnly?: boolean;
|
|
2919
|
+
/** RecursiveReadOnly specifies whether read-only mounts should be handled recursively.
|
|
2920
|
+
|
|
2921
|
+
If ReadOnly is false, this field has no meaning and must be unspecified.
|
|
2922
|
+
|
|
2923
|
+
If ReadOnly is true, and this field is set to Disabled, the mount is not made recursively read-only. If this field is set to IfPossible, the mount is made recursively read-only, if it is supported by the container runtime. If this field is set to Enabled, the mount is made recursively read-only if it is supported by the container runtime, otherwise the pod will not be started and an error will be generated to indicate the reason.
|
|
2924
|
+
|
|
2925
|
+
If this field is set to IfPossible or Enabled, MountPropagation must be set to None (or be unspecified, which defaults to None).
|
|
2926
|
+
|
|
2927
|
+
If this field is not specified, it is treated as an equivalent of Disabled. */
|
|
2928
|
+
recursiveReadOnly?: string;
|
|
2929
|
+
/** Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). */
|
|
2930
|
+
subPath?: string;
|
|
2931
|
+
/** Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. */
|
|
2932
|
+
subPathExpr?: string;
|
|
2933
|
+
});
|
|
2934
|
+
}
|