@pulumi/kubernetes 3.18.3 → 3.19.1
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/core/v1/persistentVolume.d.ts +3 -3
- package/core/v1/persistentVolumeClaim.d.ts +3 -3
- package/core/v1/persistentVolumeClaimList.d.ts +2 -2
- package/core/v1/persistentVolumeList.d.ts +2 -2
- package/core/v1/serviceAccount.d.ts +2 -2
- package/discovery/v1/endpointSlice.d.ts +0 -10
- package/discovery/v1/endpointSlice.js.map +1 -1
- package/helm/v3/release.d.ts +2 -2
- package/networking/v1/networkPolicy.d.ts +4 -0
- package/networking/v1/networkPolicy.js +2 -0
- package/networking/v1/networkPolicy.js.map +1 -1
- package/node/v1/runtimeClass.d.ts +0 -2
- package/node/v1/runtimeClass.js.map +1 -1
- package/node/v1alpha1/runtimeClass.d.ts +1 -1
- package/node/v1alpha1/runtimeClass.js +1 -1
- package/node/v1beta1/runtimeClass.d.ts +2 -2
- package/package.json +2 -2
- package/package.json.dev +2 -2
- package/scheduling/v1/priorityClass.d.ts +2 -2
- package/storage/{v1alpha1 → v1}/csistorageCapacity.d.ts +5 -5
- package/storage/{v1alpha1 → v1}/csistorageCapacity.js +4 -4
- package/storage/v1/csistorageCapacity.js.map +1 -0
- package/storage/{v1alpha1 → v1}/csistorageCapacityList.d.ts +4 -4
- package/storage/{v1alpha1 → v1}/csistorageCapacityList.js +2 -2
- package/storage/v1/csistorageCapacityList.js.map +1 -0
- package/storage/v1/index.d.ts +2 -0
- package/storage/v1/index.js +8 -0
- package/storage/v1/index.js.map +1 -1
- package/storage/v1alpha1/index.d.ts +0 -2
- package/storage/v1alpha1/index.js +0 -8
- package/storage/v1alpha1/index.js.map +1 -1
- package/storage/v1beta1/csistorageCapacity.d.ts +3 -3
- package/storage/v1beta1/csistorageCapacity.js +2 -2
- package/storage/v1beta1/csistorageCapacity.js.map +1 -1
- package/types/input.d.ts +417 -625
- package/types/output.d.ts +416 -624
- package/yaml/yaml.d.ts +28 -26
- package/yaml/yaml.js +6 -6
- package/yaml/yaml.js.map +1 -1
- package/storage/v1alpha1/csistorageCapacity.js.map +0 -1
- package/storage/v1alpha1/csistorageCapacityList.js.map +0 -1
|
@@ -31,11 +31,11 @@ export declare class PersistentVolume extends pulumi.CustomResource {
|
|
|
31
31
|
*/
|
|
32
32
|
readonly metadata: pulumi.Output<outputs.meta.v1.ObjectMeta>;
|
|
33
33
|
/**
|
|
34
|
-
*
|
|
34
|
+
* 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
|
|
35
35
|
*/
|
|
36
36
|
readonly spec: pulumi.Output<outputs.core.v1.PersistentVolumeSpec>;
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
38
|
+
* status represents the current information/status for the persistent volume. Populated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes
|
|
39
39
|
*/
|
|
40
40
|
readonly status: pulumi.Output<outputs.core.v1.PersistentVolumeStatus>;
|
|
41
41
|
/**
|
|
@@ -64,7 +64,7 @@ export interface PersistentVolumeArgs {
|
|
|
64
64
|
*/
|
|
65
65
|
metadata?: pulumi.Input<inputs.meta.v1.ObjectMeta>;
|
|
66
66
|
/**
|
|
67
|
-
*
|
|
67
|
+
* 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
|
|
68
68
|
*/
|
|
69
69
|
spec?: pulumi.Input<inputs.core.v1.PersistentVolumeSpec>;
|
|
70
70
|
}
|
|
@@ -31,11 +31,11 @@ export declare class PersistentVolumeClaim extends pulumi.CustomResource {
|
|
|
31
31
|
*/
|
|
32
32
|
readonly metadata: pulumi.Output<outputs.meta.v1.ObjectMeta>;
|
|
33
33
|
/**
|
|
34
|
-
*
|
|
34
|
+
* spec defines the desired characteristics of a volume requested by a pod author. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
|
|
35
35
|
*/
|
|
36
36
|
readonly spec: pulumi.Output<outputs.core.v1.PersistentVolumeClaimSpec>;
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
38
|
+
* status represents the current information/status of a persistent volume claim. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
|
|
39
39
|
*/
|
|
40
40
|
readonly status: pulumi.Output<outputs.core.v1.PersistentVolumeClaimStatus>;
|
|
41
41
|
/**
|
|
@@ -64,7 +64,7 @@ export interface PersistentVolumeClaimArgs {
|
|
|
64
64
|
*/
|
|
65
65
|
metadata?: pulumi.Input<inputs.meta.v1.ObjectMeta>;
|
|
66
66
|
/**
|
|
67
|
-
*
|
|
67
|
+
* spec defines the desired characteristics of a volume requested by a pod author. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
|
|
68
68
|
*/
|
|
69
69
|
spec?: pulumi.Input<inputs.core.v1.PersistentVolumeClaimSpec>;
|
|
70
70
|
}
|
|
@@ -23,7 +23,7 @@ export declare class PersistentVolumeClaimList extends pulumi.CustomResource {
|
|
|
23
23
|
*/
|
|
24
24
|
readonly apiVersion: pulumi.Output<"v1">;
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* items is a list of persistent volume claims. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
|
|
27
27
|
*/
|
|
28
28
|
readonly items: pulumi.Output<outputs.core.v1.PersistentVolumeClaim[]>;
|
|
29
29
|
/**
|
|
@@ -52,7 +52,7 @@ export interface PersistentVolumeClaimListArgs {
|
|
|
52
52
|
*/
|
|
53
53
|
apiVersion?: pulumi.Input<"v1">;
|
|
54
54
|
/**
|
|
55
|
-
*
|
|
55
|
+
* items is a list of persistent volume claims. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
|
|
56
56
|
*/
|
|
57
57
|
items: pulumi.Input<pulumi.Input<inputs.core.v1.PersistentVolumeClaim>[]>;
|
|
58
58
|
/**
|
|
@@ -23,7 +23,7 @@ export declare class PersistentVolumeList extends pulumi.CustomResource {
|
|
|
23
23
|
*/
|
|
24
24
|
readonly apiVersion: pulumi.Output<"v1">;
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* items is a list of persistent volumes. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes
|
|
27
27
|
*/
|
|
28
28
|
readonly items: pulumi.Output<outputs.core.v1.PersistentVolume[]>;
|
|
29
29
|
/**
|
|
@@ -52,7 +52,7 @@ export interface PersistentVolumeListArgs {
|
|
|
52
52
|
*/
|
|
53
53
|
apiVersion?: pulumi.Input<"v1">;
|
|
54
54
|
/**
|
|
55
|
-
*
|
|
55
|
+
* items is a list of persistent volumes. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes
|
|
56
56
|
*/
|
|
57
57
|
items: pulumi.Input<pulumi.Input<inputs.core.v1.PersistentVolume>[]>;
|
|
58
58
|
/**
|
|
@@ -39,7 +39,7 @@ export declare class ServiceAccount extends pulumi.CustomResource {
|
|
|
39
39
|
*/
|
|
40
40
|
readonly metadata: pulumi.Output<outputs.meta.v1.ObjectMeta>;
|
|
41
41
|
/**
|
|
42
|
-
* Secrets is
|
|
42
|
+
* 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". 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
|
|
43
43
|
*/
|
|
44
44
|
readonly secrets: pulumi.Output<outputs.core.v1.ObjectReference[]>;
|
|
45
45
|
/**
|
|
@@ -76,7 +76,7 @@ export interface ServiceAccountArgs {
|
|
|
76
76
|
*/
|
|
77
77
|
metadata?: pulumi.Input<inputs.meta.v1.ObjectMeta>;
|
|
78
78
|
/**
|
|
79
|
-
* Secrets is
|
|
79
|
+
* 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". 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
|
|
80
80
|
*/
|
|
81
81
|
secrets?: pulumi.Input<pulumi.Input<inputs.core.v1.ObjectReference>[]>;
|
|
82
82
|
}
|
|
@@ -20,11 +20,6 @@ export declare class EndpointSlice extends pulumi.CustomResource {
|
|
|
20
20
|
static isInstance(obj: any): obj is EndpointSlice;
|
|
21
21
|
/**
|
|
22
22
|
* 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.
|
|
23
|
-
*
|
|
24
|
-
* Possible enum values:
|
|
25
|
-
* - `"FQDN"` represents a FQDN.
|
|
26
|
-
* - `"IPv4"` represents an IPv4 Address.
|
|
27
|
-
* - `"IPv6"` represents an IPv6 Address.
|
|
28
23
|
*/
|
|
29
24
|
readonly addressType: pulumi.Output<string>;
|
|
30
25
|
/**
|
|
@@ -62,11 +57,6 @@ export declare class EndpointSlice extends pulumi.CustomResource {
|
|
|
62
57
|
export interface EndpointSliceArgs {
|
|
63
58
|
/**
|
|
64
59
|
* 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.
|
|
65
|
-
*
|
|
66
|
-
* Possible enum values:
|
|
67
|
-
* - `"FQDN"` represents a FQDN.
|
|
68
|
-
* - `"IPv4"` represents an IPv4 Address.
|
|
69
|
-
* - `"IPv6"` represents an IPv6 Address.
|
|
70
60
|
*/
|
|
71
61
|
addressType: pulumi.Input<string>;
|
|
72
62
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"endpointSlice.js","sourceRoot":"","sources":["../../../discovery/v1/endpointSlice.ts"],"names":[],"mappings":";AAAA,yDAAyD;AACzD,iFAAiF;;;AAEjF,yCAAyC;AAEzC,6CAA6C;AAE7C;;GAEG;AACH,MAAa,aAAc,SAAQ,MAAM,CAAC,cAAc;
|
|
1
|
+
{"version":3,"file":"endpointSlice.js","sourceRoot":"","sources":["../../../discovery/v1/endpointSlice.ts"],"names":[],"mappings":";AAAA,yDAAyD;AACzD,iFAAiF;;;AAEjF,yCAAyC;AAEzC,6CAA6C;AAE7C;;GAEG;AACH,MAAa,aAAc,SAAQ,MAAM,CAAC,cAAc;IAoDpD;;;;;;OAMG;IACH,YAAY,IAAY,EAAE,IAAwB,EAAE,IAAmC;QACnF,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE;YACV,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,WAAW,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACxD,MAAM,IAAI,KAAK,CAAC,yCAAyC,CAAC,CAAC;aAC9D;YACD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,SAAS,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACtD,MAAM,IAAI,KAAK,CAAC,uCAAuC,CAAC,CAAC;aAC5D;YACD,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,YAAY,CAAC,GAAG,qBAAqB,CAAC;YACrD,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC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;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,aAAa,CAAC,YAAY,CAAC;IAC9D,CAAC;;AAzBL,sCAwFC;AA3EG,gBAAgB;AACO,0BAAY,GAAG,8CAA8C,CAAC"}
|
package/helm/v3/release.d.ts
CHANGED
|
@@ -195,7 +195,7 @@ export declare class Release extends pulumi.CustomResource {
|
|
|
195
195
|
*/
|
|
196
196
|
readonly devel: pulumi.Output<boolean>;
|
|
197
197
|
/**
|
|
198
|
-
* Prevent CRD hooks from
|
|
198
|
+
* Prevent CRD hooks from running, but run other hooks. See helm install --no-crd-hook
|
|
199
199
|
*/
|
|
200
200
|
readonly disableCRDHooks: pulumi.Output<boolean>;
|
|
201
201
|
/**
|
|
@@ -351,7 +351,7 @@ export interface ReleaseArgs {
|
|
|
351
351
|
*/
|
|
352
352
|
devel?: pulumi.Input<boolean>;
|
|
353
353
|
/**
|
|
354
|
-
* Prevent CRD hooks from
|
|
354
|
+
* Prevent CRD hooks from running, but run other hooks. See helm install --no-crd-hook
|
|
355
355
|
*/
|
|
356
356
|
disableCRDHooks?: pulumi.Input<boolean>;
|
|
357
357
|
/**
|
|
@@ -34,6 +34,10 @@ export declare class NetworkPolicy extends pulumi.CustomResource {
|
|
|
34
34
|
* Specification of the desired behavior for this NetworkPolicy.
|
|
35
35
|
*/
|
|
36
36
|
readonly spec: pulumi.Output<outputs.networking.v1.NetworkPolicySpec>;
|
|
37
|
+
/**
|
|
38
|
+
* Status is the current state of the NetworkPolicy. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
|
|
39
|
+
*/
|
|
40
|
+
readonly status: pulumi.Output<outputs.networking.v1.NetworkPolicyStatus>;
|
|
37
41
|
/**
|
|
38
42
|
* Create a NetworkPolicy resource with the given unique name, arguments, and options.
|
|
39
43
|
*
|
|
@@ -24,12 +24,14 @@ class NetworkPolicy extends pulumi.CustomResource {
|
|
|
24
24
|
resourceInputs["kind"] = "NetworkPolicy";
|
|
25
25
|
resourceInputs["metadata"] = args ? args.metadata : undefined;
|
|
26
26
|
resourceInputs["spec"] = args ? args.spec : undefined;
|
|
27
|
+
resourceInputs["status"] = undefined /*out*/;
|
|
27
28
|
}
|
|
28
29
|
else {
|
|
29
30
|
resourceInputs["apiVersion"] = undefined /*out*/;
|
|
30
31
|
resourceInputs["kind"] = undefined /*out*/;
|
|
31
32
|
resourceInputs["metadata"] = undefined /*out*/;
|
|
32
33
|
resourceInputs["spec"] = undefined /*out*/;
|
|
34
|
+
resourceInputs["status"] = undefined /*out*/;
|
|
33
35
|
}
|
|
34
36
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
35
37
|
const aliasOpts = { aliases: [{ type: "kubernetes:extensions/v1beta1:NetworkPolicy" }] };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"networkPolicy.js","sourceRoot":"","sources":["../../../networking/v1/networkPolicy.ts"],"names":[],"mappings":";AAAA,yDAAyD;AACzD,iFAAiF;;;AAEjF,yCAAyC;AAEzC,6CAA6C;AAE7C;;GAEG;AACH,MAAa,aAAc,SAAQ,MAAM,CAAC,cAAc;
|
|
1
|
+
{"version":3,"file":"networkPolicy.js","sourceRoot":"","sources":["../../../networking/v1/networkPolicy.ts"],"names":[],"mappings":";AAAA,yDAAyD;AACzD,iFAAiF;;;AAEjF,yCAAyC;AAEzC,6CAA6C;AAE7C;;GAEG;AACH,MAAa,aAAc,SAAQ,MAAM,CAAC,cAAc;IAgDpD;;;;;;OAMG;IACH,YAAY,IAAY,EAAE,IAAwB,EAAE,IAAmC;QACnF,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE;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AG,CAAC;IAC1E,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,aAAa,CAAC,YAAY,CAAC;IAC9D,CAAC;;AAzBL,sCA4EC;AA/DG,gBAAgB;AACO,0BAAY,GAAG,+CAA+C,CAAC"}
|
|
@@ -37,7 +37,6 @@ export declare class RuntimeClass extends pulumi.CustomResource {
|
|
|
37
37
|
/**
|
|
38
38
|
* Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. For more details, see
|
|
39
39
|
* https://kubernetes.io/docs/concepts/scheduling-eviction/pod-overhead/
|
|
40
|
-
* This field is in beta starting v1.18 and is only honored by servers that enable the PodOverhead feature.
|
|
41
40
|
*/
|
|
42
41
|
readonly overhead: pulumi.Output<outputs.node.v1.Overhead>;
|
|
43
42
|
/**
|
|
@@ -76,7 +75,6 @@ export interface RuntimeClassArgs {
|
|
|
76
75
|
/**
|
|
77
76
|
* Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. For more details, see
|
|
78
77
|
* https://kubernetes.io/docs/concepts/scheduling-eviction/pod-overhead/
|
|
79
|
-
* This field is in beta starting v1.18 and is only honored by servers that enable the PodOverhead feature.
|
|
80
78
|
*/
|
|
81
79
|
overhead?: pulumi.Input<inputs.node.v1.Overhead>;
|
|
82
80
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtimeClass.js","sourceRoot":"","sources":["../../../node/v1/runtimeClass.ts"],"names":[],"mappings":";AAAA,yDAAyD;AACzD,iFAAiF;;;AAEjF,yCAAyC;AAEzC,6CAA6C;AAE7C;;GAEG;AACH,MAAa,YAAa,SAAQ,MAAM,CAAC,cAAc;
|
|
1
|
+
{"version":3,"file":"runtimeClass.js","sourceRoot":"","sources":["../../../node/v1/runtimeClass.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AC,UAAU,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC/C,cAAc,CAAC,UAAU,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC/C,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACpD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,SAAS,GAAG,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,8CAA8C,EAAE,EAAE,EAAE,IAAI,EAAE,6CAA6C,EAAE,CAAC,EAAE,CAAC;QACnJ,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;QAC5C,KAAK,CAAC,YAAY,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACjE,CAAC;IApFD;;;;;;;OAOG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,IAAmC;QAC5F,OAAO,IAAI,YAAY,CAAC,IAAI,EAAE,SAAgB,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACzE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,YAAY,CAAC,YAAY,CAAC;IAC7D,CAAC;;AAzBL,oCAsFC;AAzEG,gBAAgB;AACO,yBAAY,GAAG,wCAAwC,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
import { input as inputs, output as outputs } from "../../types";
|
|
3
3
|
/**
|
|
4
|
-
* RuntimeClass defines a class of container runtime supported in the cluster. The RuntimeClass is used to determine which container runtime is used to run all containers in a pod. RuntimeClasses are (currently) manually defined by a user or cluster provisioner, and referenced in the PodSpec. The Kubelet is responsible for resolving the RuntimeClassName reference before running the pod. For more details, see https://git.k8s.io/enhancements/keps/sig-node/
|
|
4
|
+
* RuntimeClass defines a class of container runtime supported in the cluster. The RuntimeClass is used to determine which container runtime is used to run all containers in a pod. RuntimeClasses are (currently) manually defined by a user or cluster provisioner, and referenced in the PodSpec. The Kubelet is responsible for resolving the RuntimeClassName reference before running the pod. For more details, see https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md
|
|
5
5
|
*/
|
|
6
6
|
export declare class RuntimeClass extends pulumi.CustomResource {
|
|
7
7
|
/**
|
|
@@ -6,7 +6,7 @@ exports.RuntimeClass = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("../../utilities");
|
|
8
8
|
/**
|
|
9
|
-
* RuntimeClass defines a class of container runtime supported in the cluster. The RuntimeClass is used to determine which container runtime is used to run all containers in a pod. RuntimeClasses are (currently) manually defined by a user or cluster provisioner, and referenced in the PodSpec. The Kubelet is responsible for resolving the RuntimeClassName reference before running the pod. For more details, see https://git.k8s.io/enhancements/keps/sig-node/
|
|
9
|
+
* RuntimeClass defines a class of container runtime supported in the cluster. The RuntimeClass is used to determine which container runtime is used to run all containers in a pod. RuntimeClasses are (currently) manually defined by a user or cluster provisioner, and referenced in the PodSpec. The Kubelet is responsible for resolving the RuntimeClassName reference before running the pod. For more details, see https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md
|
|
10
10
|
*/
|
|
11
11
|
class RuntimeClass extends pulumi.CustomResource {
|
|
12
12
|
/**
|
|
@@ -35,7 +35,7 @@ export declare class RuntimeClass extends pulumi.CustomResource {
|
|
|
35
35
|
*/
|
|
36
36
|
readonly metadata: pulumi.Output<outputs.meta.v1.ObjectMeta>;
|
|
37
37
|
/**
|
|
38
|
-
* Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. For more details, see https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md
|
|
38
|
+
* Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. For more details, see https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md
|
|
39
39
|
*/
|
|
40
40
|
readonly overhead: pulumi.Output<outputs.node.v1beta1.Overhead>;
|
|
41
41
|
/**
|
|
@@ -72,7 +72,7 @@ export interface RuntimeClassArgs {
|
|
|
72
72
|
*/
|
|
73
73
|
metadata?: pulumi.Input<inputs.meta.v1.ObjectMeta>;
|
|
74
74
|
/**
|
|
75
|
-
* Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. For more details, see https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md
|
|
75
|
+
* Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. For more details, see https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md
|
|
76
76
|
*/
|
|
77
77
|
overhead?: pulumi.Input<inputs.node.v1beta1.Overhead>;
|
|
78
78
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/kubernetes",
|
|
3
|
-
"version": "v3.
|
|
3
|
+
"version": "v3.19.1",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"pulumi",
|
|
6
6
|
"kubernetes",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"license": "Apache-2.0",
|
|
13
13
|
"scripts": {
|
|
14
14
|
"build": "tsc",
|
|
15
|
-
"install": "node scripts/install-pulumi-plugin.js resource kubernetes v3.
|
|
15
|
+
"install": "node scripts/install-pulumi-plugin.js resource kubernetes v3.19.1"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@pulumi/pulumi": "^3.0.0",
|
package/package.json.dev
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/kubernetes",
|
|
3
|
-
"version": "v3.
|
|
3
|
+
"version": "v3.19.1",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"pulumi",
|
|
6
6
|
"kubernetes",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"license": "Apache-2.0",
|
|
13
13
|
"scripts": {
|
|
14
14
|
"build": "tsc",
|
|
15
|
-
"install": "node scripts/install-pulumi-plugin.js resource kubernetes v3.
|
|
15
|
+
"install": "node scripts/install-pulumi-plugin.js resource kubernetes v3.19.1"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@pulumi/pulumi": "^3.0.0",
|
|
@@ -39,7 +39,7 @@ export declare class PriorityClass extends pulumi.CustomResource {
|
|
|
39
39
|
*/
|
|
40
40
|
readonly metadata: pulumi.Output<outputs.meta.v1.ObjectMeta>;
|
|
41
41
|
/**
|
|
42
|
-
* PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset.
|
|
42
|
+
* PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset.
|
|
43
43
|
*/
|
|
44
44
|
readonly preemptionPolicy: pulumi.Output<string>;
|
|
45
45
|
/**
|
|
@@ -80,7 +80,7 @@ export interface PriorityClassArgs {
|
|
|
80
80
|
*/
|
|
81
81
|
metadata?: pulumi.Input<inputs.meta.v1.ObjectMeta>;
|
|
82
82
|
/**
|
|
83
|
-
* PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset.
|
|
83
|
+
* PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset.
|
|
84
84
|
*/
|
|
85
85
|
preemptionPolicy?: pulumi.Input<string>;
|
|
86
86
|
/**
|
|
@@ -9,7 +9,7 @@ import { input as inputs, output as outputs } from "../../types";
|
|
|
9
9
|
*
|
|
10
10
|
* The producer of these objects can decide which approach is more suitable.
|
|
11
11
|
*
|
|
12
|
-
* They are consumed by the kube-scheduler
|
|
12
|
+
* They are consumed by the kube-scheduler when a CSI driver opts into capacity-aware scheduling with CSIDriverSpec.StorageCapacity. The scheduler compares the MaximumVolumeSize against the requested size of pending volumes to filter out unsuitable nodes. If MaximumVolumeSize is unset, it falls back to a comparison against the less precise Capacity. If that is also unset, the scheduler assumes that capacity is insufficient and tries some other node.
|
|
13
13
|
*/
|
|
14
14
|
export declare class CSIStorageCapacity extends pulumi.CustomResource {
|
|
15
15
|
/**
|
|
@@ -29,11 +29,11 @@ export declare class CSIStorageCapacity extends pulumi.CustomResource {
|
|
|
29
29
|
/**
|
|
30
30
|
* APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
|
|
31
31
|
*/
|
|
32
|
-
readonly apiVersion: pulumi.Output<"storage.k8s.io/
|
|
32
|
+
readonly apiVersion: pulumi.Output<"storage.k8s.io/v1">;
|
|
33
33
|
/**
|
|
34
34
|
* Capacity is the value reported by the CSI driver in its GetCapacityResponse for a GetCapacityRequest with topology and parameters that match the previous fields.
|
|
35
35
|
*
|
|
36
|
-
* 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
|
|
36
|
+
* 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.
|
|
37
37
|
*/
|
|
38
38
|
readonly capacity: pulumi.Output<string>;
|
|
39
39
|
/**
|
|
@@ -78,11 +78,11 @@ export interface CSIStorageCapacityArgs {
|
|
|
78
78
|
/**
|
|
79
79
|
* APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
|
|
80
80
|
*/
|
|
81
|
-
apiVersion?: pulumi.Input<"storage.k8s.io/
|
|
81
|
+
apiVersion?: pulumi.Input<"storage.k8s.io/v1">;
|
|
82
82
|
/**
|
|
83
83
|
* Capacity is the value reported by the CSI driver in its GetCapacityResponse for a GetCapacityRequest with topology and parameters that match the previous fields.
|
|
84
84
|
*
|
|
85
|
-
* 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
|
|
85
|
+
* 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.
|
|
86
86
|
*/
|
|
87
87
|
capacity?: pulumi.Input<string>;
|
|
88
88
|
/**
|
|
@@ -14,7 +14,7 @@ const utilities = require("../../utilities");
|
|
|
14
14
|
*
|
|
15
15
|
* The producer of these objects can decide which approach is more suitable.
|
|
16
16
|
*
|
|
17
|
-
* They are consumed by the kube-scheduler
|
|
17
|
+
* They are consumed by the kube-scheduler when a CSI driver opts into capacity-aware scheduling with CSIDriverSpec.StorageCapacity. The scheduler compares the MaximumVolumeSize against the requested size of pending volumes to filter out unsuitable nodes. If MaximumVolumeSize is unset, it falls back to a comparison against the less precise Capacity. If that is also unset, the scheduler assumes that capacity is insufficient and tries some other node.
|
|
18
18
|
*/
|
|
19
19
|
class CSIStorageCapacity extends pulumi.CustomResource {
|
|
20
20
|
/**
|
|
@@ -31,7 +31,7 @@ class CSIStorageCapacity extends pulumi.CustomResource {
|
|
|
31
31
|
if ((!args || args.storageClassName === undefined) && !opts.urn) {
|
|
32
32
|
throw new Error("Missing required property 'storageClassName'");
|
|
33
33
|
}
|
|
34
|
-
resourceInputs["apiVersion"] = "storage.k8s.io/
|
|
34
|
+
resourceInputs["apiVersion"] = "storage.k8s.io/v1";
|
|
35
35
|
resourceInputs["capacity"] = args ? args.capacity : undefined;
|
|
36
36
|
resourceInputs["kind"] = "CSIStorageCapacity";
|
|
37
37
|
resourceInputs["maximumVolumeSize"] = args ? args.maximumVolumeSize : undefined;
|
|
@@ -49,7 +49,7 @@ class CSIStorageCapacity extends pulumi.CustomResource {
|
|
|
49
49
|
resourceInputs["storageClassName"] = undefined /*out*/;
|
|
50
50
|
}
|
|
51
51
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
52
|
-
const aliasOpts = { aliases: [{ type: "kubernetes:storage.k8s.io/v1beta1:CSIStorageCapacity" }] };
|
|
52
|
+
const aliasOpts = { aliases: [{ type: "kubernetes:storage.k8s.io/v1beta1:CSIStorageCapacity" }, { type: "kubernetes:storage.k8s.io/v1alpha1:CSIStorageCapacity" }] };
|
|
53
53
|
opts = pulumi.mergeOptions(opts, aliasOpts);
|
|
54
54
|
super(CSIStorageCapacity.__pulumiType, name, resourceInputs, opts);
|
|
55
55
|
}
|
|
@@ -77,5 +77,5 @@ class CSIStorageCapacity extends pulumi.CustomResource {
|
|
|
77
77
|
}
|
|
78
78
|
exports.CSIStorageCapacity = CSIStorageCapacity;
|
|
79
79
|
/** @internal */
|
|
80
|
-
CSIStorageCapacity.__pulumiType = 'kubernetes:storage.k8s.io/
|
|
80
|
+
CSIStorageCapacity.__pulumiType = 'kubernetes:storage.k8s.io/v1:CSIStorageCapacity';
|
|
81
81
|
//# sourceMappingURL=csistorageCapacity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"csistorageCapacity.js","sourceRoot":"","sources":["../../../storage/v1/csistorageCapacity.ts"],"names":[],"mappings":";AAAA,yDAAyD;AACzD,iFAAiF;;;AAEjF,yCAAyC;AAEzC,6CAA6C;AAE7C;;;;;;;;;;GAUG;AACH,MAAa,kBAAmB,SAAQ,MAAM,CAAC,cAAc;IAgEzD;;;;;;OAMG;IACH,YAAY,IAAY,EAAE,IAA6B,EAAE,IAAmC;QACxF,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE;YACV,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,gBAAgB,K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,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,SAAS,GAAG,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,sDAAsD,EAAE,EAAE,EAAE,IAAI,EAAE,uDAAuD,EAAE,CAAC,EAAE,CAAC;QACrK,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;QAC5C,KAAK,CAAC,kBAAkB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACvE,CAAC;IAjGD;;;;;;;OAOG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,IAAmC;QAC5F,OAAO,IAAI,kBAAkB,CAAC,IAAI,EAAE,SAAgB,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC/E,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,kBAAkB,CAAC,YAAY,CAAC;IACnE,CAAC;;AAzBL,gDAmGC;AAtFG,gBAAgB;AACO,+BAAY,GAAG,iDAAiD,CAAC"}
|
|
@@ -21,11 +21,11 @@ export declare class CSIStorageCapacityList extends pulumi.CustomResource {
|
|
|
21
21
|
/**
|
|
22
22
|
* APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
|
|
23
23
|
*/
|
|
24
|
-
readonly apiVersion: pulumi.Output<"storage.k8s.io/
|
|
24
|
+
readonly apiVersion: pulumi.Output<"storage.k8s.io/v1">;
|
|
25
25
|
/**
|
|
26
26
|
* Items is the list of CSIStorageCapacity objects.
|
|
27
27
|
*/
|
|
28
|
-
readonly items: pulumi.Output<outputs.storage.
|
|
28
|
+
readonly items: pulumi.Output<outputs.storage.v1.CSIStorageCapacity[]>;
|
|
29
29
|
/**
|
|
30
30
|
* Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
|
|
31
31
|
*/
|
|
@@ -50,11 +50,11 @@ export interface CSIStorageCapacityListArgs {
|
|
|
50
50
|
/**
|
|
51
51
|
* APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
|
|
52
52
|
*/
|
|
53
|
-
apiVersion?: pulumi.Input<"storage.k8s.io/
|
|
53
|
+
apiVersion?: pulumi.Input<"storage.k8s.io/v1">;
|
|
54
54
|
/**
|
|
55
55
|
* Items is the list of CSIStorageCapacity objects.
|
|
56
56
|
*/
|
|
57
|
-
items: pulumi.Input<pulumi.Input<inputs.storage.
|
|
57
|
+
items: pulumi.Input<pulumi.Input<inputs.storage.v1.CSIStorageCapacity>[]>;
|
|
58
58
|
/**
|
|
59
59
|
* Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
|
|
60
60
|
*/
|
|
@@ -23,7 +23,7 @@ class CSIStorageCapacityList extends pulumi.CustomResource {
|
|
|
23
23
|
if ((!args || args.items === undefined) && !opts.urn) {
|
|
24
24
|
throw new Error("Missing required property 'items'");
|
|
25
25
|
}
|
|
26
|
-
resourceInputs["apiVersion"] = "storage.k8s.io/
|
|
26
|
+
resourceInputs["apiVersion"] = "storage.k8s.io/v1";
|
|
27
27
|
resourceInputs["items"] = args ? args.items : undefined;
|
|
28
28
|
resourceInputs["kind"] = "CSIStorageCapacityList";
|
|
29
29
|
resourceInputs["metadata"] = args ? args.metadata : undefined;
|
|
@@ -61,5 +61,5 @@ class CSIStorageCapacityList extends pulumi.CustomResource {
|
|
|
61
61
|
}
|
|
62
62
|
exports.CSIStorageCapacityList = CSIStorageCapacityList;
|
|
63
63
|
/** @internal */
|
|
64
|
-
CSIStorageCapacityList.__pulumiType = 'kubernetes:storage.k8s.io/
|
|
64
|
+
CSIStorageCapacityList.__pulumiType = 'kubernetes:storage.k8s.io/v1:CSIStorageCapacityList';
|
|
65
65
|
//# sourceMappingURL=csistorageCapacityList.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"csistorageCapacityList.js","sourceRoot":"","sources":["../../../storage/v1/csistorageCapacityList.ts"],"names":[],"mappings":";AAAA,yDAAyD;AACzD,iFAAiF;;;AAEjF,yCAAyC;AAEzC,6CAA6C;AAE7C;;GAEG;AACH,MAAa,sBAAuB,SAAQ,MAAM,CAAC,cAAc;IA4C7D;;;;;;OAMG;IACH,YAAY,IAAY,EAAE,IAAiC,EAAE,IAAmC;QAC5F,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE;YACV,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,KAAK,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAClD,MAAM,IAAI,KAAK,CAAC,mCAAmC,CAAC,CAAC;aACxD;YACD,cAAc,CAAC,YAAY,CAAC,GAAG,mBAAmB,CAAC;YACnD,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,MAAM,CAAC,GAAG,wBAAwB,CAAC;YAClD,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;SACjE;aAAM;YACH,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACjD,cAAc,CAAC,OAAO,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC5C,cAAc,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC3C,cAAc,CAAC,UAAU,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAClD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,sBAAsB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC3E,CAAC;IArED;;;;;;;OAOG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,IAAmC;QAC5F,OAAO,IAAI,sBAAsB,CAAC,IAAI,EAAE,SAAgB,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACnF,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,sBAAsB,CAAC,YAAY,CAAC;IACvE,CAAC;;AAzBL,wDAuEC;AA1DG,gBAAgB;AACO,mCAAY,GAAG,qDAAqD,CAAC"}
|
package/storage/v1/index.d.ts
CHANGED
|
@@ -2,6 +2,8 @@ export * from "./csidriver";
|
|
|
2
2
|
export * from "./csidriverList";
|
|
3
3
|
export * from "./csinode";
|
|
4
4
|
export * from "./csinodeList";
|
|
5
|
+
export * from "./csistorageCapacity";
|
|
6
|
+
export * from "./csistorageCapacityList";
|
|
5
7
|
export * from "./storageClass";
|
|
6
8
|
export * from "./storageClassList";
|
|
7
9
|
export * from "./volumeAttachment";
|
package/storage/v1/index.js
CHANGED
|
@@ -23,6 +23,8 @@ __exportStar(require("./csidriver"), exports);
|
|
|
23
23
|
__exportStar(require("./csidriverList"), exports);
|
|
24
24
|
__exportStar(require("./csinode"), exports);
|
|
25
25
|
__exportStar(require("./csinodeList"), exports);
|
|
26
|
+
__exportStar(require("./csistorageCapacity"), exports);
|
|
27
|
+
__exportStar(require("./csistorageCapacityList"), exports);
|
|
26
28
|
__exportStar(require("./storageClass"), exports);
|
|
27
29
|
__exportStar(require("./storageClassList"), exports);
|
|
28
30
|
__exportStar(require("./volumeAttachment"), exports);
|
|
@@ -32,6 +34,8 @@ const csidriver_1 = require("./csidriver");
|
|
|
32
34
|
const csidriverList_1 = require("./csidriverList");
|
|
33
35
|
const csinode_1 = require("./csinode");
|
|
34
36
|
const csinodeList_1 = require("./csinodeList");
|
|
37
|
+
const csistorageCapacity_1 = require("./csistorageCapacity");
|
|
38
|
+
const csistorageCapacityList_1 = require("./csistorageCapacityList");
|
|
35
39
|
const storageClass_1 = require("./storageClass");
|
|
36
40
|
const storageClassList_1 = require("./storageClassList");
|
|
37
41
|
const volumeAttachment_1 = require("./volumeAttachment");
|
|
@@ -48,6 +52,10 @@ const _module = {
|
|
|
48
52
|
return new csinode_1.CSINode(name, undefined, { urn });
|
|
49
53
|
case "kubernetes:storage.k8s.io/v1:CSINodeList":
|
|
50
54
|
return new csinodeList_1.CSINodeList(name, undefined, { urn });
|
|
55
|
+
case "kubernetes:storage.k8s.io/v1:CSIStorageCapacity":
|
|
56
|
+
return new csistorageCapacity_1.CSIStorageCapacity(name, undefined, { urn });
|
|
57
|
+
case "kubernetes:storage.k8s.io/v1:CSIStorageCapacityList":
|
|
58
|
+
return new csistorageCapacityList_1.CSIStorageCapacityList(name, undefined, { urn });
|
|
51
59
|
case "kubernetes:storage.k8s.io/v1:StorageClass":
|
|
52
60
|
return new storageClass_1.StorageClass(name, undefined, { urn });
|
|
53
61
|
case "kubernetes:storage.k8s.io/v1:StorageClassList":
|
package/storage/v1/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../storage/v1/index.ts"],"names":[],"mappings":";AAAA,yDAAyD;AACzD,iFAAiF;;;;;;;;;;;;;;;;AAEjF,yCAAyC;AACzC,6CAA6C;AAE7C,kBAAkB;AAClB,8CAA4B;AAC5B,kDAAgC;AAChC,4CAA0B;AAC1B,gDAA8B;AAC9B,iDAA+B;AAC/B,qDAAmC;AACnC,qDAAmC;AACnC,yDAAuC;AAEvC,gCAAgC;AAChC,2CAAwC;AACxC,mDAAgD;AAChD,uCAAoC;AACpC,+CAA4C;AAC5C,iDAA8C;AAC9C,yDAAsD;AACtD,yDAAsD;AACtD,iEAA8D;AAE9D,MAAM,OAAO,GAAG;IACZ,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE;IAC/B,SAAS,EAAE,CAAC,IAAY,EAAE,IAAY,EAAE,GAAW,EAAmB,EAAE;QACpE,QAAQ,IAAI,EAAE;YACV,KAAK,wCAAwC;gBACzC,OAAO,IAAI,qBAAS,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YACvD,KAAK,4CAA4C;gBAC7C,OAAO,IAAI,6BAAa,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YAC3D,KAAK,sCAAsC;gBACvC,OAAO,IAAI,iBAAO,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YACrD,KAAK,0CAA0C;gBAC3C,OAAO,IAAI,yBAAW,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YACzD,KAAK,2CAA2C;gBAC5C,OAAO,IAAI,2BAAY,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YAC1D,KAAK,+CAA+C;gBAChD,OAAO,IAAI,mCAA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ulumi/pulumi");
|
|
20
20
|
const utilities = require("../../utilities");
|
|
21
21
|
// Export members:
|
|
22
|
-
__exportStar(require("./csistorageCapacity"), exports);
|
|
23
|
-
__exportStar(require("./csistorageCapacityList"), exports);
|
|
24
22
|
__exportStar(require("./volumeAttachment"), exports);
|
|
25
23
|
__exportStar(require("./volumeAttachmentList"), exports);
|
|
26
24
|
// Import resources to register:
|
|
27
|
-
const csistorageCapacity_1 = require("./csistorageCapacity");
|
|
28
|
-
const csistorageCapacityList_1 = require("./csistorageCapacityList");
|
|
29
25
|
const volumeAttachment_1 = require("./volumeAttachment");
|
|
30
26
|
const volumeAttachmentList_1 = require("./volumeAttachmentList");
|
|
31
27
|
const _module = {
|
|
32
28
|
version: utilities.getVersion(),
|
|
33
29
|
construct: (name, type, urn) => {
|
|
34
30
|
switch (type) {
|
|
35
|
-
case "kubernetes:storage.k8s.io/v1alpha1:CSIStorageCapacity":
|
|
36
|
-
return new csistorageCapacity_1.CSIStorageCapacity(name, undefined, { urn });
|
|
37
|
-
case "kubernetes:storage.k8s.io/v1alpha1:CSIStorageCapacityList":
|
|
38
|
-
return new csistorageCapacityList_1.CSIStorageCapacityList(name, undefined, { urn });
|
|
39
31
|
case "kubernetes:storage.k8s.io/v1alpha1:VolumeAttachment":
|
|
40
32
|
return new volumeAttachment_1.VolumeAttachment(name, undefined, { urn });
|
|
41
33
|
case "kubernetes:storage.k8s.io/v1alpha1:VolumeAttachmentList":
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../storage/v1alpha1/index.ts"],"names":[],"mappings":";AAAA,yDAAyD;AACzD,iFAAiF;;;;;;;;;;;;;;;;AAEjF,yCAAyC;AACzC,6CAA6C;AAE7C,kBAAkB;AAClB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../storage/v1alpha1/index.ts"],"names":[],"mappings":";AAAA,yDAAyD;AACzD,iFAAiF;;;;;;;;;;;;;;;;AAEjF,yCAAyC;AACzC,6CAA6C;AAE7C,kBAAkB;AAClB,qDAAmC;AACnC,yDAAuC;AAEvC,gCAAgC;AAChC,yDAAsD;AACtD,iEAA8D;AAE9D,MAAM,OAAO,GAAG;IACZ,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE;IAC/B,SAAS,EAAE,CAAC,IAAY,EAAE,IAAY,EAAE,GAAW,EAAmB,EAAE;QACpE,QAAQ,IAAI,EAAE;YACV,KAAK,qDAAqD;gBACtD,OAAO,IAAI,mCAAgB,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YAC9D,KAAK,yDAAyD;gBAC1D,OAAO,IAAI,2CAAoB,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YAClE;gBACI,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;SACxD;IACL,CAAC;CACJ,CAAC;AACF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,YAAY,EAAE,yBAAyB,EAAE,OAAO,CAAC,CAAA"}
|
|
@@ -9,7 +9,7 @@ import { input as inputs, output as outputs } from "../../types";
|
|
|
9
9
|
*
|
|
10
10
|
* The producer of these objects can decide which approach is more suitable.
|
|
11
11
|
*
|
|
12
|
-
* They are consumed by the kube-scheduler
|
|
12
|
+
* They are consumed by the kube-scheduler when a CSI driver opts into capacity-aware scheduling with CSIDriverSpec.StorageCapacity. The scheduler compares the MaximumVolumeSize against the requested size of pending volumes to filter out unsuitable nodes. If MaximumVolumeSize is unset, it falls back to a comparison against the less precise Capacity. If that is also unset, the scheduler assumes that capacity is insufficient and tries some other node.
|
|
13
13
|
*/
|
|
14
14
|
export declare class CSIStorageCapacity extends pulumi.CustomResource {
|
|
15
15
|
/**
|
|
@@ -33,7 +33,7 @@ export declare class CSIStorageCapacity extends pulumi.CustomResource {
|
|
|
33
33
|
/**
|
|
34
34
|
* Capacity is the value reported by the CSI driver in its GetCapacityResponse for a GetCapacityRequest with topology and parameters that match the previous fields.
|
|
35
35
|
*
|
|
36
|
-
* 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
|
|
36
|
+
* 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.
|
|
37
37
|
*/
|
|
38
38
|
readonly capacity: pulumi.Output<string>;
|
|
39
39
|
/**
|
|
@@ -82,7 +82,7 @@ export interface CSIStorageCapacityArgs {
|
|
|
82
82
|
/**
|
|
83
83
|
* Capacity is the value reported by the CSI driver in its GetCapacityResponse for a GetCapacityRequest with topology and parameters that match the previous fields.
|
|
84
84
|
*
|
|
85
|
-
* 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
|
|
85
|
+
* 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.
|
|
86
86
|
*/
|
|
87
87
|
capacity?: pulumi.Input<string>;
|
|
88
88
|
/**
|
|
@@ -14,7 +14,7 @@ const utilities = require("../../utilities");
|
|
|
14
14
|
*
|
|
15
15
|
* The producer of these objects can decide which approach is more suitable.
|
|
16
16
|
*
|
|
17
|
-
* They are consumed by the kube-scheduler
|
|
17
|
+
* They are consumed by the kube-scheduler when a CSI driver opts into capacity-aware scheduling with CSIDriverSpec.StorageCapacity. The scheduler compares the MaximumVolumeSize against the requested size of pending volumes to filter out unsuitable nodes. If MaximumVolumeSize is unset, it falls back to a comparison against the less precise Capacity. If that is also unset, the scheduler assumes that capacity is insufficient and tries some other node.
|
|
18
18
|
*/
|
|
19
19
|
class CSIStorageCapacity extends pulumi.CustomResource {
|
|
20
20
|
/**
|
|
@@ -49,7 +49,7 @@ class CSIStorageCapacity extends pulumi.CustomResource {
|
|
|
49
49
|
resourceInputs["storageClassName"] = undefined /*out*/;
|
|
50
50
|
}
|
|
51
51
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
52
|
-
const aliasOpts = { aliases: [{ type: "kubernetes:storage.k8s.io/v1alpha1:CSIStorageCapacity" }] };
|
|
52
|
+
const aliasOpts = { aliases: [{ type: "kubernetes:storage.k8s.io/v1:CSIStorageCapacity" }, { type: "kubernetes:storage.k8s.io/v1alpha1:CSIStorageCapacity" }] };
|
|
53
53
|
opts = pulumi.mergeOptions(opts, aliasOpts);
|
|
54
54
|
super(CSIStorageCapacity.__pulumiType, name, resourceInputs, opts);
|
|
55
55
|
}
|