@upcloud/pulumi-upcloud 0.1.0 → 0.2.0
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/getKubernetesCluster.d.ts +80 -0
- package/getKubernetesCluster.js +80 -0
- package/getKubernetesCluster.js.map +1 -1
- package/kubernetesCluster.d.ts +5 -4
- package/kubernetesCluster.js +2 -1
- package/kubernetesCluster.js.map +1 -1
- package/kubernetesNodeGroup.d.ts +12 -9
- package/kubernetesNodeGroup.js.map +1 -1
- package/package.json +2 -2
- package/server.d.ts +15 -0
- package/server.js +2 -0
- package/server.js.map +1 -1
- package/types/input.d.ts +66 -0
- package/types/output.d.ts +66 -0
|
@@ -1,6 +1,46 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
/**
|
|
3
3
|
* ## Example Usage
|
|
4
|
+
*
|
|
5
|
+
* ```typescript
|
|
6
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
7
|
+
* import * as kubernetes from "@pulumi/kubernetes";
|
|
8
|
+
* import * as local from "@pulumi/local";
|
|
9
|
+
* import * as upcloud from "@pulumi/upcloud";
|
|
10
|
+
* import * as upcloud from "@upcloud/pulumi-upcloud";
|
|
11
|
+
*
|
|
12
|
+
* // Use Kubernetes provider to access your Kubernetes cluster
|
|
13
|
+
* // Create a network for the Kubernetes cluster
|
|
14
|
+
* const exampleNetwork = new upcloud.Network("example", {
|
|
15
|
+
* name: "example-network",
|
|
16
|
+
* zone: "de-fra1",
|
|
17
|
+
* ipNetwork: {
|
|
18
|
+
* address: "172.16.1.0/24",
|
|
19
|
+
* dhcp: true,
|
|
20
|
+
* family: "IPv4",
|
|
21
|
+
* },
|
|
22
|
+
* });
|
|
23
|
+
* // Create a Kubernetes cluster
|
|
24
|
+
* const exampleKubernetesCluster = new upcloud.KubernetesCluster("example", {
|
|
25
|
+
* controlPlaneIpFilters: ["0.0.0.0/0"],
|
|
26
|
+
* name: "exampleapp",
|
|
27
|
+
* network: exampleNetwork.id,
|
|
28
|
+
* zone: "de-fra1",
|
|
29
|
+
* });
|
|
30
|
+
* // Read the details of the newly created cluster
|
|
31
|
+
* const example = upcloud.getKubernetesClusterOutput({
|
|
32
|
+
* id: exampleKubernetesCluster.id,
|
|
33
|
+
* });
|
|
34
|
+
* // Use the Kubernetes provider resources to interact with the cluster
|
|
35
|
+
* const exampleNamespace = new kubernetes.index.Namespace("example", {metadata: [{
|
|
36
|
+
* name: "example-namespace",
|
|
37
|
+
* }]});
|
|
38
|
+
* // In addition, write the kubeconfig to a file to interact with the cluster with `kubectl` or other clients
|
|
39
|
+
* const exampleFile = new local.index.File("example", {
|
|
40
|
+
* content: example.kubeconfig,
|
|
41
|
+
* filename: "example.conf",
|
|
42
|
+
* });
|
|
43
|
+
* ```
|
|
4
44
|
*/
|
|
5
45
|
export declare function getKubernetesCluster(args: GetKubernetesClusterArgs, opts?: pulumi.InvokeOptions): Promise<GetKubernetesClusterResult>;
|
|
6
46
|
/**
|
|
@@ -23,6 +63,46 @@ export interface GetKubernetesClusterResult {
|
|
|
23
63
|
}
|
|
24
64
|
/**
|
|
25
65
|
* ## Example Usage
|
|
66
|
+
*
|
|
67
|
+
* ```typescript
|
|
68
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
69
|
+
* import * as kubernetes from "@pulumi/kubernetes";
|
|
70
|
+
* import * as local from "@pulumi/local";
|
|
71
|
+
* import * as upcloud from "@pulumi/upcloud";
|
|
72
|
+
* import * as upcloud from "@upcloud/pulumi-upcloud";
|
|
73
|
+
*
|
|
74
|
+
* // Use Kubernetes provider to access your Kubernetes cluster
|
|
75
|
+
* // Create a network for the Kubernetes cluster
|
|
76
|
+
* const exampleNetwork = new upcloud.Network("example", {
|
|
77
|
+
* name: "example-network",
|
|
78
|
+
* zone: "de-fra1",
|
|
79
|
+
* ipNetwork: {
|
|
80
|
+
* address: "172.16.1.0/24",
|
|
81
|
+
* dhcp: true,
|
|
82
|
+
* family: "IPv4",
|
|
83
|
+
* },
|
|
84
|
+
* });
|
|
85
|
+
* // Create a Kubernetes cluster
|
|
86
|
+
* const exampleKubernetesCluster = new upcloud.KubernetesCluster("example", {
|
|
87
|
+
* controlPlaneIpFilters: ["0.0.0.0/0"],
|
|
88
|
+
* name: "exampleapp",
|
|
89
|
+
* network: exampleNetwork.id,
|
|
90
|
+
* zone: "de-fra1",
|
|
91
|
+
* });
|
|
92
|
+
* // Read the details of the newly created cluster
|
|
93
|
+
* const example = upcloud.getKubernetesClusterOutput({
|
|
94
|
+
* id: exampleKubernetesCluster.id,
|
|
95
|
+
* });
|
|
96
|
+
* // Use the Kubernetes provider resources to interact with the cluster
|
|
97
|
+
* const exampleNamespace = new kubernetes.index.Namespace("example", {metadata: [{
|
|
98
|
+
* name: "example-namespace",
|
|
99
|
+
* }]});
|
|
100
|
+
* // In addition, write the kubeconfig to a file to interact with the cluster with `kubectl` or other clients
|
|
101
|
+
* const exampleFile = new local.index.File("example", {
|
|
102
|
+
* content: example.kubeconfig,
|
|
103
|
+
* filename: "example.conf",
|
|
104
|
+
* });
|
|
105
|
+
* ```
|
|
26
106
|
*/
|
|
27
107
|
export declare function getKubernetesClusterOutput(args: GetKubernetesClusterOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetKubernetesClusterResult>;
|
|
28
108
|
/**
|
package/getKubernetesCluster.js
CHANGED
|
@@ -7,6 +7,46 @@ const pulumi = require("@pulumi/pulumi");
|
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
9
|
* ## Example Usage
|
|
10
|
+
*
|
|
11
|
+
* ```typescript
|
|
12
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
13
|
+
* import * as kubernetes from "@pulumi/kubernetes";
|
|
14
|
+
* import * as local from "@pulumi/local";
|
|
15
|
+
* import * as upcloud from "@pulumi/upcloud";
|
|
16
|
+
* import * as upcloud from "@upcloud/pulumi-upcloud";
|
|
17
|
+
*
|
|
18
|
+
* // Use Kubernetes provider to access your Kubernetes cluster
|
|
19
|
+
* // Create a network for the Kubernetes cluster
|
|
20
|
+
* const exampleNetwork = new upcloud.Network("example", {
|
|
21
|
+
* name: "example-network",
|
|
22
|
+
* zone: "de-fra1",
|
|
23
|
+
* ipNetwork: {
|
|
24
|
+
* address: "172.16.1.0/24",
|
|
25
|
+
* dhcp: true,
|
|
26
|
+
* family: "IPv4",
|
|
27
|
+
* },
|
|
28
|
+
* });
|
|
29
|
+
* // Create a Kubernetes cluster
|
|
30
|
+
* const exampleKubernetesCluster = new upcloud.KubernetesCluster("example", {
|
|
31
|
+
* controlPlaneIpFilters: ["0.0.0.0/0"],
|
|
32
|
+
* name: "exampleapp",
|
|
33
|
+
* network: exampleNetwork.id,
|
|
34
|
+
* zone: "de-fra1",
|
|
35
|
+
* });
|
|
36
|
+
* // Read the details of the newly created cluster
|
|
37
|
+
* const example = upcloud.getKubernetesClusterOutput({
|
|
38
|
+
* id: exampleKubernetesCluster.id,
|
|
39
|
+
* });
|
|
40
|
+
* // Use the Kubernetes provider resources to interact with the cluster
|
|
41
|
+
* const exampleNamespace = new kubernetes.index.Namespace("example", {metadata: [{
|
|
42
|
+
* name: "example-namespace",
|
|
43
|
+
* }]});
|
|
44
|
+
* // In addition, write the kubeconfig to a file to interact with the cluster with `kubectl` or other clients
|
|
45
|
+
* const exampleFile = new local.index.File("example", {
|
|
46
|
+
* content: example.kubeconfig,
|
|
47
|
+
* filename: "example.conf",
|
|
48
|
+
* });
|
|
49
|
+
* ```
|
|
10
50
|
*/
|
|
11
51
|
function getKubernetesCluster(args, opts) {
|
|
12
52
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
@@ -17,6 +57,46 @@ function getKubernetesCluster(args, opts) {
|
|
|
17
57
|
exports.getKubernetesCluster = getKubernetesCluster;
|
|
18
58
|
/**
|
|
19
59
|
* ## Example Usage
|
|
60
|
+
*
|
|
61
|
+
* ```typescript
|
|
62
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
63
|
+
* import * as kubernetes from "@pulumi/kubernetes";
|
|
64
|
+
* import * as local from "@pulumi/local";
|
|
65
|
+
* import * as upcloud from "@pulumi/upcloud";
|
|
66
|
+
* import * as upcloud from "@upcloud/pulumi-upcloud";
|
|
67
|
+
*
|
|
68
|
+
* // Use Kubernetes provider to access your Kubernetes cluster
|
|
69
|
+
* // Create a network for the Kubernetes cluster
|
|
70
|
+
* const exampleNetwork = new upcloud.Network("example", {
|
|
71
|
+
* name: "example-network",
|
|
72
|
+
* zone: "de-fra1",
|
|
73
|
+
* ipNetwork: {
|
|
74
|
+
* address: "172.16.1.0/24",
|
|
75
|
+
* dhcp: true,
|
|
76
|
+
* family: "IPv4",
|
|
77
|
+
* },
|
|
78
|
+
* });
|
|
79
|
+
* // Create a Kubernetes cluster
|
|
80
|
+
* const exampleKubernetesCluster = new upcloud.KubernetesCluster("example", {
|
|
81
|
+
* controlPlaneIpFilters: ["0.0.0.0/0"],
|
|
82
|
+
* name: "exampleapp",
|
|
83
|
+
* network: exampleNetwork.id,
|
|
84
|
+
* zone: "de-fra1",
|
|
85
|
+
* });
|
|
86
|
+
* // Read the details of the newly created cluster
|
|
87
|
+
* const example = upcloud.getKubernetesClusterOutput({
|
|
88
|
+
* id: exampleKubernetesCluster.id,
|
|
89
|
+
* });
|
|
90
|
+
* // Use the Kubernetes provider resources to interact with the cluster
|
|
91
|
+
* const exampleNamespace = new kubernetes.index.Namespace("example", {metadata: [{
|
|
92
|
+
* name: "example-namespace",
|
|
93
|
+
* }]});
|
|
94
|
+
* // In addition, write the kubeconfig to a file to interact with the cluster with `kubectl` or other clients
|
|
95
|
+
* const exampleFile = new local.index.File("example", {
|
|
96
|
+
* content: example.kubeconfig,
|
|
97
|
+
* filename: "example.conf",
|
|
98
|
+
* });
|
|
99
|
+
* ```
|
|
20
100
|
*/
|
|
21
101
|
function getKubernetesClusterOutput(args, opts) {
|
|
22
102
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getKubernetesCluster.js","sourceRoot":"","sources":["../getKubernetesCluster.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"getKubernetesCluster.js","sourceRoot":"","sources":["../getKubernetesCluster.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,SAAgB,oBAAoB,CAAC,IAA8B,EAAE,IAA2B;IAC5F,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,yDAAyD,EAAE;QACpF,IAAI,EAAE,IAAI,CAAC,EAAE;KAChB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,oDAKC;AAqBD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,SAAgB,0BAA0B,CAAC,IAAoC,EAAE,IAAiC;IAC9G,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,yDAAyD,EAAE;QAC1F,IAAI,EAAE,IAAI,CAAC,EAAE;KAChB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,gEAKC"}
|
package/kubernetesCluster.d.ts
CHANGED
|
@@ -47,10 +47,11 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
47
47
|
* router: example2.id,
|
|
48
48
|
* });
|
|
49
49
|
* const example2KubernetesCluster = new upcloud.KubernetesCluster("example2", {
|
|
50
|
+
* controlPlaneIpFilters: ["0.0.0.0/0"],
|
|
50
51
|
* name: "example2-cluster",
|
|
51
52
|
* network: example2Network.id,
|
|
52
53
|
* zone: "de-fra1",
|
|
53
|
-
* plan: "
|
|
54
|
+
* plan: "prod-md",
|
|
54
55
|
* privateNodeGroups: true,
|
|
55
56
|
* });
|
|
56
57
|
* ```
|
|
@@ -116,7 +117,7 @@ export declare class KubernetesCluster extends pulumi.CustomResource {
|
|
|
116
117
|
*/
|
|
117
118
|
readonly storageEncryption: pulumi.Output<string | undefined>;
|
|
118
119
|
/**
|
|
119
|
-
* Kubernetes version ID, e.g. `1.
|
|
120
|
+
* Kubernetes version ID, e.g. `1.31`. You can list available version IDs with `upctl kubernetes versions`.
|
|
120
121
|
*/
|
|
121
122
|
readonly version: pulumi.Output<string>;
|
|
122
123
|
/**
|
|
@@ -182,7 +183,7 @@ export interface KubernetesClusterState {
|
|
|
182
183
|
*/
|
|
183
184
|
storageEncryption?: pulumi.Input<string>;
|
|
184
185
|
/**
|
|
185
|
-
* Kubernetes version ID, e.g. `1.
|
|
186
|
+
* Kubernetes version ID, e.g. `1.31`. You can list available version IDs with `upctl kubernetes versions`.
|
|
186
187
|
*/
|
|
187
188
|
version?: pulumi.Input<string>;
|
|
188
189
|
/**
|
|
@@ -228,7 +229,7 @@ export interface KubernetesClusterArgs {
|
|
|
228
229
|
*/
|
|
229
230
|
storageEncryption?: pulumi.Input<string>;
|
|
230
231
|
/**
|
|
231
|
-
* Kubernetes version ID, e.g. `1.
|
|
232
|
+
* Kubernetes version ID, e.g. `1.31`. You can list available version IDs with `upctl kubernetes versions`.
|
|
232
233
|
*/
|
|
233
234
|
version?: pulumi.Input<string>;
|
|
234
235
|
/**
|
package/kubernetesCluster.js
CHANGED
|
@@ -53,10 +53,11 @@ const utilities = require("./utilities");
|
|
|
53
53
|
* router: example2.id,
|
|
54
54
|
* });
|
|
55
55
|
* const example2KubernetesCluster = new upcloud.KubernetesCluster("example2", {
|
|
56
|
+
* controlPlaneIpFilters: ["0.0.0.0/0"],
|
|
56
57
|
* name: "example2-cluster",
|
|
57
58
|
* network: example2Network.id,
|
|
58
59
|
* zone: "de-fra1",
|
|
59
|
-
* plan: "
|
|
60
|
+
* plan: "prod-md",
|
|
60
61
|
* privateNodeGroups: true,
|
|
61
62
|
* });
|
|
62
63
|
* ```
|
package/kubernetesCluster.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kubernetesCluster.js","sourceRoot":"","sources":["../kubernetesCluster.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"kubernetesCluster.js","sourceRoot":"","sources":["../kubernetesCluster.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwDG;AACH,MAAa,iBAAkB,SAAQ,MAAM,CAAC,cAAc;IACxD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA8B,EAAE,IAAmC;QAC5H,OAAO,IAAI,iBAAiB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACxE,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,iBAAiB,CAAC,YAAY,CAAC;IAClE,CAAC;IA8DD,YAAY,IAAY,EAAE,WAA4D,EAAE,IAAmC;QACvH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI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AAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,mBAAmB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC,CAAC,SAAS,CAAC;YAChF,cAAc,CAAC,mBAAmB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC,CAAC,SAAS,CAAC;YAChF,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,aAAa,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAClD,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACjD,cAAc,CAAC,OAAO,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC/C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,iBAAiB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACtE,CAAC;;AAnIL,8CAoIC;AAtHG,gBAAgB;AACO,8BAAY,GAAG,mDAAmD,CAAC"}
|
package/kubernetesNodeGroup.d.ts
CHANGED
|
@@ -74,9 +74,10 @@ export declare class KubernetesNodeGroup extends pulumi.CustomResource {
|
|
|
74
74
|
*/
|
|
75
75
|
readonly customPlan: pulumi.Output<outputs.KubernetesNodeGroupCustomPlan | undefined>;
|
|
76
76
|
/**
|
|
77
|
-
* Additional arguments for kubelet for the nodes in this group.
|
|
78
|
-
*
|
|
79
|
-
*
|
|
77
|
+
* Additional arguments for kubelet for the nodes in this group. Configure the arguments without leading `--`. The API will
|
|
78
|
+
* prefix the arguments with `--` when preparing kubelet call. Note that these arguments will be passed directly to kubelet
|
|
79
|
+
* CLI on each worker node without any validation. Passing invalid arguments can break your whole cluster. Be extra careful
|
|
80
|
+
* when adding kubelet args.
|
|
80
81
|
*/
|
|
81
82
|
readonly kubeletArgs: pulumi.Output<outputs.KubernetesNodeGroupKubeletArg[] | undefined>;
|
|
82
83
|
/**
|
|
@@ -142,9 +143,10 @@ export interface KubernetesNodeGroupState {
|
|
|
142
143
|
*/
|
|
143
144
|
customPlan?: pulumi.Input<inputs.KubernetesNodeGroupCustomPlan>;
|
|
144
145
|
/**
|
|
145
|
-
* Additional arguments for kubelet for the nodes in this group.
|
|
146
|
-
*
|
|
147
|
-
*
|
|
146
|
+
* Additional arguments for kubelet for the nodes in this group. Configure the arguments without leading `--`. The API will
|
|
147
|
+
* prefix the arguments with `--` when preparing kubelet call. Note that these arguments will be passed directly to kubelet
|
|
148
|
+
* CLI on each worker node without any validation. Passing invalid arguments can break your whole cluster. Be extra careful
|
|
149
|
+
* when adding kubelet args.
|
|
148
150
|
*/
|
|
149
151
|
kubeletArgs?: pulumi.Input<pulumi.Input<inputs.KubernetesNodeGroupKubeletArg>[]>;
|
|
150
152
|
/**
|
|
@@ -202,9 +204,10 @@ export interface KubernetesNodeGroupArgs {
|
|
|
202
204
|
*/
|
|
203
205
|
customPlan?: pulumi.Input<inputs.KubernetesNodeGroupCustomPlan>;
|
|
204
206
|
/**
|
|
205
|
-
* Additional arguments for kubelet for the nodes in this group.
|
|
206
|
-
*
|
|
207
|
-
*
|
|
207
|
+
* Additional arguments for kubelet for the nodes in this group. Configure the arguments without leading `--`. The API will
|
|
208
|
+
* prefix the arguments with `--` when preparing kubelet call. Note that these arguments will be passed directly to kubelet
|
|
209
|
+
* CLI on each worker node without any validation. Passing invalid arguments can break your whole cluster. Be extra careful
|
|
210
|
+
* when adding kubelet args.
|
|
208
211
|
*/
|
|
209
212
|
kubeletArgs?: pulumi.Input<pulumi.Input<inputs.KubernetesNodeGroupKubeletArg>[]>;
|
|
210
213
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kubernetesNodeGroup.js","sourceRoot":"","sources":["../kubernetesNodeGroup.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,MAAa,mBAAoB,SAAQ,MAAM,CAAC,cAAc;IAC1D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAgC,EAAE,IAAmC;QAC9H,OAAO,IAAI,mBAAmB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,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,mBAAmB,CAAC,YAAY,CAAC;IACpE,CAAC;
|
|
1
|
+
{"version":3,"file":"kubernetesNodeGroup.js","sourceRoot":"","sources":["../kubernetesNodeGroup.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,MAAa,mBAAoB,SAAQ,MAAM,CAAC,cAAc;IAC1D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAgC,EAAE,IAAmC;QAC9H,OAAO,IAAI,mBAAmB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;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CAAC,CAAC;QACnE,KAAK,CAAC,mBAAmB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACxE,CAAC;;AAtIL,kDAuIC;AAzHG,gBAAgB;AACO,gCAAY,GAAG,uDAAuD,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@upcloud/pulumi-upcloud",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "A Pulumi package for creating and managing UpCloud resources.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"pulumi": {
|
|
25
25
|
"resource": true,
|
|
26
26
|
"name": "upcloud",
|
|
27
|
-
"version": "0.
|
|
27
|
+
"version": "0.2.0",
|
|
28
28
|
"server": "github://api.github.com/UpCloudLtd/pulumi-upcloud"
|
|
29
29
|
}
|
|
30
30
|
}
|
package/server.d.ts
CHANGED
|
@@ -47,6 +47,11 @@ export declare class Server extends pulumi.CustomResource {
|
|
|
47
47
|
* The hostname of the server.
|
|
48
48
|
*/
|
|
49
49
|
readonly hostname: pulumi.Output<string>;
|
|
50
|
+
/**
|
|
51
|
+
* If set to true, allows changing the server plan without requiring a reboot. This enables hot resizing of the server. If
|
|
52
|
+
* hot resizing fails, the apply operation will fail.
|
|
53
|
+
*/
|
|
54
|
+
readonly hotResize: pulumi.Output<boolean>;
|
|
50
55
|
/**
|
|
51
56
|
* User defined key-value pairs to classify the server.
|
|
52
57
|
*/
|
|
@@ -155,6 +160,11 @@ export interface ServerState {
|
|
|
155
160
|
* The hostname of the server.
|
|
156
161
|
*/
|
|
157
162
|
hostname?: pulumi.Input<string>;
|
|
163
|
+
/**
|
|
164
|
+
* If set to true, allows changing the server plan without requiring a reboot. This enables hot resizing of the server. If
|
|
165
|
+
* hot resizing fails, the apply operation will fail.
|
|
166
|
+
*/
|
|
167
|
+
hotResize?: pulumi.Input<boolean>;
|
|
158
168
|
/**
|
|
159
169
|
* User defined key-value pairs to classify the server.
|
|
160
170
|
*/
|
|
@@ -255,6 +265,11 @@ export interface ServerArgs {
|
|
|
255
265
|
* The hostname of the server.
|
|
256
266
|
*/
|
|
257
267
|
hostname: pulumi.Input<string>;
|
|
268
|
+
/**
|
|
269
|
+
* If set to true, allows changing the server plan without requiring a reboot. This enables hot resizing of the server. If
|
|
270
|
+
* hot resizing fails, the apply operation will fail.
|
|
271
|
+
*/
|
|
272
|
+
hotResize?: pulumi.Input<boolean>;
|
|
258
273
|
/**
|
|
259
274
|
* User defined key-value pairs to classify the server.
|
|
260
275
|
*/
|
package/server.js
CHANGED
|
@@ -47,6 +47,7 @@ class Server extends pulumi.CustomResource {
|
|
|
47
47
|
resourceInputs["firewall"] = state ? state.firewall : undefined;
|
|
48
48
|
resourceInputs["host"] = state ? state.host : undefined;
|
|
49
49
|
resourceInputs["hostname"] = state ? state.hostname : undefined;
|
|
50
|
+
resourceInputs["hotResize"] = state ? state.hotResize : undefined;
|
|
50
51
|
resourceInputs["labels"] = state ? state.labels : undefined;
|
|
51
52
|
resourceInputs["login"] = state ? state.login : undefined;
|
|
52
53
|
resourceInputs["mem"] = state ? state.mem : undefined;
|
|
@@ -78,6 +79,7 @@ class Server extends pulumi.CustomResource {
|
|
|
78
79
|
resourceInputs["firewall"] = args ? args.firewall : undefined;
|
|
79
80
|
resourceInputs["host"] = args ? args.host : undefined;
|
|
80
81
|
resourceInputs["hostname"] = args ? args.hostname : undefined;
|
|
82
|
+
resourceInputs["hotResize"] = args ? args.hotResize : undefined;
|
|
81
83
|
resourceInputs["labels"] = args ? args.labels : undefined;
|
|
82
84
|
resourceInputs["login"] = args ? args.login : undefined;
|
|
83
85
|
resourceInputs["mem"] = args ? args.mem : undefined;
|
package/server.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.js","sourceRoot":"","sources":["../server.ts"],"names":[],"mappings":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,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;SACzD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,MAAM,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC3D,CAAC;;AArML,wBAsMC;AAxLG,gBAAgB;AACO,mBAAY,GAAG,6BAA6B,CAAC"}
|
package/types/input.d.ts
CHANGED
|
@@ -1885,6 +1885,10 @@ export interface ManagedDatabaseOpensearchProperties {
|
|
|
1885
1885
|
* Enable remote-backed storage.
|
|
1886
1886
|
*/
|
|
1887
1887
|
enableRemoteBackedStorage?: pulumi.Input<boolean>;
|
|
1888
|
+
/**
|
|
1889
|
+
* Enable searchable snapshots.
|
|
1890
|
+
*/
|
|
1891
|
+
enableSearchableSnapshots?: pulumi.Input<boolean>;
|
|
1888
1892
|
/**
|
|
1889
1893
|
* Enable/Disable security audit.
|
|
1890
1894
|
*/
|
|
@@ -2796,6 +2800,10 @@ export interface ManagedDatabasePostgresqlProperties {
|
|
|
2796
2800
|
* Controls which statements are counted. Specify top to track top-level statements (those issued directly by clients), all to also track nested statements (such as statements invoked within functions), or none to disable statement statistics collection. The default value is top.
|
|
2797
2801
|
*/
|
|
2798
2802
|
pgStatStatementsTrack?: pulumi.Input<string>;
|
|
2803
|
+
/**
|
|
2804
|
+
* PGAudit settings. System-wide settings for the pgaudit extension.
|
|
2805
|
+
*/
|
|
2806
|
+
pgaudit?: pulumi.Input<inputs.ManagedDatabasePostgresqlPropertiesPgaudit>;
|
|
2799
2807
|
/**
|
|
2800
2808
|
* PGBouncer connection pooling settings. System-wide settings for pgbouncer.
|
|
2801
2809
|
*/
|
|
@@ -2907,6 +2915,64 @@ export interface ManagedDatabasePostgresqlPropertiesMigration {
|
|
|
2907
2915
|
*/
|
|
2908
2916
|
username?: pulumi.Input<string>;
|
|
2909
2917
|
}
|
|
2918
|
+
export interface ManagedDatabasePostgresqlPropertiesPgaudit {
|
|
2919
|
+
/**
|
|
2920
|
+
* Enable pgaudit extension. Enable pgaudit extension. When enabled, pgaudit extension will be automatically installed.Otherwise, extension will be uninstalled but auditing configurations will be preserved.
|
|
2921
|
+
*/
|
|
2922
|
+
featureEnabled?: pulumi.Input<boolean>;
|
|
2923
|
+
/**
|
|
2924
|
+
* Specifies that session logging should be enabled in the casewhere all relations in a statement are in pg_catalog.
|
|
2925
|
+
*/
|
|
2926
|
+
logCatalog?: pulumi.Input<boolean>;
|
|
2927
|
+
/**
|
|
2928
|
+
* Specifies whether log messages will be visible to a client process such as psql.
|
|
2929
|
+
*/
|
|
2930
|
+
logClient?: pulumi.Input<boolean>;
|
|
2931
|
+
/**
|
|
2932
|
+
* Specifies the log level that will be used for log entries.
|
|
2933
|
+
*/
|
|
2934
|
+
logLevel?: pulumi.Input<string>;
|
|
2935
|
+
/**
|
|
2936
|
+
* Crop parameters representation and whole statements if they exceed this threshold. A (default) value of -1 disable the truncation.
|
|
2937
|
+
*/
|
|
2938
|
+
logMaxStringLength?: pulumi.Input<number>;
|
|
2939
|
+
/**
|
|
2940
|
+
* This GUC allows to turn off logging nested statements, that is, statements that are executed as part of another ExecutorRun.
|
|
2941
|
+
*/
|
|
2942
|
+
logNestedStatements?: pulumi.Input<boolean>;
|
|
2943
|
+
/**
|
|
2944
|
+
* Specifies that audit logging should include the parameters that were passed with the statement.
|
|
2945
|
+
*/
|
|
2946
|
+
logParameter?: pulumi.Input<boolean>;
|
|
2947
|
+
/**
|
|
2948
|
+
* Specifies that parameter values longer than this setting (in bytes) should not be logged, but replaced with <long param suppressed>.
|
|
2949
|
+
*/
|
|
2950
|
+
logParameterMaxSize?: pulumi.Input<number>;
|
|
2951
|
+
/**
|
|
2952
|
+
* Specifies whether session audit logging should create a separate log entry for each relation (TABLE, VIEW, etc.) referenced in a SELECT or DML statement.
|
|
2953
|
+
*/
|
|
2954
|
+
logRelation?: pulumi.Input<boolean>;
|
|
2955
|
+
/**
|
|
2956
|
+
* Specifies that audit logging should include the rows retrieved or affected by a statement. When enabled the rows field will be included after the parameter field.
|
|
2957
|
+
*/
|
|
2958
|
+
logRows?: pulumi.Input<boolean>;
|
|
2959
|
+
/**
|
|
2960
|
+
* Specifies whether logging will include the statement text and parameters (if enabled).
|
|
2961
|
+
*/
|
|
2962
|
+
logStatement?: pulumi.Input<boolean>;
|
|
2963
|
+
/**
|
|
2964
|
+
* Specifies whether logging will include the statement text and parameters with the first log entry for a statement/substatement combination or with every entry.
|
|
2965
|
+
*/
|
|
2966
|
+
logStatementOnce?: pulumi.Input<boolean>;
|
|
2967
|
+
/**
|
|
2968
|
+
* Specifies which classes of statements will be logged by session audit logging.
|
|
2969
|
+
*/
|
|
2970
|
+
logs?: pulumi.Input<pulumi.Input<string>[]>;
|
|
2971
|
+
/**
|
|
2972
|
+
* Specifies the master role to use for object audit logging.
|
|
2973
|
+
*/
|
|
2974
|
+
role?: pulumi.Input<string>;
|
|
2975
|
+
}
|
|
2910
2976
|
export interface ManagedDatabasePostgresqlPropertiesPgbouncer {
|
|
2911
2977
|
/**
|
|
2912
2978
|
* If the automatically created database pools have been unused this many seconds, they are freed. If 0 then timeout is disabled. [seconds].
|
package/types/output.d.ts
CHANGED
|
@@ -1623,6 +1623,10 @@ export interface ManagedDatabaseOpensearchProperties {
|
|
|
1623
1623
|
* Enable remote-backed storage.
|
|
1624
1624
|
*/
|
|
1625
1625
|
enableRemoteBackedStorage: boolean;
|
|
1626
|
+
/**
|
|
1627
|
+
* Enable searchable snapshots.
|
|
1628
|
+
*/
|
|
1629
|
+
enableSearchableSnapshots: boolean;
|
|
1626
1630
|
/**
|
|
1627
1631
|
* Enable/Disable security audit.
|
|
1628
1632
|
*/
|
|
@@ -2534,6 +2538,10 @@ export interface ManagedDatabasePostgresqlProperties {
|
|
|
2534
2538
|
* Controls which statements are counted. Specify top to track top-level statements (those issued directly by clients), all to also track nested statements (such as statements invoked within functions), or none to disable statement statistics collection. The default value is top.
|
|
2535
2539
|
*/
|
|
2536
2540
|
pgStatStatementsTrack: string;
|
|
2541
|
+
/**
|
|
2542
|
+
* PGAudit settings. System-wide settings for the pgaudit extension.
|
|
2543
|
+
*/
|
|
2544
|
+
pgaudit: outputs.ManagedDatabasePostgresqlPropertiesPgaudit;
|
|
2537
2545
|
/**
|
|
2538
2546
|
* PGBouncer connection pooling settings. System-wide settings for pgbouncer.
|
|
2539
2547
|
*/
|
|
@@ -2645,6 +2653,64 @@ export interface ManagedDatabasePostgresqlPropertiesMigration {
|
|
|
2645
2653
|
*/
|
|
2646
2654
|
username: string;
|
|
2647
2655
|
}
|
|
2656
|
+
export interface ManagedDatabasePostgresqlPropertiesPgaudit {
|
|
2657
|
+
/**
|
|
2658
|
+
* Enable pgaudit extension. Enable pgaudit extension. When enabled, pgaudit extension will be automatically installed.Otherwise, extension will be uninstalled but auditing configurations will be preserved.
|
|
2659
|
+
*/
|
|
2660
|
+
featureEnabled: boolean;
|
|
2661
|
+
/**
|
|
2662
|
+
* Specifies that session logging should be enabled in the casewhere all relations in a statement are in pg_catalog.
|
|
2663
|
+
*/
|
|
2664
|
+
logCatalog: boolean;
|
|
2665
|
+
/**
|
|
2666
|
+
* Specifies whether log messages will be visible to a client process such as psql.
|
|
2667
|
+
*/
|
|
2668
|
+
logClient: boolean;
|
|
2669
|
+
/**
|
|
2670
|
+
* Specifies the log level that will be used for log entries.
|
|
2671
|
+
*/
|
|
2672
|
+
logLevel: string;
|
|
2673
|
+
/**
|
|
2674
|
+
* Crop parameters representation and whole statements if they exceed this threshold. A (default) value of -1 disable the truncation.
|
|
2675
|
+
*/
|
|
2676
|
+
logMaxStringLength: number;
|
|
2677
|
+
/**
|
|
2678
|
+
* This GUC allows to turn off logging nested statements, that is, statements that are executed as part of another ExecutorRun.
|
|
2679
|
+
*/
|
|
2680
|
+
logNestedStatements: boolean;
|
|
2681
|
+
/**
|
|
2682
|
+
* Specifies that audit logging should include the parameters that were passed with the statement.
|
|
2683
|
+
*/
|
|
2684
|
+
logParameter: boolean;
|
|
2685
|
+
/**
|
|
2686
|
+
* Specifies that parameter values longer than this setting (in bytes) should not be logged, but replaced with <long param suppressed>.
|
|
2687
|
+
*/
|
|
2688
|
+
logParameterMaxSize: number;
|
|
2689
|
+
/**
|
|
2690
|
+
* Specifies whether session audit logging should create a separate log entry for each relation (TABLE, VIEW, etc.) referenced in a SELECT or DML statement.
|
|
2691
|
+
*/
|
|
2692
|
+
logRelation: boolean;
|
|
2693
|
+
/**
|
|
2694
|
+
* Specifies that audit logging should include the rows retrieved or affected by a statement. When enabled the rows field will be included after the parameter field.
|
|
2695
|
+
*/
|
|
2696
|
+
logRows: boolean;
|
|
2697
|
+
/**
|
|
2698
|
+
* Specifies whether logging will include the statement text and parameters (if enabled).
|
|
2699
|
+
*/
|
|
2700
|
+
logStatement: boolean;
|
|
2701
|
+
/**
|
|
2702
|
+
* Specifies whether logging will include the statement text and parameters with the first log entry for a statement/substatement combination or with every entry.
|
|
2703
|
+
*/
|
|
2704
|
+
logStatementOnce: boolean;
|
|
2705
|
+
/**
|
|
2706
|
+
* Specifies which classes of statements will be logged by session audit logging.
|
|
2707
|
+
*/
|
|
2708
|
+
logs: string[];
|
|
2709
|
+
/**
|
|
2710
|
+
* Specifies the master role to use for object audit logging.
|
|
2711
|
+
*/
|
|
2712
|
+
role: string;
|
|
2713
|
+
}
|
|
2648
2714
|
export interface ManagedDatabasePostgresqlPropertiesPgbouncer {
|
|
2649
2715
|
/**
|
|
2650
2716
|
* If the automatically created database pools have been unused this many seconds, they are freed. If 0 then timeout is disabled. [seconds].
|