@pulumiverse/buildkite 2.3.1 → 3.0.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/README.md +5 -0
- package/agent/agentToken.d.ts +11 -19
- package/agent/agentToken.js +4 -6
- package/agent/agentToken.js.map +1 -1
- package/cluster/cluster.d.ts +74 -20
- package/cluster/cluster.js +54 -6
- package/cluster/cluster.js.map +1 -1
- package/cluster/clusterAgentToken.d.ts +49 -15
- package/cluster/clusterAgentToken.js +26 -8
- package/cluster/clusterAgentToken.js.map +1 -1
- package/cluster/clusterDefaultQueue.d.ts +130 -0
- package/cluster/clusterDefaultQueue.js +121 -0
- package/cluster/clusterDefaultQueue.js.map +1 -0
- package/cluster/clusterQueue.d.ts +36 -44
- package/cluster/clusterQueue.js +29 -37
- package/cluster/clusterQueue.js.map +1 -1
- package/cluster/getCluster.d.ts +48 -5
- package/cluster/getCluster.js +40 -0
- package/cluster/getCluster.js.map +1 -1
- package/cluster/index.d.ts +3 -0
- package/cluster/index.js +6 -1
- package/cluster/index.js.map +1 -1
- package/config/vars.d.ts +9 -7
- package/config/vars.js +6 -0
- package/config/vars.js.map +1 -1
- package/getMeta.d.ts +51 -1
- package/getMeta.js +51 -1
- package/getMeta.js.map +1 -1
- package/index.d.ts +1 -0
- package/index.js +3 -2
- package/index.js.map +1 -1
- package/organization/banner.d.ts +104 -0
- package/organization/banner.js +102 -0
- package/organization/banner.js.map +1 -0
- package/organization/getOrganization.d.ts +12 -21
- package/organization/getOrganization.js +9 -21
- package/organization/getOrganization.js.map +1 -1
- package/organization/index.d.ts +4 -3
- package/organization/index.js +8 -7
- package/organization/index.js.map +1 -1
- package/organization/organization.d.ts +29 -13
- package/organization/organization.js +10 -10
- package/organization/organization.js.map +1 -1
- package/package.json +2 -3
- package/package.json.bak +1 -2
- package/pipeline/getPipeline.d.ts +22 -18
- package/pipeline/getPipeline.js +8 -14
- package/pipeline/getPipeline.js.map +1 -1
- package/pipeline/getSignedSteps.d.ts +139 -0
- package/pipeline/getSignedSteps.js +91 -0
- package/pipeline/getSignedSteps.js.map +1 -0
- package/pipeline/getTemplate.d.ts +116 -0
- package/pipeline/getTemplate.js +79 -0
- package/pipeline/getTemplate.js.map +1 -0
- package/pipeline/index.d.ts +9 -0
- package/pipeline/index.js +12 -1
- package/pipeline/index.js.map +1 -1
- package/pipeline/pipeline.d.ts +116 -101
- package/pipeline/pipeline.js +18 -16
- package/pipeline/pipeline.js.map +1 -1
- package/pipeline/schedule.d.ts +50 -41
- package/pipeline/schedule.js +24 -15
- package/pipeline/schedule.js.map +1 -1
- package/pipeline/team.d.ts +35 -26
- package/pipeline/team.js +27 -18
- package/pipeline/team.js.map +1 -1
- package/pipeline/template.d.ts +155 -0
- package/pipeline/template.js +123 -0
- package/pipeline/template.js.map +1 -0
- package/provider.d.ts +23 -9
- package/provider.js +1 -0
- package/provider.js.map +1 -1
- package/team/getTeam.d.ts +29 -34
- package/team/getTeam.js +14 -16
- package/team/getTeam.js.map +1 -1
- package/team/member.d.ts +31 -33
- package/team/member.js +20 -22
- package/team/member.js.map +1 -1
- package/team/team.d.ts +36 -36
- package/team/team.js +17 -17
- package/testsuite/team.d.ts +29 -35
- package/testsuite/team.js +24 -30
- package/testsuite/team.js.map +1 -1
- package/testsuite/testSuite.d.ts +19 -27
- package/testsuite/testSuite.js +4 -12
- package/testsuite/testSuite.js.map +1 -1
- package/types/input.d.ts +37 -21
- package/types/output.d.ts +34 -18
- package/utilities.d.ts +4 -0
- package/utilities.js +33 -1
- package/utilities.js.map +1 -1
- package/organization/settings.d.ts +0 -80
- package/organization/settings.js +0 -81
- package/organization/settings.js.map +0 -1
- package/scripts/install-pulumi-plugin.js +0 -26
package/README.md
CHANGED
|
@@ -17,6 +17,11 @@ The provider is built on https://github.com/buildkite/terraform-provider-buildki
|
|
|
17
17
|
|
|
18
18
|
## Installing
|
|
19
19
|
|
|
20
|
+
> [!IMPORTANT]
|
|
21
|
+
> The provider version `v2.3.1` was built on the Terraform provider `v0.25.1` which was a pre-release version.
|
|
22
|
+
> From `v3.0.0` onwards this provider is compatible with the Terraform provider `v1.x.x`.
|
|
23
|
+
> Please note that backwards compatibility might not be given.
|
|
24
|
+
|
|
20
25
|
This package is available in many languages in the standard packaging formats.
|
|
21
26
|
|
|
22
27
|
### Node.js (JavaScript/TypeScript)
|
package/agent/agentToken.d.ts
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* This resource allows you to create and manage agent tokens.
|
|
6
|
-
*
|
|
7
|
-
* Buildkite Documentation: https://buildkite.com/docs/agent/v3/tokens
|
|
3
|
+
* This resource allows you to create and manage non-clustered agent tokens.
|
|
4
|
+
* You can find out more about clusters in the Buildkite [documentation](https://buildkite.com/docs/agent/v3/tokens).
|
|
8
5
|
*
|
|
9
6
|
* ## Example Usage
|
|
10
7
|
*
|
|
@@ -12,7 +9,8 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
12
9
|
* import * as pulumi from "@pulumi/pulumi";
|
|
13
10
|
* import * as buildkite from "@pulumiverse/buildkite";
|
|
14
11
|
*
|
|
15
|
-
*
|
|
12
|
+
* // create a default token
|
|
13
|
+
* const _default = new buildkite.agent.AgentToken("default", {description: "Default token"});
|
|
16
14
|
* ```
|
|
17
15
|
*/
|
|
18
16
|
export declare class AgentToken extends pulumi.CustomResource {
|
|
@@ -32,17 +30,15 @@ export declare class AgentToken extends pulumi.CustomResource {
|
|
|
32
30
|
*/
|
|
33
31
|
static isInstance(obj: any): obj is AgentToken;
|
|
34
32
|
/**
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
* > Changing `description` will cause the resource to be destroyed and re-created.
|
|
33
|
+
* The description of the agent token. Used to help identify its use.
|
|
38
34
|
*/
|
|
39
35
|
readonly description: pulumi.Output<string | undefined>;
|
|
40
36
|
/**
|
|
41
|
-
* The value
|
|
37
|
+
* The token value used by an agent to register with the API.
|
|
42
38
|
*/
|
|
43
39
|
readonly token: pulumi.Output<string>;
|
|
44
40
|
/**
|
|
45
|
-
* The UUID of the token.
|
|
41
|
+
* The UUID of the agent token.
|
|
46
42
|
*/
|
|
47
43
|
readonly uuid: pulumi.Output<string>;
|
|
48
44
|
/**
|
|
@@ -59,17 +55,15 @@ export declare class AgentToken extends pulumi.CustomResource {
|
|
|
59
55
|
*/
|
|
60
56
|
export interface AgentTokenState {
|
|
61
57
|
/**
|
|
62
|
-
*
|
|
63
|
-
*
|
|
64
|
-
* > Changing `description` will cause the resource to be destroyed and re-created.
|
|
58
|
+
* The description of the agent token. Used to help identify its use.
|
|
65
59
|
*/
|
|
66
60
|
description?: pulumi.Input<string>;
|
|
67
61
|
/**
|
|
68
|
-
* The value
|
|
62
|
+
* The token value used by an agent to register with the API.
|
|
69
63
|
*/
|
|
70
64
|
token?: pulumi.Input<string>;
|
|
71
65
|
/**
|
|
72
|
-
* The UUID of the token.
|
|
66
|
+
* The UUID of the agent token.
|
|
73
67
|
*/
|
|
74
68
|
uuid?: pulumi.Input<string>;
|
|
75
69
|
}
|
|
@@ -78,9 +72,7 @@ export interface AgentTokenState {
|
|
|
78
72
|
*/
|
|
79
73
|
export interface AgentTokenArgs {
|
|
80
74
|
/**
|
|
81
|
-
*
|
|
82
|
-
*
|
|
83
|
-
* > Changing `description` will cause the resource to be destroyed and re-created.
|
|
75
|
+
* The description of the agent token. Used to help identify its use.
|
|
84
76
|
*/
|
|
85
77
|
description?: pulumi.Input<string>;
|
|
86
78
|
}
|
package/agent/agentToken.js
CHANGED
|
@@ -6,11 +6,8 @@ exports.AgentToken = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("../utilities");
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* This resource allows you to create and manage agent tokens.
|
|
12
|
-
*
|
|
13
|
-
* Buildkite Documentation: https://buildkite.com/docs/agent/v3/tokens
|
|
9
|
+
* This resource allows you to create and manage non-clustered agent tokens.
|
|
10
|
+
* You can find out more about clusters in the Buildkite [documentation](https://buildkite.com/docs/agent/v3/tokens).
|
|
14
11
|
*
|
|
15
12
|
* ## Example Usage
|
|
16
13
|
*
|
|
@@ -18,7 +15,8 @@ const utilities = require("../utilities");
|
|
|
18
15
|
* import * as pulumi from "@pulumi/pulumi";
|
|
19
16
|
* import * as buildkite from "@pulumiverse/buildkite";
|
|
20
17
|
*
|
|
21
|
-
*
|
|
18
|
+
* // create a default token
|
|
19
|
+
* const _default = new buildkite.agent.AgentToken("default", {description: "Default token"});
|
|
22
20
|
* ```
|
|
23
21
|
*/
|
|
24
22
|
class AgentToken extends pulumi.CustomResource {
|
package/agent/agentToken.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agentToken.js","sourceRoot":"","sources":["../../agent/agentToken.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"agentToken.js","sourceRoot":"","sources":["../../agent/agentToken.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;GAaG;AACH,MAAa,UAAW,SAAQ,MAAM,CAAC,cAAc;IACjD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAuB,EAAE,IAAmC;QACrH,OAAO,IAAI,UAAU,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACjE,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,O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oEC;AAtDG,gBAAgB;AACO,uBAAY,GAAG,uCAAuC,CAAC"}
|
package/cluster/cluster.d.ts
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* Buildkite documentation: https://buildkite.com/docs/clusters/overview
|
|
3
|
+
* This resource allows you to create and manage a Buildkite Cluster to run your builds in.
|
|
4
|
+
* Clusters are useful for grouping agents by there capabilities or permissions.
|
|
5
|
+
* Find out more information in our [documentation](https://buildkite.com/docs/clusters/overview).
|
|
8
6
|
*
|
|
9
7
|
* ## Example Usage
|
|
10
8
|
*
|
|
@@ -12,7 +10,57 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
12
10
|
* import * as pulumi from "@pulumi/pulumi";
|
|
13
11
|
* import * as buildkite from "@pulumiverse/buildkite";
|
|
14
12
|
*
|
|
15
|
-
*
|
|
13
|
+
* // create a cluster
|
|
14
|
+
* const primary = new buildkite.cluster.Cluster("primary", {
|
|
15
|
+
* description: "Runs the monolith build and deploy",
|
|
16
|
+
* emoji: "🚀",
|
|
17
|
+
* color: "#bada55",
|
|
18
|
+
* });
|
|
19
|
+
* // add a pipeline to the cluster
|
|
20
|
+
* const monolith = new buildkite.pipeline.Pipeline("monolith", {
|
|
21
|
+
* repository: "https://github.com/...",
|
|
22
|
+
* clusterId: primary.id,
|
|
23
|
+
* });
|
|
24
|
+
* const _default = new buildkite.cluster.ClusterQueue("default", {
|
|
25
|
+
* clusterId: primary.id,
|
|
26
|
+
* key: "default",
|
|
27
|
+
* });
|
|
28
|
+
* ```
|
|
29
|
+
*
|
|
30
|
+
* ## Import
|
|
31
|
+
*
|
|
32
|
+
* import a cluster resource using the GraphQL ID
|
|
33
|
+
*
|
|
34
|
+
* #
|
|
35
|
+
*
|
|
36
|
+
* you can use this query to find the ID:
|
|
37
|
+
*
|
|
38
|
+
* query getClusters {
|
|
39
|
+
*
|
|
40
|
+
* organization(slug: "ORGANIZATION"){
|
|
41
|
+
*
|
|
42
|
+
* clusters(first: 5, order:NAME) {
|
|
43
|
+
*
|
|
44
|
+
* edges{
|
|
45
|
+
*
|
|
46
|
+
* node {
|
|
47
|
+
*
|
|
48
|
+
* id
|
|
49
|
+
*
|
|
50
|
+
* name
|
|
51
|
+
*
|
|
52
|
+
* }
|
|
53
|
+
*
|
|
54
|
+
* }
|
|
55
|
+
*
|
|
56
|
+
* }
|
|
57
|
+
*
|
|
58
|
+
* }
|
|
59
|
+
*
|
|
60
|
+
* }
|
|
61
|
+
*
|
|
62
|
+
* ```sh
|
|
63
|
+
* $ pulumi import buildkite:Cluster/cluster:Cluster primary Q2x1c3Rlci0tLTI3ZmFmZjA4LTA3OWEtNDk5ZC1hMmIwLTIzNmY3NWFkMWZjYg==
|
|
16
64
|
* ```
|
|
17
65
|
*/
|
|
18
66
|
export declare class Cluster extends pulumi.CustomResource {
|
|
@@ -32,23 +80,25 @@ export declare class Cluster extends pulumi.CustomResource {
|
|
|
32
80
|
*/
|
|
33
81
|
static isInstance(obj: any): obj is Cluster;
|
|
34
82
|
/**
|
|
35
|
-
* A color
|
|
83
|
+
* A color representation of the Cluster. Accepts hex codes, eg #BADA55.
|
|
36
84
|
*/
|
|
37
85
|
readonly color: pulumi.Output<string | undefined>;
|
|
38
86
|
/**
|
|
39
|
-
* This is a description for the cluster, this may describe the usage for it, the region, or something else
|
|
87
|
+
* This is a description for the cluster, this may describe the usage for it, the region, or something else
|
|
88
|
+
* which would help identify the Cluster's purpose.
|
|
40
89
|
*/
|
|
41
90
|
readonly description: pulumi.Output<string | undefined>;
|
|
42
91
|
/**
|
|
43
|
-
* An emoji to use with the Cluster, this can either be set using
|
|
92
|
+
* An emoji to use with the Cluster, this can either be set using :buildkite: notation, or with the
|
|
93
|
+
* emoji itself, such as 🚀.
|
|
44
94
|
*/
|
|
45
95
|
readonly emoji: pulumi.Output<string | undefined>;
|
|
46
96
|
/**
|
|
47
|
-
*
|
|
97
|
+
* The name of the Cluster. Can only contain numbers and letters, no spaces or special characters.
|
|
48
98
|
*/
|
|
49
99
|
readonly name: pulumi.Output<string>;
|
|
50
100
|
/**
|
|
51
|
-
* The UUID
|
|
101
|
+
* The UUID of the cluster.
|
|
52
102
|
*/
|
|
53
103
|
readonly uuid: pulumi.Output<string>;
|
|
54
104
|
/**
|
|
@@ -65,23 +115,25 @@ export declare class Cluster extends pulumi.CustomResource {
|
|
|
65
115
|
*/
|
|
66
116
|
export interface ClusterState {
|
|
67
117
|
/**
|
|
68
|
-
* A color
|
|
118
|
+
* A color representation of the Cluster. Accepts hex codes, eg #BADA55.
|
|
69
119
|
*/
|
|
70
120
|
color?: pulumi.Input<string>;
|
|
71
121
|
/**
|
|
72
|
-
* This is a description for the cluster, this may describe the usage for it, the region, or something else
|
|
122
|
+
* This is a description for the cluster, this may describe the usage for it, the region, or something else
|
|
123
|
+
* which would help identify the Cluster's purpose.
|
|
73
124
|
*/
|
|
74
125
|
description?: pulumi.Input<string>;
|
|
75
126
|
/**
|
|
76
|
-
* An emoji to use with the Cluster, this can either be set using
|
|
127
|
+
* An emoji to use with the Cluster, this can either be set using :buildkite: notation, or with the
|
|
128
|
+
* emoji itself, such as 🚀.
|
|
77
129
|
*/
|
|
78
130
|
emoji?: pulumi.Input<string>;
|
|
79
131
|
/**
|
|
80
|
-
*
|
|
132
|
+
* The name of the Cluster. Can only contain numbers and letters, no spaces or special characters.
|
|
81
133
|
*/
|
|
82
134
|
name?: pulumi.Input<string>;
|
|
83
135
|
/**
|
|
84
|
-
* The UUID
|
|
136
|
+
* The UUID of the cluster.
|
|
85
137
|
*/
|
|
86
138
|
uuid?: pulumi.Input<string>;
|
|
87
139
|
}
|
|
@@ -90,19 +142,21 @@ export interface ClusterState {
|
|
|
90
142
|
*/
|
|
91
143
|
export interface ClusterArgs {
|
|
92
144
|
/**
|
|
93
|
-
* A color
|
|
145
|
+
* A color representation of the Cluster. Accepts hex codes, eg #BADA55.
|
|
94
146
|
*/
|
|
95
147
|
color?: pulumi.Input<string>;
|
|
96
148
|
/**
|
|
97
|
-
* This is a description for the cluster, this may describe the usage for it, the region, or something else
|
|
149
|
+
* This is a description for the cluster, this may describe the usage for it, the region, or something else
|
|
150
|
+
* which would help identify the Cluster's purpose.
|
|
98
151
|
*/
|
|
99
152
|
description?: pulumi.Input<string>;
|
|
100
153
|
/**
|
|
101
|
-
* An emoji to use with the Cluster, this can either be set using
|
|
154
|
+
* An emoji to use with the Cluster, this can either be set using :buildkite: notation, or with the
|
|
155
|
+
* emoji itself, such as 🚀.
|
|
102
156
|
*/
|
|
103
157
|
emoji?: pulumi.Input<string>;
|
|
104
158
|
/**
|
|
105
|
-
*
|
|
159
|
+
* The name of the Cluster. Can only contain numbers and letters, no spaces or special characters.
|
|
106
160
|
*/
|
|
107
161
|
name?: pulumi.Input<string>;
|
|
108
162
|
}
|
package/cluster/cluster.js
CHANGED
|
@@ -6,11 +6,9 @@ exports.Cluster = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("../utilities");
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
* Buildkite documentation: https://buildkite.com/docs/clusters/overview
|
|
9
|
+
* This resource allows you to create and manage a Buildkite Cluster to run your builds in.
|
|
10
|
+
* Clusters are useful for grouping agents by there capabilities or permissions.
|
|
11
|
+
* Find out more information in our [documentation](https://buildkite.com/docs/clusters/overview).
|
|
14
12
|
*
|
|
15
13
|
* ## Example Usage
|
|
16
14
|
*
|
|
@@ -18,7 +16,57 @@ const utilities = require("../utilities");
|
|
|
18
16
|
* import * as pulumi from "@pulumi/pulumi";
|
|
19
17
|
* import * as buildkite from "@pulumiverse/buildkite";
|
|
20
18
|
*
|
|
21
|
-
*
|
|
19
|
+
* // create a cluster
|
|
20
|
+
* const primary = new buildkite.cluster.Cluster("primary", {
|
|
21
|
+
* description: "Runs the monolith build and deploy",
|
|
22
|
+
* emoji: "🚀",
|
|
23
|
+
* color: "#bada55",
|
|
24
|
+
* });
|
|
25
|
+
* // add a pipeline to the cluster
|
|
26
|
+
* const monolith = new buildkite.pipeline.Pipeline("monolith", {
|
|
27
|
+
* repository: "https://github.com/...",
|
|
28
|
+
* clusterId: primary.id,
|
|
29
|
+
* });
|
|
30
|
+
* const _default = new buildkite.cluster.ClusterQueue("default", {
|
|
31
|
+
* clusterId: primary.id,
|
|
32
|
+
* key: "default",
|
|
33
|
+
* });
|
|
34
|
+
* ```
|
|
35
|
+
*
|
|
36
|
+
* ## Import
|
|
37
|
+
*
|
|
38
|
+
* import a cluster resource using the GraphQL ID
|
|
39
|
+
*
|
|
40
|
+
* #
|
|
41
|
+
*
|
|
42
|
+
* you can use this query to find the ID:
|
|
43
|
+
*
|
|
44
|
+
* query getClusters {
|
|
45
|
+
*
|
|
46
|
+
* organization(slug: "ORGANIZATION"){
|
|
47
|
+
*
|
|
48
|
+
* clusters(first: 5, order:NAME) {
|
|
49
|
+
*
|
|
50
|
+
* edges{
|
|
51
|
+
*
|
|
52
|
+
* node {
|
|
53
|
+
*
|
|
54
|
+
* id
|
|
55
|
+
*
|
|
56
|
+
* name
|
|
57
|
+
*
|
|
58
|
+
* }
|
|
59
|
+
*
|
|
60
|
+
* }
|
|
61
|
+
*
|
|
62
|
+
* }
|
|
63
|
+
*
|
|
64
|
+
* }
|
|
65
|
+
*
|
|
66
|
+
* }
|
|
67
|
+
*
|
|
68
|
+
* ```sh
|
|
69
|
+
* $ pulumi import buildkite:Cluster/cluster:Cluster primary Q2x1c3Rlci0tLTI3ZmFmZjA4LTA3OWEtNDk5ZC1hMmIwLTIzNmY3NWFkMWZjYg==
|
|
22
70
|
* ```
|
|
23
71
|
*/
|
|
24
72
|
class Cluster extends pulumi.CustomResource {
|
package/cluster/cluster.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cluster.js","sourceRoot":"","sources":["../../cluster/cluster.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"cluster.js","sourceRoot":"","sources":["../../cluster/cluster.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+DG;AACH,MAAa,OAAQ,SAAQ,MAAM,CAAC,cAAc;IAC9C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAoB,EAAE,IAAmC;QAClH,OAAO,IAAI,OAAO,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC9D,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,OAAO,CAAC,YAAY,CAAC;IACxD,CAAC;IAiCD,YAAY,IAAY,EAAE,WAAwC,EAAE,IAAmC;QACnG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAuC,CAAC;YACtD,cAAc,CAAC,OAAO,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAA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
4
|
-
*
|
|
5
|
-
* This resource allows you to create and manage cluster agent tokens.
|
|
6
|
-
*
|
|
7
|
-
* Buildkite Documentation: https://buildkite.com/docs/clusters/manage-clusters#set-up-clusters-connect-agents-to-a-cluster
|
|
3
|
+
* A Cluster Agent Token is a token used to connect an agent to a cluster in Buildkite.
|
|
8
4
|
*
|
|
9
5
|
* ## Example Usage
|
|
10
6
|
*
|
|
@@ -12,9 +8,29 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
12
8
|
* import * as pulumi from "@pulumi/pulumi";
|
|
13
9
|
* import * as buildkite from "@pulumiverse/buildkite";
|
|
14
10
|
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
* description: "
|
|
11
|
+
* // create a cluster
|
|
12
|
+
* const primary = new buildkite.cluster.Cluster("primary", {
|
|
13
|
+
* description: "Runs the monolith build and deploy",
|
|
14
|
+
* emoji: "🚀",
|
|
15
|
+
* color: "#bada55",
|
|
16
|
+
* });
|
|
17
|
+
* // create an agent token for the cluster
|
|
18
|
+
* const defaultClusterAgentToken = new buildkite.cluster.ClusterAgentToken("defaultClusterAgentToken", {
|
|
19
|
+
* description: "Default cluster token",
|
|
20
|
+
* clusterId: primary.id,
|
|
21
|
+
* });
|
|
22
|
+
* const ipLimitedToken = new buildkite.cluster.ClusterAgentToken("ipLimitedToken", {
|
|
23
|
+
* description: "Token with allowed IP range",
|
|
24
|
+
* clusterId: primary.id,
|
|
25
|
+
* allowedIpAddresses: ["10.100.1.0/28"],
|
|
26
|
+
* });
|
|
27
|
+
* const monolith = new buildkite.pipeline.Pipeline("monolith", {
|
|
28
|
+
* repository: "https://github.com/...",
|
|
29
|
+
* clusterId: primary.id,
|
|
30
|
+
* });
|
|
31
|
+
* const defaultClusterQueue = new buildkite.cluster.ClusterQueue("defaultClusterQueue", {
|
|
32
|
+
* clusterId: primary.id,
|
|
33
|
+
* key: "default",
|
|
18
34
|
* });
|
|
19
35
|
* ```
|
|
20
36
|
*/
|
|
@@ -35,20 +51,27 @@ export declare class ClusterAgentToken extends pulumi.CustomResource {
|
|
|
35
51
|
*/
|
|
36
52
|
static isInstance(obj: any): obj is ClusterAgentToken;
|
|
37
53
|
/**
|
|
38
|
-
*
|
|
54
|
+
* A list of CIDR-notation IPv4 addresses from which agents can use this Cluster Agent Token.If not set, all IP addresses are allowed (the same as setting 0.0.0.0/0).
|
|
55
|
+
*/
|
|
56
|
+
readonly allowedIpAddresses: pulumi.Output<string[] | undefined>;
|
|
57
|
+
/**
|
|
58
|
+
* The GraphQL ID of the Cluster that this Cluster Agent Token belongs to.
|
|
39
59
|
*/
|
|
40
60
|
readonly clusterId: pulumi.Output<string>;
|
|
41
61
|
/**
|
|
42
|
-
* The UUID of the
|
|
62
|
+
* The UUID of the Cluster that this token belongs to.
|
|
43
63
|
*/
|
|
44
64
|
readonly clusterUuid: pulumi.Output<string>;
|
|
45
65
|
/**
|
|
46
66
|
* A description about what this cluster agent token is used for.
|
|
47
67
|
*/
|
|
48
68
|
readonly description: pulumi.Output<string>;
|
|
69
|
+
/**
|
|
70
|
+
* The token value used by an agent to register with the API.
|
|
71
|
+
*/
|
|
49
72
|
readonly token: pulumi.Output<string>;
|
|
50
73
|
/**
|
|
51
|
-
* The UUID of the
|
|
74
|
+
* The UUID of the token.
|
|
52
75
|
*/
|
|
53
76
|
readonly uuid: pulumi.Output<string>;
|
|
54
77
|
/**
|
|
@@ -65,20 +88,27 @@ export declare class ClusterAgentToken extends pulumi.CustomResource {
|
|
|
65
88
|
*/
|
|
66
89
|
export interface ClusterAgentTokenState {
|
|
67
90
|
/**
|
|
68
|
-
*
|
|
91
|
+
* A list of CIDR-notation IPv4 addresses from which agents can use this Cluster Agent Token.If not set, all IP addresses are allowed (the same as setting 0.0.0.0/0).
|
|
92
|
+
*/
|
|
93
|
+
allowedIpAddresses?: pulumi.Input<pulumi.Input<string>[]>;
|
|
94
|
+
/**
|
|
95
|
+
* The GraphQL ID of the Cluster that this Cluster Agent Token belongs to.
|
|
69
96
|
*/
|
|
70
97
|
clusterId?: pulumi.Input<string>;
|
|
71
98
|
/**
|
|
72
|
-
* The UUID of the
|
|
99
|
+
* The UUID of the Cluster that this token belongs to.
|
|
73
100
|
*/
|
|
74
101
|
clusterUuid?: pulumi.Input<string>;
|
|
75
102
|
/**
|
|
76
103
|
* A description about what this cluster agent token is used for.
|
|
77
104
|
*/
|
|
78
105
|
description?: pulumi.Input<string>;
|
|
106
|
+
/**
|
|
107
|
+
* The token value used by an agent to register with the API.
|
|
108
|
+
*/
|
|
79
109
|
token?: pulumi.Input<string>;
|
|
80
110
|
/**
|
|
81
|
-
* The UUID of the
|
|
111
|
+
* The UUID of the token.
|
|
82
112
|
*/
|
|
83
113
|
uuid?: pulumi.Input<string>;
|
|
84
114
|
}
|
|
@@ -87,7 +117,11 @@ export interface ClusterAgentTokenState {
|
|
|
87
117
|
*/
|
|
88
118
|
export interface ClusterAgentTokenArgs {
|
|
89
119
|
/**
|
|
90
|
-
*
|
|
120
|
+
* A list of CIDR-notation IPv4 addresses from which agents can use this Cluster Agent Token.If not set, all IP addresses are allowed (the same as setting 0.0.0.0/0).
|
|
121
|
+
*/
|
|
122
|
+
allowedIpAddresses?: pulumi.Input<pulumi.Input<string>[]>;
|
|
123
|
+
/**
|
|
124
|
+
* The GraphQL ID of the Cluster that this Cluster Agent Token belongs to.
|
|
91
125
|
*/
|
|
92
126
|
clusterId: pulumi.Input<string>;
|
|
93
127
|
/**
|
|
@@ -6,11 +6,7 @@ exports.ClusterAgentToken = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("../utilities");
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* This resource allows you to create and manage cluster agent tokens.
|
|
12
|
-
*
|
|
13
|
-
* Buildkite Documentation: https://buildkite.com/docs/clusters/manage-clusters#set-up-clusters-connect-agents-to-a-cluster
|
|
9
|
+
* A Cluster Agent Token is a token used to connect an agent to a cluster in Buildkite.
|
|
14
10
|
*
|
|
15
11
|
* ## Example Usage
|
|
16
12
|
*
|
|
@@ -18,9 +14,29 @@ const utilities = require("../utilities");
|
|
|
18
14
|
* import * as pulumi from "@pulumi/pulumi";
|
|
19
15
|
* import * as buildkite from "@pulumiverse/buildkite";
|
|
20
16
|
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
* description: "
|
|
17
|
+
* // create a cluster
|
|
18
|
+
* const primary = new buildkite.cluster.Cluster("primary", {
|
|
19
|
+
* description: "Runs the monolith build and deploy",
|
|
20
|
+
* emoji: "🚀",
|
|
21
|
+
* color: "#bada55",
|
|
22
|
+
* });
|
|
23
|
+
* // create an agent token for the cluster
|
|
24
|
+
* const defaultClusterAgentToken = new buildkite.cluster.ClusterAgentToken("defaultClusterAgentToken", {
|
|
25
|
+
* description: "Default cluster token",
|
|
26
|
+
* clusterId: primary.id,
|
|
27
|
+
* });
|
|
28
|
+
* const ipLimitedToken = new buildkite.cluster.ClusterAgentToken("ipLimitedToken", {
|
|
29
|
+
* description: "Token with allowed IP range",
|
|
30
|
+
* clusterId: primary.id,
|
|
31
|
+
* allowedIpAddresses: ["10.100.1.0/28"],
|
|
32
|
+
* });
|
|
33
|
+
* const monolith = new buildkite.pipeline.Pipeline("monolith", {
|
|
34
|
+
* repository: "https://github.com/...",
|
|
35
|
+
* clusterId: primary.id,
|
|
36
|
+
* });
|
|
37
|
+
* const defaultClusterQueue = new buildkite.cluster.ClusterQueue("defaultClusterQueue", {
|
|
38
|
+
* clusterId: primary.id,
|
|
39
|
+
* key: "default",
|
|
24
40
|
* });
|
|
25
41
|
* ```
|
|
26
42
|
*/
|
|
@@ -52,6 +68,7 @@ class ClusterAgentToken extends pulumi.CustomResource {
|
|
|
52
68
|
opts = opts || {};
|
|
53
69
|
if (opts.id) {
|
|
54
70
|
const state = argsOrState;
|
|
71
|
+
resourceInputs["allowedIpAddresses"] = state ? state.allowedIpAddresses : undefined;
|
|
55
72
|
resourceInputs["clusterId"] = state ? state.clusterId : undefined;
|
|
56
73
|
resourceInputs["clusterUuid"] = state ? state.clusterUuid : undefined;
|
|
57
74
|
resourceInputs["description"] = state ? state.description : undefined;
|
|
@@ -66,6 +83,7 @@ class ClusterAgentToken extends pulumi.CustomResource {
|
|
|
66
83
|
if ((!args || args.description === undefined) && !opts.urn) {
|
|
67
84
|
throw new Error("Missing required property 'description'");
|
|
68
85
|
}
|
|
86
|
+
resourceInputs["allowedIpAddresses"] = args ? args.allowedIpAddresses : undefined;
|
|
69
87
|
resourceInputs["clusterId"] = args ? args.clusterId : undefined;
|
|
70
88
|
resourceInputs["description"] = args ? args.description : undefined;
|
|
71
89
|
resourceInputs["clusterUuid"] = undefined /*out*/;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clusterAgentToken.js","sourceRoot":"","sources":["../../cluster/clusterAgentToken.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"clusterAgentToken.js","sourceRoot":"","sources":["../../cluster/clusterAgentToken.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;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,G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