@pulumiverse/buildkite 2.3.0 → 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 +11 -5
- package/config/vars.js +12 -0
- package/config/vars.js.map +1 -1
- package/getMeta.d.ts +49 -2
- package/getMeta.js +51 -1
- package/getMeta.js.map +1 -1
- package/index.d.ts +3 -1
- package/index.js +5 -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 +10 -63
- package/organization/getOrganization.js +6 -47
- package/organization/getOrganization.js.map +1 -1
- package/organization/index.d.ts +7 -4
- package/organization/index.js +11 -6
- package/organization/index.js.map +1 -1
- package/organization/organization.d.ts +94 -0
- package/organization/{settings.js → organization.js} +20 -20
- package/organization/organization.js.map +1 -0
- package/package.json +2 -3
- package/package.json.bak +1 -2
- package/pipeline/getPipeline.d.ts +21 -20
- 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 +12 -0
- package/pipeline/index.js +17 -1
- package/pipeline/index.js.map +1 -1
- package/pipeline/pipeline.d.ts +117 -181
- package/pipeline/pipeline.js +15 -113
- package/pipeline/pipeline.js.map +1 -1
- package/pipeline/schedule.d.ts +57 -45
- package/pipeline/schedule.js +22 -19
- package/pipeline/schedule.js.map +1 -1
- package/pipeline/team.d.ts +137 -0
- package/pipeline/team.js +121 -0
- package/pipeline/team.js.map +1 -0
- package/pipeline/template.d.ts +155 -0
- package/pipeline/template.js +123 -0
- package/pipeline/template.js.map +1 -0
- package/provider.d.ts +26 -8
- package/provider.js +2 -0
- package/provider.js.map +1 -1
- package/team/getTeam.d.ts +39 -30
- package/team/getTeam.js +16 -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 +37 -37
- package/team/team.js +17 -17
- package/testsuite/index.d.ts +6 -0
- package/testsuite/index.js +27 -0
- package/testsuite/index.js.map +1 -0
- package/testsuite/team.d.ts +160 -0
- package/testsuite/team.js +144 -0
- package/testsuite/team.js.map +1 -0
- package/testsuite/testSuite.d.ts +112 -0
- package/testsuite/testSuite.js +83 -0
- package/testsuite/testSuite.js.map +1 -0
- package/types/input.d.ts +37 -22
- package/types/output.d.ts +37 -22
- package/utilities.d.ts +4 -0
- package/utilities.js +33 -1
- package/utilities.js.map +1 -1
- package/organization/settings.d.ts +0 -78
- package/organization/settings.js.map +0 -1
- package/scripts/install-pulumi-plugin.js +0 -26
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* This resource allows you to manage a default queue for a Buildkite Cluster.
|
|
4
|
+
* Find out more information in our [documentation](https://buildkite.com/docs/clusters/overview).
|
|
5
|
+
*
|
|
6
|
+
* ## Example Usage
|
|
7
|
+
*
|
|
8
|
+
* ```typescript
|
|
9
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
10
|
+
* import * as buildkite from "@pulumiverse/buildkite";
|
|
11
|
+
*
|
|
12
|
+
* // create a cluster
|
|
13
|
+
* const primaryCluster = new buildkite.cluster.Cluster("primaryCluster", {
|
|
14
|
+
* description: "Runs the monolith build and deploy",
|
|
15
|
+
* emoji: "🚀",
|
|
16
|
+
* color: "#bada55",
|
|
17
|
+
* });
|
|
18
|
+
* const _default = new buildkite.cluster.ClusterQueue("default", {
|
|
19
|
+
* clusterId: primaryCluster.id,
|
|
20
|
+
* key: "default",
|
|
21
|
+
* });
|
|
22
|
+
* const primaryClusterDefaultQueue = new buildkite.cluster.ClusterDefaultQueue("primaryClusterDefaultQueue", {
|
|
23
|
+
* clusterId: primaryCluster.id,
|
|
24
|
+
* queueId: _default.id,
|
|
25
|
+
* });
|
|
26
|
+
* ```
|
|
27
|
+
*
|
|
28
|
+
* ## Import
|
|
29
|
+
*
|
|
30
|
+
* import a clusters default queue resource using the GraphQL ID of the cluster itself
|
|
31
|
+
*
|
|
32
|
+
* #
|
|
33
|
+
*
|
|
34
|
+
* you can use this query to find the ID:
|
|
35
|
+
*
|
|
36
|
+
* query getClusters {
|
|
37
|
+
*
|
|
38
|
+
* organization(slug: "ORGANIZATION"){
|
|
39
|
+
*
|
|
40
|
+
* clusters(first: 5, order:NAME) {
|
|
41
|
+
*
|
|
42
|
+
* edges{
|
|
43
|
+
*
|
|
44
|
+
* node {
|
|
45
|
+
*
|
|
46
|
+
* id
|
|
47
|
+
*
|
|
48
|
+
* name
|
|
49
|
+
*
|
|
50
|
+
* }
|
|
51
|
+
*
|
|
52
|
+
* }
|
|
53
|
+
*
|
|
54
|
+
* }
|
|
55
|
+
*
|
|
56
|
+
* }
|
|
57
|
+
*
|
|
58
|
+
* }
|
|
59
|
+
*
|
|
60
|
+
* ```sh
|
|
61
|
+
* $ pulumi import buildkite:Cluster/clusterDefaultQueue:ClusterDefaultQueue primary Q2x1c3Rlci0tLTI3ZmFmZjA4LTA3OWEtNDk5ZC1hMmIwLTIzNmY3NWFkMWZjYg==
|
|
62
|
+
* ```
|
|
63
|
+
*/
|
|
64
|
+
export declare class ClusterDefaultQueue extends pulumi.CustomResource {
|
|
65
|
+
/**
|
|
66
|
+
* Get an existing ClusterDefaultQueue resource's state with the given name, ID, and optional extra
|
|
67
|
+
* properties used to qualify the lookup.
|
|
68
|
+
*
|
|
69
|
+
* @param name The _unique_ name of the resulting resource.
|
|
70
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
71
|
+
* @param state Any extra arguments used during the lookup.
|
|
72
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
73
|
+
*/
|
|
74
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ClusterDefaultQueueState, opts?: pulumi.CustomResourceOptions): ClusterDefaultQueue;
|
|
75
|
+
/**
|
|
76
|
+
* Returns true if the given object is an instance of ClusterDefaultQueue. This is designed to work even
|
|
77
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
78
|
+
*/
|
|
79
|
+
static isInstance(obj: any): obj is ClusterDefaultQueue;
|
|
80
|
+
/**
|
|
81
|
+
* The GraphQL ID of the cluster to which to add a default queue.
|
|
82
|
+
*/
|
|
83
|
+
readonly clusterId: pulumi.Output<string>;
|
|
84
|
+
/**
|
|
85
|
+
* The GraphQL ID of the cluster queue to set as default on the cluster.
|
|
86
|
+
*/
|
|
87
|
+
readonly queueId: pulumi.Output<string>;
|
|
88
|
+
/**
|
|
89
|
+
* The UUID of the cluster.
|
|
90
|
+
*/
|
|
91
|
+
readonly uuid: pulumi.Output<string>;
|
|
92
|
+
/**
|
|
93
|
+
* Create a ClusterDefaultQueue resource with the given unique name, arguments, and options.
|
|
94
|
+
*
|
|
95
|
+
* @param name The _unique_ name of the resource.
|
|
96
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
97
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
98
|
+
*/
|
|
99
|
+
constructor(name: string, args: ClusterDefaultQueueArgs, opts?: pulumi.CustomResourceOptions);
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Input properties used for looking up and filtering ClusterDefaultQueue resources.
|
|
103
|
+
*/
|
|
104
|
+
export interface ClusterDefaultQueueState {
|
|
105
|
+
/**
|
|
106
|
+
* The GraphQL ID of the cluster to which to add a default queue.
|
|
107
|
+
*/
|
|
108
|
+
clusterId?: pulumi.Input<string>;
|
|
109
|
+
/**
|
|
110
|
+
* The GraphQL ID of the cluster queue to set as default on the cluster.
|
|
111
|
+
*/
|
|
112
|
+
queueId?: pulumi.Input<string>;
|
|
113
|
+
/**
|
|
114
|
+
* The UUID of the cluster.
|
|
115
|
+
*/
|
|
116
|
+
uuid?: pulumi.Input<string>;
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* The set of arguments for constructing a ClusterDefaultQueue resource.
|
|
120
|
+
*/
|
|
121
|
+
export interface ClusterDefaultQueueArgs {
|
|
122
|
+
/**
|
|
123
|
+
* The GraphQL ID of the cluster to which to add a default queue.
|
|
124
|
+
*/
|
|
125
|
+
clusterId: pulumi.Input<string>;
|
|
126
|
+
/**
|
|
127
|
+
* The GraphQL ID of the cluster queue to set as default on the cluster.
|
|
128
|
+
*/
|
|
129
|
+
queueId: pulumi.Input<string>;
|
|
130
|
+
}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.ClusterDefaultQueue = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* This resource allows you to manage a default queue for a Buildkite Cluster.
|
|
10
|
+
* Find out more information in our [documentation](https://buildkite.com/docs/clusters/overview).
|
|
11
|
+
*
|
|
12
|
+
* ## Example Usage
|
|
13
|
+
*
|
|
14
|
+
* ```typescript
|
|
15
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
16
|
+
* import * as buildkite from "@pulumiverse/buildkite";
|
|
17
|
+
*
|
|
18
|
+
* // create a cluster
|
|
19
|
+
* const primaryCluster = new buildkite.cluster.Cluster("primaryCluster", {
|
|
20
|
+
* description: "Runs the monolith build and deploy",
|
|
21
|
+
* emoji: "🚀",
|
|
22
|
+
* color: "#bada55",
|
|
23
|
+
* });
|
|
24
|
+
* const _default = new buildkite.cluster.ClusterQueue("default", {
|
|
25
|
+
* clusterId: primaryCluster.id,
|
|
26
|
+
* key: "default",
|
|
27
|
+
* });
|
|
28
|
+
* const primaryClusterDefaultQueue = new buildkite.cluster.ClusterDefaultQueue("primaryClusterDefaultQueue", {
|
|
29
|
+
* clusterId: primaryCluster.id,
|
|
30
|
+
* queueId: _default.id,
|
|
31
|
+
* });
|
|
32
|
+
* ```
|
|
33
|
+
*
|
|
34
|
+
* ## Import
|
|
35
|
+
*
|
|
36
|
+
* import a clusters default queue resource using the GraphQL ID of the cluster itself
|
|
37
|
+
*
|
|
38
|
+
* #
|
|
39
|
+
*
|
|
40
|
+
* you can use this query to find the ID:
|
|
41
|
+
*
|
|
42
|
+
* query getClusters {
|
|
43
|
+
*
|
|
44
|
+
* organization(slug: "ORGANIZATION"){
|
|
45
|
+
*
|
|
46
|
+
* clusters(first: 5, order:NAME) {
|
|
47
|
+
*
|
|
48
|
+
* edges{
|
|
49
|
+
*
|
|
50
|
+
* node {
|
|
51
|
+
*
|
|
52
|
+
* id
|
|
53
|
+
*
|
|
54
|
+
* name
|
|
55
|
+
*
|
|
56
|
+
* }
|
|
57
|
+
*
|
|
58
|
+
* }
|
|
59
|
+
*
|
|
60
|
+
* }
|
|
61
|
+
*
|
|
62
|
+
* }
|
|
63
|
+
*
|
|
64
|
+
* }
|
|
65
|
+
*
|
|
66
|
+
* ```sh
|
|
67
|
+
* $ pulumi import buildkite:Cluster/clusterDefaultQueue:ClusterDefaultQueue primary Q2x1c3Rlci0tLTI3ZmFmZjA4LTA3OWEtNDk5ZC1hMmIwLTIzNmY3NWFkMWZjYg==
|
|
68
|
+
* ```
|
|
69
|
+
*/
|
|
70
|
+
class ClusterDefaultQueue extends pulumi.CustomResource {
|
|
71
|
+
/**
|
|
72
|
+
* Get an existing ClusterDefaultQueue resource's state with the given name, ID, and optional extra
|
|
73
|
+
* properties used to qualify the lookup.
|
|
74
|
+
*
|
|
75
|
+
* @param name The _unique_ name of the resulting resource.
|
|
76
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
77
|
+
* @param state Any extra arguments used during the lookup.
|
|
78
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
79
|
+
*/
|
|
80
|
+
static get(name, id, state, opts) {
|
|
81
|
+
return new ClusterDefaultQueue(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Returns true if the given object is an instance of ClusterDefaultQueue. This is designed to work even
|
|
85
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
86
|
+
*/
|
|
87
|
+
static isInstance(obj) {
|
|
88
|
+
if (obj === undefined || obj === null) {
|
|
89
|
+
return false;
|
|
90
|
+
}
|
|
91
|
+
return obj['__pulumiType'] === ClusterDefaultQueue.__pulumiType;
|
|
92
|
+
}
|
|
93
|
+
constructor(name, argsOrState, opts) {
|
|
94
|
+
let resourceInputs = {};
|
|
95
|
+
opts = opts || {};
|
|
96
|
+
if (opts.id) {
|
|
97
|
+
const state = argsOrState;
|
|
98
|
+
resourceInputs["clusterId"] = state ? state.clusterId : undefined;
|
|
99
|
+
resourceInputs["queueId"] = state ? state.queueId : undefined;
|
|
100
|
+
resourceInputs["uuid"] = state ? state.uuid : undefined;
|
|
101
|
+
}
|
|
102
|
+
else {
|
|
103
|
+
const args = argsOrState;
|
|
104
|
+
if ((!args || args.clusterId === undefined) && !opts.urn) {
|
|
105
|
+
throw new Error("Missing required property 'clusterId'");
|
|
106
|
+
}
|
|
107
|
+
if ((!args || args.queueId === undefined) && !opts.urn) {
|
|
108
|
+
throw new Error("Missing required property 'queueId'");
|
|
109
|
+
}
|
|
110
|
+
resourceInputs["clusterId"] = args ? args.clusterId : undefined;
|
|
111
|
+
resourceInputs["queueId"] = args ? args.queueId : undefined;
|
|
112
|
+
resourceInputs["uuid"] = undefined /*out*/;
|
|
113
|
+
}
|
|
114
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
115
|
+
super(ClusterDefaultQueue.__pulumiType, name, resourceInputs, opts);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
exports.ClusterDefaultQueue = ClusterDefaultQueue;
|
|
119
|
+
/** @internal */
|
|
120
|
+
ClusterDefaultQueue.__pulumiType = 'buildkite:Cluster/clusterDefaultQueue:ClusterDefaultQueue';
|
|
121
|
+
//# sourceMappingURL=clusterDefaultQueue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clusterDefaultQueue.js","sourceRoot":"","sources":["../../cluster/clusterDefaultQueue.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6DG;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;IAuBD,YAAY,IAAY,EAAE,WAAgE,EAAE,IAAmC;QAC3H,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAmD,CAAC;YAClE,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;SAC3D;aAAM;YACH,MAAM,IAAI,GAAG,WAAkD,CAAC;YAChE,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,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,OAAO,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACpD,MAAM,IAAI,KAAK,CAAC,qCAAqC,CAAC,CAAC;aAC1D;YACD,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAChE,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC9C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,mBAAmB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACxE,CAAC;;AAvEL,kDAwEC;AA1DG,gBAAgB;AACO,gCAAY,GAAG,2DAA2D,CAAC"}
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* This resource allows you to create and manage cluster queues.
|
|
6
|
-
*
|
|
7
|
-
* Buildkite Documentation: https://buildkite.com/docs/clusters/manage-clusters#set-up-clusters-create-a-queue
|
|
3
|
+
* A Cluster Queue is a queue belonging to a specific Cluster for its Agents to target builds on.
|
|
8
4
|
*
|
|
9
5
|
* ## Example Usage
|
|
10
6
|
*
|
|
@@ -12,48 +8,38 @@ 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: "
|
|
18
|
-
*
|
|
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
|
+
* const monolith = new buildkite.pipeline.Pipeline("monolith", {
|
|
18
|
+
* repository: "https://github.com/...",
|
|
19
|
+
* clusterId: primary.id,
|
|
20
|
+
* });
|
|
21
|
+
* // create a queue to put pipeline builds in
|
|
22
|
+
* const _default = new buildkite.cluster.ClusterQueue("default", {
|
|
23
|
+
* clusterId: primary.id,
|
|
24
|
+
* key: "default",
|
|
19
25
|
* });
|
|
20
26
|
* ```
|
|
21
27
|
*
|
|
22
28
|
* ## Import
|
|
23
29
|
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
* ```sh
|
|
27
|
-
* $ pulumi import buildkite:Cluster/clusterQueue:ClusterQueue test Q2x1c3RlclF1ZXVlLS0tYjJiOGRhNTEtOWY5My00Y2MyLTkyMjktMGRiNzg3ZDQzOTAz,35498aaf-ad05-4fa5-9a07-91bf6cacd2bd
|
|
28
|
-
* ```
|
|
29
|
-
*
|
|
30
|
-
* To find the cluster's `UUID` to utilize, you can use the below GraphQL query below. Alternatively, you can use this [pre-saved query](https://buildkite.com/user/graphql/console/3adf0389-02bd-45ef-adcd-4e8e5ae57f25), where you will need fo fill in the organization slug (ORGANIZATION_SLUG) for obtaining the relevant cluster name/`UUID` that the cluster queue is in. graphql query getClusters {
|
|
31
|
-
*
|
|
32
|
-
* organization(slug"ORGANIZATION_SLUG") {
|
|
33
|
-
*
|
|
34
|
-
* clusters(first50) {
|
|
35
|
-
*
|
|
36
|
-
* edges{
|
|
37
|
-
*
|
|
38
|
-
* node{
|
|
30
|
+
* import a cluster queue resource using the GraphQL ID along with its respective cluster UUID
|
|
39
31
|
*
|
|
40
|
-
*
|
|
32
|
+
* #
|
|
41
33
|
*
|
|
42
|
-
*
|
|
34
|
+
* you can use this query to find the ID:
|
|
43
35
|
*
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
* }
|
|
47
|
-
*
|
|
48
|
-
* }
|
|
49
|
-
*
|
|
50
|
-
* } } After the cluster `UUID` has been found, you can use the below GraphQL query to find the cluster queue's `GraphQL ID`. Alternatively, this [pre-saved query](https://buildkite.com/user/graphql/console/1d913905-900e-40e7-8f46-651543487b5a) can be used, specifying the organization slug (ORGANIZATION_SLUG) and the cluster `UUID` from above (CLUSTER_UUID). graphql query getClusterQueues {
|
|
36
|
+
* query getClusterQueues {
|
|
51
37
|
*
|
|
52
|
-
* organization(slug"ORGANIZATION_SLUG") {
|
|
38
|
+
* organization(slug: "ORGANIZATION_SLUG") {
|
|
53
39
|
*
|
|
54
|
-
* cluster(id"CLUSTER_UUID") {
|
|
40
|
+
* cluster(id: "CLUSTER_UUID") {
|
|
55
41
|
*
|
|
56
|
-
* queues(
|
|
42
|
+
* queues(first: 50) {
|
|
57
43
|
*
|
|
58
44
|
* edges {
|
|
59
45
|
*
|
|
@@ -71,7 +57,13 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
71
57
|
*
|
|
72
58
|
* }
|
|
73
59
|
*
|
|
74
|
-
* }
|
|
60
|
+
* }
|
|
61
|
+
*
|
|
62
|
+
* }
|
|
63
|
+
*
|
|
64
|
+
* ```sh
|
|
65
|
+
* $ pulumi import buildkite:Cluster/clusterQueue:ClusterQueue test Q2x1c3RlclF1ZXVlLS0tYjJiOGRhNTEtOWY5My00Y2MyLTkyMjktMGRiNzg3ZDQzOTAz,35498aaf-ad05-4fa5-9a07-91bf6cacd2bd
|
|
66
|
+
* ```
|
|
75
67
|
*/
|
|
76
68
|
export declare class ClusterQueue extends pulumi.CustomResource {
|
|
77
69
|
/**
|
|
@@ -94,11 +86,11 @@ export declare class ClusterQueue extends pulumi.CustomResource {
|
|
|
94
86
|
*/
|
|
95
87
|
readonly clusterId: pulumi.Output<string>;
|
|
96
88
|
/**
|
|
97
|
-
* The UUID of the cluster
|
|
89
|
+
* The UUID of the cluster this queue belongs to.
|
|
98
90
|
*/
|
|
99
91
|
readonly clusterUuid: pulumi.Output<string>;
|
|
100
92
|
/**
|
|
101
|
-
*
|
|
93
|
+
* A description for the cluster queue.
|
|
102
94
|
*/
|
|
103
95
|
readonly description: pulumi.Output<string | undefined>;
|
|
104
96
|
/**
|
|
@@ -106,7 +98,7 @@ export declare class ClusterQueue extends pulumi.CustomResource {
|
|
|
106
98
|
*/
|
|
107
99
|
readonly key: pulumi.Output<string>;
|
|
108
100
|
/**
|
|
109
|
-
* The UUID of the
|
|
101
|
+
* The UUID of the cluster queue.
|
|
110
102
|
*/
|
|
111
103
|
readonly uuid: pulumi.Output<string>;
|
|
112
104
|
/**
|
|
@@ -127,11 +119,11 @@ export interface ClusterQueueState {
|
|
|
127
119
|
*/
|
|
128
120
|
clusterId?: pulumi.Input<string>;
|
|
129
121
|
/**
|
|
130
|
-
* The UUID of the cluster
|
|
122
|
+
* The UUID of the cluster this queue belongs to.
|
|
131
123
|
*/
|
|
132
124
|
clusterUuid?: pulumi.Input<string>;
|
|
133
125
|
/**
|
|
134
|
-
*
|
|
126
|
+
* A description for the cluster queue.
|
|
135
127
|
*/
|
|
136
128
|
description?: pulumi.Input<string>;
|
|
137
129
|
/**
|
|
@@ -139,7 +131,7 @@ export interface ClusterQueueState {
|
|
|
139
131
|
*/
|
|
140
132
|
key?: pulumi.Input<string>;
|
|
141
133
|
/**
|
|
142
|
-
* The UUID of the
|
|
134
|
+
* The UUID of the cluster queue.
|
|
143
135
|
*/
|
|
144
136
|
uuid?: pulumi.Input<string>;
|
|
145
137
|
}
|
|
@@ -152,7 +144,7 @@ export interface ClusterQueueArgs {
|
|
|
152
144
|
*/
|
|
153
145
|
clusterId: pulumi.Input<string>;
|
|
154
146
|
/**
|
|
155
|
-
*
|
|
147
|
+
* A description for the cluster queue.
|
|
156
148
|
*/
|
|
157
149
|
description?: pulumi.Input<string>;
|
|
158
150
|
/**
|
package/cluster/clusterQueue.js
CHANGED
|
@@ -6,11 +6,7 @@ exports.ClusterQueue = 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 queues.
|
|
12
|
-
*
|
|
13
|
-
* Buildkite Documentation: https://buildkite.com/docs/clusters/manage-clusters#set-up-clusters-create-a-queue
|
|
9
|
+
* A Cluster Queue is a queue belonging to a specific Cluster for its Agents to target builds on.
|
|
14
10
|
*
|
|
15
11
|
* ## Example Usage
|
|
16
12
|
*
|
|
@@ -18,48 +14,38 @@ 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: "
|
|
24
|
-
*
|
|
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
|
+
* const monolith = new buildkite.pipeline.Pipeline("monolith", {
|
|
24
|
+
* repository: "https://github.com/...",
|
|
25
|
+
* clusterId: primary.id,
|
|
26
|
+
* });
|
|
27
|
+
* // create a queue to put pipeline builds in
|
|
28
|
+
* const _default = new buildkite.cluster.ClusterQueue("default", {
|
|
29
|
+
* clusterId: primary.id,
|
|
30
|
+
* key: "default",
|
|
25
31
|
* });
|
|
26
32
|
* ```
|
|
27
33
|
*
|
|
28
34
|
* ## Import
|
|
29
35
|
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
* ```sh
|
|
33
|
-
* $ pulumi import buildkite:Cluster/clusterQueue:ClusterQueue test Q2x1c3RlclF1ZXVlLS0tYjJiOGRhNTEtOWY5My00Y2MyLTkyMjktMGRiNzg3ZDQzOTAz,35498aaf-ad05-4fa5-9a07-91bf6cacd2bd
|
|
34
|
-
* ```
|
|
35
|
-
*
|
|
36
|
-
* To find the cluster's `UUID` to utilize, you can use the below GraphQL query below. Alternatively, you can use this [pre-saved query](https://buildkite.com/user/graphql/console/3adf0389-02bd-45ef-adcd-4e8e5ae57f25), where you will need fo fill in the organization slug (ORGANIZATION_SLUG) for obtaining the relevant cluster name/`UUID` that the cluster queue is in. graphql query getClusters {
|
|
37
|
-
*
|
|
38
|
-
* organization(slug"ORGANIZATION_SLUG") {
|
|
39
|
-
*
|
|
40
|
-
* clusters(first50) {
|
|
41
|
-
*
|
|
42
|
-
* edges{
|
|
43
|
-
*
|
|
44
|
-
* node{
|
|
36
|
+
* import a cluster queue resource using the GraphQL ID along with its respective cluster UUID
|
|
45
37
|
*
|
|
46
|
-
*
|
|
38
|
+
* #
|
|
47
39
|
*
|
|
48
|
-
*
|
|
40
|
+
* you can use this query to find the ID:
|
|
49
41
|
*
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
* }
|
|
53
|
-
*
|
|
54
|
-
* }
|
|
55
|
-
*
|
|
56
|
-
* } } After the cluster `UUID` has been found, you can use the below GraphQL query to find the cluster queue's `GraphQL ID`. Alternatively, this [pre-saved query](https://buildkite.com/user/graphql/console/1d913905-900e-40e7-8f46-651543487b5a) can be used, specifying the organization slug (ORGANIZATION_SLUG) and the cluster `UUID` from above (CLUSTER_UUID). graphql query getClusterQueues {
|
|
42
|
+
* query getClusterQueues {
|
|
57
43
|
*
|
|
58
|
-
* organization(slug"ORGANIZATION_SLUG") {
|
|
44
|
+
* organization(slug: "ORGANIZATION_SLUG") {
|
|
59
45
|
*
|
|
60
|
-
* cluster(id"CLUSTER_UUID") {
|
|
46
|
+
* cluster(id: "CLUSTER_UUID") {
|
|
61
47
|
*
|
|
62
|
-
* queues(
|
|
48
|
+
* queues(first: 50) {
|
|
63
49
|
*
|
|
64
50
|
* edges {
|
|
65
51
|
*
|
|
@@ -77,7 +63,13 @@ const utilities = require("../utilities");
|
|
|
77
63
|
*
|
|
78
64
|
* }
|
|
79
65
|
*
|
|
80
|
-
* }
|
|
66
|
+
* }
|
|
67
|
+
*
|
|
68
|
+
* }
|
|
69
|
+
*
|
|
70
|
+
* ```sh
|
|
71
|
+
* $ pulumi import buildkite:Cluster/clusterQueue:ClusterQueue test Q2x1c3RlclF1ZXVlLS0tYjJiOGRhNTEtOWY5My00Y2MyLTkyMjktMGRiNzg3ZDQzOTAz,35498aaf-ad05-4fa5-9a07-91bf6cacd2bd
|
|
72
|
+
* ```
|
|
81
73
|
*/
|
|
82
74
|
class ClusterQueue extends pulumi.CustomResource {
|
|
83
75
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clusterQueue.js","sourceRoot":"","sources":["../../cluster/clusterQueue.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"clusterQueue.js","sourceRoot":"","sources":["../../cluster/clusterQueue.ts"],"names":[],"mappings":"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"}
|
package/cluster/getCluster.d.ts
CHANGED
|
@@ -1,11 +1,31 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Use this data source to retrieve a cluster by name. You can find out more about clusters in the Buildkite [documentation](https://buildkite.com/docs/clusters/overview).
|
|
4
|
+
*
|
|
5
|
+
* ## Example Usage
|
|
6
|
+
*
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
+
* import * as buildkite from "@pulumi/buildkite";
|
|
10
|
+
* import * as buildkite from "@pulumiverse/buildkite";
|
|
11
|
+
*
|
|
12
|
+
* const default = buildkite.Cluster.getCluster({
|
|
13
|
+
* name: "default",
|
|
14
|
+
* });
|
|
15
|
+
* // Assign a pipeline to that cluster
|
|
16
|
+
* const terraform_provider_buildkite = new buildkite.pipeline.Pipeline("terraform-provider-buildkite", {
|
|
17
|
+
* repository: "git@github.com:buildkite/terraform-provider-buildkite.git",
|
|
18
|
+
* clusterId: _default.then(_default => _default.id),
|
|
19
|
+
* });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
2
22
|
export declare function getCluster(args: GetClusterArgs, opts?: pulumi.InvokeOptions): Promise<GetClusterResult>;
|
|
3
23
|
/**
|
|
4
24
|
* A collection of arguments for invoking getCluster.
|
|
5
25
|
*/
|
|
6
26
|
export interface GetClusterArgs {
|
|
7
27
|
/**
|
|
8
|
-
* The name of the cluster to
|
|
28
|
+
* The name of the cluster to retrieve.
|
|
9
29
|
*/
|
|
10
30
|
name: string;
|
|
11
31
|
}
|
|
@@ -14,7 +34,7 @@ export interface GetClusterArgs {
|
|
|
14
34
|
*/
|
|
15
35
|
export interface GetClusterResult {
|
|
16
36
|
/**
|
|
17
|
-
* The color
|
|
37
|
+
* The color of the cluster.
|
|
18
38
|
*/
|
|
19
39
|
readonly color: string;
|
|
20
40
|
/**
|
|
@@ -22,26 +42,49 @@ export interface GetClusterResult {
|
|
|
22
42
|
*/
|
|
23
43
|
readonly description: string;
|
|
24
44
|
/**
|
|
25
|
-
* The emoji
|
|
45
|
+
* The emoji of the cluster.
|
|
26
46
|
*/
|
|
27
47
|
readonly emoji: string;
|
|
28
48
|
/**
|
|
29
49
|
* The GraphQL ID of the cluster.
|
|
30
50
|
*/
|
|
31
51
|
readonly id: string;
|
|
52
|
+
/**
|
|
53
|
+
* The name of the cluster to retrieve.
|
|
54
|
+
*/
|
|
32
55
|
readonly name: string;
|
|
33
56
|
/**
|
|
34
|
-
* The UUID of the cluster
|
|
57
|
+
* The UUID of the cluster
|
|
35
58
|
*/
|
|
36
59
|
readonly uuid: string;
|
|
37
60
|
}
|
|
61
|
+
/**
|
|
62
|
+
* Use this data source to retrieve a cluster by name. You can find out more about clusters in the Buildkite [documentation](https://buildkite.com/docs/clusters/overview).
|
|
63
|
+
*
|
|
64
|
+
* ## Example Usage
|
|
65
|
+
*
|
|
66
|
+
* ```typescript
|
|
67
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
68
|
+
* import * as buildkite from "@pulumi/buildkite";
|
|
69
|
+
* import * as buildkite from "@pulumiverse/buildkite";
|
|
70
|
+
*
|
|
71
|
+
* const default = buildkite.Cluster.getCluster({
|
|
72
|
+
* name: "default",
|
|
73
|
+
* });
|
|
74
|
+
* // Assign a pipeline to that cluster
|
|
75
|
+
* const terraform_provider_buildkite = new buildkite.pipeline.Pipeline("terraform-provider-buildkite", {
|
|
76
|
+
* repository: "git@github.com:buildkite/terraform-provider-buildkite.git",
|
|
77
|
+
* clusterId: _default.then(_default => _default.id),
|
|
78
|
+
* });
|
|
79
|
+
* ```
|
|
80
|
+
*/
|
|
38
81
|
export declare function getClusterOutput(args: GetClusterOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetClusterResult>;
|
|
39
82
|
/**
|
|
40
83
|
* A collection of arguments for invoking getCluster.
|
|
41
84
|
*/
|
|
42
85
|
export interface GetClusterOutputArgs {
|
|
43
86
|
/**
|
|
44
|
-
* The name of the cluster to
|
|
87
|
+
* The name of the cluster to retrieve.
|
|
45
88
|
*/
|
|
46
89
|
name: pulumi.Input<string>;
|
|
47
90
|
}
|
package/cluster/getCluster.js
CHANGED
|
@@ -5,6 +5,26 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.getClusterOutput = exports.getCluster = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Use this data source to retrieve a cluster by name. You can find out more about clusters in the Buildkite [documentation](https://buildkite.com/docs/clusters/overview).
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as buildkite from "@pulumi/buildkite";
|
|
16
|
+
* import * as buildkite from "@pulumiverse/buildkite";
|
|
17
|
+
*
|
|
18
|
+
* const default = buildkite.Cluster.getCluster({
|
|
19
|
+
* name: "default",
|
|
20
|
+
* });
|
|
21
|
+
* // Assign a pipeline to that cluster
|
|
22
|
+
* const terraform_provider_buildkite = new buildkite.pipeline.Pipeline("terraform-provider-buildkite", {
|
|
23
|
+
* repository: "git@github.com:buildkite/terraform-provider-buildkite.git",
|
|
24
|
+
* clusterId: _default.then(_default => _default.id),
|
|
25
|
+
* });
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
8
28
|
function getCluster(args, opts) {
|
|
9
29
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
10
30
|
return pulumi.runtime.invoke("buildkite:Cluster/getCluster:getCluster", {
|
|
@@ -12,6 +32,26 @@ function getCluster(args, opts) {
|
|
|
12
32
|
}, opts);
|
|
13
33
|
}
|
|
14
34
|
exports.getCluster = getCluster;
|
|
35
|
+
/**
|
|
36
|
+
* Use this data source to retrieve a cluster by name. You can find out more about clusters in the Buildkite [documentation](https://buildkite.com/docs/clusters/overview).
|
|
37
|
+
*
|
|
38
|
+
* ## Example Usage
|
|
39
|
+
*
|
|
40
|
+
* ```typescript
|
|
41
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
42
|
+
* import * as buildkite from "@pulumi/buildkite";
|
|
43
|
+
* import * as buildkite from "@pulumiverse/buildkite";
|
|
44
|
+
*
|
|
45
|
+
* const default = buildkite.Cluster.getCluster({
|
|
46
|
+
* name: "default",
|
|
47
|
+
* });
|
|
48
|
+
* // Assign a pipeline to that cluster
|
|
49
|
+
* const terraform_provider_buildkite = new buildkite.pipeline.Pipeline("terraform-provider-buildkite", {
|
|
50
|
+
* repository: "git@github.com:buildkite/terraform-provider-buildkite.git",
|
|
51
|
+
* clusterId: _default.then(_default => _default.id),
|
|
52
|
+
* });
|
|
53
|
+
* ```
|
|
54
|
+
*/
|
|
15
55
|
function getClusterOutput(args, opts) {
|
|
16
56
|
return pulumi.output(args).apply((a) => getCluster(a, opts));
|
|
17
57
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getCluster.js","sourceRoot":"","sources":["../../cluster/getCluster.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C,SAAgB,UAAU,CAAC,IAAoB,EAAE,IAA2B;IAExE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,yCAAyC,EAAE;QACpE,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,gCAMC;
|
|
1
|
+
{"version":3,"file":"getCluster.js","sourceRoot":"","sources":["../../cluster/getCluster.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;GAmBG;AACH,SAAgB,UAAU,CAAC,IAAoB,EAAE,IAA2B;IAExE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,yCAAyC,EAAE;QACpE,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,gCAMC;AAyCD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,SAAgB,gBAAgB,CAAC,IAA0B,EAAE,IAA2B;IACpF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,UAAU,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACrE,CAAC;AAFD,4CAEC"}
|