Skip to content

Commit

Permalink
chore(deps): update upstream to 0.25.1
Browse files Browse the repository at this point in the history
  • Loading branch information
muhlba91 committed Sep 11, 2023
1 parent 2377fc8 commit 6c1a6c2
Show file tree
Hide file tree
Showing 86 changed files with 5,331 additions and 1,316 deletions.
2 changes: 1 addition & 1 deletion .conform.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ policies:
- type: commit
spec:
header:
length: 80
length: 200
imperative: true
case: lower
invalidLastCharacters: .
Expand Down
37 changes: 0 additions & 37 deletions .github/dependabot.yml

This file was deleted.

50 changes: 40 additions & 10 deletions provider/cmd/pulumi-resource-buildkite/bridge-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,22 @@
"buildkite:Cluster/cluster:Cluster": 1,
"buildkite:Cluster/clusterAgentToken:ClusterAgentToken": 1,
"buildkite:Cluster/clusterQueue:ClusterQueue": 1,
"buildkite:Organization/organization:Organization": 1,
"buildkite:Organization/settings:Settings": 0,
"buildkite:Pipeline/pipeline:Pipeline": 0,
"buildkite:Pipeline/schedule:Schedule": 0,
"buildkite:Team/member:Member": 0,
"buildkite:Team/team:Team": 0
"buildkite:Pipeline/pipeline:Pipeline": 1,
"buildkite:Pipeline/schedule:Schedule": 1,
"buildkite:Pipeline/team:Team": 1,
"buildkite:Team/member:Member": 1,
"buildkite:Team/team:Team": 1,
"buildkite:TestSuite/team:Team": 1,
"buildkite:TestSuite/testSuite:TestSuite": 1
},
"functions": {
"buildkite:Cluster/getCluster:getCluster": 1,
"buildkite:Organization/getOrganization:getOrganization": 0,
"buildkite:Pipeline/getPipeline:getPipeline": 0,
"buildkite:Team/getTeam:getTeam": 0,
"buildkite:index/getMeta:getMeta": 0
"buildkite:Organization/getOrganization:getOrganization": 1,
"buildkite:Pipeline/getPipeline:getPipeline": 1,
"buildkite:Team/getTeam:getTeam": 1,
"buildkite:index/getMeta:getMeta": 1
}
},
"renames": {
Expand All @@ -25,11 +29,15 @@
"buildkite:Cluster/cluster:Cluster": "buildkite_cluster",
"buildkite:Cluster/clusterAgentToken:ClusterAgentToken": "buildkite_cluster_agent_token",
"buildkite:Cluster/clusterQueue:ClusterQueue": "buildkite_cluster_queue",
"buildkite:Organization/organization:Organization": "buildkite_organization",
"buildkite:Organization/settings:Settings": "buildkite_organization_settings",
"buildkite:Pipeline/pipeline:Pipeline": "buildkite_pipeline",
"buildkite:Pipeline/schedule:Schedule": "buildkite_pipeline_schedule",
"buildkite:Pipeline/team:Team": "buildkite_pipeline_team",
"buildkite:Team/member:Member": "buildkite_team_member",
"buildkite:Team/team:Team": "buildkite_team"
"buildkite:Team/team:Team": "buildkite_team",
"buildkite:TestSuite/team:Team": "buildkite_test_suite_team",
"buildkite:TestSuite/testSuite:TestSuite": "buildkite_test_suite"
},
"functions": {
"buildkite:Cluster/getCluster:getCluster": "buildkite_cluster",
Expand All @@ -50,6 +58,9 @@
"buildkite:Organization/getOrganization:getOrganization": {
"allowedApiIpAddresses": "allowed_api_ip_addresses"
},
"buildkite:Organization/organization:Organization": {
"allowedApiIpAddresses": "allowed_api_ip_addresses"
},
"buildkite:Organization/settings:Settings": {
"allowedApiIpAddresses": "allowed_api_ip_addresses"
},
Expand All @@ -75,7 +86,9 @@
"triggerMode": "trigger_mode"
},
"buildkite:Pipeline/PipelineTeam:PipelineTeam": {
"accessLevel": "access_level"
"accessLevel": "access_level",
"pipelineTeamId": "pipeline_team_id",
"teamId": "team_id"
},
"buildkite:Pipeline/getPipeline:getPipeline": {
"defaultBranch": "default_branch",
Expand All @@ -102,6 +115,11 @@
"buildkite:Pipeline/schedule:Schedule": {
"pipelineId": "pipeline_id"
},
"buildkite:Pipeline/team:Team": {
"accessLevel": "access_level",
"pipelineId": "pipeline_id",
"teamId": "team_id"
},
"buildkite:Team/getTeam:getTeam": {
"defaultMemberRole": "default_member_role",
"defaultTeam": "default_team",
Expand All @@ -116,17 +134,29 @@
"defaultTeam": "default_team",
"membersCanCreatePipelines": "members_can_create_pipelines"
},
"buildkite:TestSuite/team:Team": {
"accessLevel": "access_level",
"teamId": "team_id",
"testSuiteId": "test_suite_id"
},
"buildkite:TestSuite/testSuite:TestSuite": {
"apiToken": "api_token",
"defaultBranch": "default_branch",
"teamOwnerId": "team_owner_id"
},
"buildkite:index/getMeta:getMeta": {
"webhookIps": "webhook_ips"
},
"buildkite:index:Provider": {
"apiToken": "api_token",
"archivePipelineOnDelete": "archive_pipeline_on_delete",
"graphqlUrl": "graphql_url",
"restUrl": "rest_url"
}
},
"renamedConfigProperties": {
"apiToken": "api_token",
"archivePipelineOnDelete": "archive_pipeline_on_delete",
"graphqlUrl": "graphql_url",
"restUrl": "rest_url"
}
Expand Down
2 changes: 1 addition & 1 deletion provider/cmd/pulumi-resource-buildkite/schema-embed.json

Large diffs are not rendered by default.

420 changes: 361 additions & 59 deletions provider/cmd/pulumi-resource-buildkite/schema.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions provider/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ replace (
)

require (
github.com/buildkite/terraform-provider-buildkite v0.20.0
github.com/buildkite/terraform-provider-buildkite v0.25.1
github.com/pulumi/pulumi-terraform-bridge/pf v0.14.1
github.com/pulumi/pulumi-terraform-bridge/v3 v3.53.0
github.com/pulumi/pulumi/sdk/v3 v3.76.1
Expand Down Expand Up @@ -122,10 +122,10 @@ require (
github.com/hashicorp/hcl/v2 v2.17.0 // indirect
github.com/hashicorp/hil v0.0.0-20230614213501-4d65b419f8b0 // indirect
github.com/hashicorp/logutils v1.0.0 // indirect
github.com/hashicorp/terraform-plugin-framework v1.3.2 // indirect
github.com/hashicorp/terraform-plugin-framework v1.3.5 // indirect
github.com/hashicorp/terraform-plugin-framework-validators v0.11.0 // indirect
github.com/hashicorp/terraform-plugin-go v0.18.0 // indirect
github.com/hashicorp/terraform-plugin-log v0.9.0 // indirect
github.com/hashicorp/terraform-plugin-mux v0.11.0 // indirect
github.com/hashicorp/terraform-plugin-sdk v1.17.2 // indirect
github.com/hashicorp/terraform-plugin-sdk/v2 v2.27.0 // indirect
github.com/hashicorp/terraform-registry-address v0.2.1 // indirect
Expand Down
19 changes: 10 additions & 9 deletions provider/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -926,8 +926,8 @@ github.com/buger/jsonparser v1.1.1/go.mod h1:6RYKKt7H4d4+iWqouImQ9R2FZql3VbhNgx2
github.com/bugsnag/bugsnag-go v0.0.0-20141110184014-b1d153021fcd/go.mod h1:2oa8nejYd4cQ/b0hMIopN0lCRxU0bueqREvZLWFrtK8=
github.com/bugsnag/osext v0.0.0-20130617224835-0dd3f918b21b/go.mod h1:obH5gd0BsqsP2LwDJ9aOkm/6J86V6lyAXCoQWGw3K50=
github.com/bugsnag/panicwrap v0.0.0-20151223152923-e2c28503fcd0/go.mod h1:D/8v3kj0zr8ZAKg1AQ6crr+5VwKN5eIywRkfhyM/+dE=
github.com/buildkite/terraform-provider-buildkite v0.20.0 h1:4XaPLS+prxKvKV4Tsjpg2cYj4C4y1huAh/qWINEI8mo=
github.com/buildkite/terraform-provider-buildkite v0.20.0/go.mod h1:k8MI8+Cp6eJkOb8OhGNVEyg6MlH7U7WvBUx7YdSeF9g=
github.com/buildkite/terraform-provider-buildkite v0.25.1 h1:B4nBqMiiEk9TXO3ylci7QeE5oOIajBNx3DXycWdqu7Q=
github.com/buildkite/terraform-provider-buildkite v0.25.1/go.mod h1:PrI5FMXwFzdiCsJMHeH1Lt2NF6HWgEo0PiglDwlkfoI=
github.com/bwesterb/go-ristretto v1.2.3/go.mod h1:fUIoIZaG73pV5biE2Blr2xEzDoMj7NFEuV9ekS419A0=
github.com/casbin/casbin/v2 v2.37.0/go.mod h1:vByNa/Fchek0KZUgG5wEsl7iFsiviAYKRtgrQfcJqHg=
github.com/cenkalti/backoff/v3 v3.0.0/go.mod h1:cIeZDE3IrqwwJl6VUwCN6trj1oXrTS4rc0ij+ULvLYs=
Expand Down Expand Up @@ -1688,7 +1688,7 @@ github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ
github.com/hashicorp/golang-lru v0.5.4/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4=
github.com/hashicorp/golang-lru v0.6.0/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4=
github.com/hashicorp/hc-install v0.4.0/go.mod h1:5d155H8EC5ewegao9A4PUTMNPZaq+TbOzkJJZ4vrXeI=
github.com/hashicorp/hc-install v0.5.0 h1:D9bl4KayIYKEeJ4vUDe9L5huqxZXczKaykSRcmQ0xY0=
github.com/hashicorp/hc-install v0.5.2 h1:SfwMFnEXVVirpwkDuSF5kymUOhrUxrTq3udEseZdOD0=
github.com/hashicorp/hcl v0.0.0-20170504190234-a4b07c25de5f/go.mod h1:oZtUIOe8dh44I2q6ScRibXws4Ajl+d+nod3AaR9vL5w=
github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ=
github.com/hashicorp/hcl v1.0.1-vault-5 h1:kI3hhbbyzr4dldA8UdTb7ZlVVlI2DACdCfz31RPDgJM=
Expand Down Expand Up @@ -1724,23 +1724,24 @@ github.com/hashicorp/terraform-exec v0.18.1 h1:LAbfDvNQU1l0NOQlTuudjczVhHj061fNX
github.com/hashicorp/terraform-json v0.4.0/go.mod h1:eAbqb4w0pSlRmdvl8fOyHAi/+8jnkVYN28gJkSJrLhU=
github.com/hashicorp/terraform-json v0.10.0/go.mod h1:3defM4kkMfttwiE7VakJDwCd4R+umhSQnvJwORXbprE=
github.com/hashicorp/terraform-json v0.14.0/go.mod h1:5A9HIWPkk4e5aeeXIBbkcOvaZbIYnAIkEyqP2pNSckM=
github.com/hashicorp/terraform-json v0.16.0 h1:UKkeWRWb23do5LNAFlh/K3N0ymn1qTOO8c+85Albo3s=
github.com/hashicorp/terraform-plugin-framework v1.3.2 h1:aQ6GSD0CTnvoALEWvKAkcH/d8jqSE0Qq56NYEhCexUs=
github.com/hashicorp/terraform-plugin-framework v1.3.2/go.mod h1:oimsRAPJOYkZ4kY6xIGfR0PHjpHLDLaknzuptl6AvnY=
github.com/hashicorp/terraform-plugin-framework-validators v0.10.0 h1:4L0tmy/8esP6OcvocVymw52lY0HyQ5OxB7VNl7k4bS0=
github.com/hashicorp/terraform-json v0.17.1 h1:eMfvh/uWggKmY7Pmb3T85u86E2EQg6EQHgyRwf3RkyA=
github.com/hashicorp/terraform-plugin-framework v1.3.5 h1:FJ6s3CVWVAxlhiF/jhy6hzs4AnPHiflsp9KgzTGl1wo=
github.com/hashicorp/terraform-plugin-framework v1.3.5/go.mod h1:2gGDpWiTI0irr9NSTLFAKlTi6KwGti3AoU19rFqU30o=
github.com/hashicorp/terraform-plugin-framework-validators v0.11.0 h1:DKb1bX7/EPZUTW6F5zdwJzS/EZ/ycVD6JAW5RYOj4f8=
github.com/hashicorp/terraform-plugin-framework-validators v0.11.0/go.mod h1:dzxOiHh7O9CAwc6p8N4mR1H++LtRkl+u+21YNiBVNno=
github.com/hashicorp/terraform-plugin-go v0.14.0/go.mod h1:2nNCBeRLaenyQEi78xrGrs9hMbulveqG/zDMQSvVJTE=
github.com/hashicorp/terraform-plugin-go v0.18.0 h1:IwTkOS9cOW1ehLd/rG0y+u/TGLK9y6fGoBjXVUquzpE=
github.com/hashicorp/terraform-plugin-go v0.18.0/go.mod h1:l7VK+2u5Kf2y+A+742GX0ouLut3gttudmvMgN0PA74Y=
github.com/hashicorp/terraform-plugin-log v0.7.0/go.mod h1:p4R1jWBXRTvL4odmEkFfDdhUjHf9zcs/BCoNHAc7IK4=
github.com/hashicorp/terraform-plugin-log v0.9.0 h1:i7hOA+vdAItN1/7UrfBqBwvYPQ9TFvymaRGZED3FCV0=
github.com/hashicorp/terraform-plugin-log v0.9.0/go.mod h1:rKL8egZQ/eXSyDqzLUuwUYLVdlYeamldAHSxjUFADow=
github.com/hashicorp/terraform-plugin-mux v0.11.0 h1:cuos/0M9YBc37pzwoCpwtCztnhlbeZJTPqrPyUXmNeY=
github.com/hashicorp/terraform-plugin-mux v0.11.0/go.mod h1:eMZPcv8b5y+alMeQmocgaphPj4zAnM3uXiMLd1emqMQ=
github.com/hashicorp/terraform-plugin-mux v0.11.2 h1:XMkAmWQN+6F+l4jwNeqdPom/8Vly6ZNDxHoKjiRHx5c=
github.com/hashicorp/terraform-plugin-sdk v1.7.0/go.mod h1:OjgQmey5VxnPej/buEhe+YqKm0KNvV3QqU4hkqHqPCY=
github.com/hashicorp/terraform-plugin-sdk v1.17.2 h1:V7DUR3yBWFrVB9z3ddpY7kiYVSsq4NYR67NiTs93NQo=
github.com/hashicorp/terraform-plugin-sdk v1.17.2/go.mod h1:wkvldbraEMkz23NxkkAsFS88A1R9eUiooiaUZyS6TLw=
github.com/hashicorp/terraform-plugin-test v1.2.0/go.mod h1:QIJHYz8j+xJtdtLrFTlzQVC0ocr3rf/OjIpgZLK56Hs=
github.com/hashicorp/terraform-plugin-test/v2 v2.2.1/go.mod h1:eZ9JL3O69Cb71Skn6OhHyj17sLmHRb+H6VrDcJjKrYU=
github.com/hashicorp/terraform-plugin-testing v1.4.0 h1:DVIXxw7VHZvnwWVik4HzhpC2yytaJ5FpiHxz5debKmE=
github.com/hashicorp/terraform-registry-address v0.0.0-20220623143253-7d51757b572c/go.mod h1:Wn3Na71knbXc1G8Lh+yu/dQWWJeFQEpDeJMtWMtlmNI=
github.com/hashicorp/terraform-registry-address v0.2.1 h1:QuTf6oJ1+WSflJw6WYOHhLgwUiQ0FrROpHPYFtwTYWM=
github.com/hashicorp/terraform-registry-address v0.2.1/go.mod h1:BSE9fIFzp0qWsJUUyGquo4ldV9k2n+psif6NYkBRS3Y=
Expand Down
6 changes: 6 additions & 0 deletions provider/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ const (
// modules:
mainMod = "index" //nolint:deadcode,unused,varcheck
pipelineMod = "Pipeline"
testMod = "TestSuite"
teamMod = "Team"
organizationMod = "Organization"
agentMod = "Agent"
Expand Down Expand Up @@ -83,10 +84,15 @@ func Provider() tfbridge.ProviderInfo {
// Pipeline
"buildkite_pipeline": {Tok: tfbridge.MakeResource(mainPkg, pipelineMod, "Pipeline")},
"buildkite_pipeline_schedule": {Tok: tfbridge.MakeResource(mainPkg, pipelineMod, "Schedule")},
"buildkite_pipeline_team": {Tok: tfbridge.MakeResource(mainPkg, pipelineMod, "Team")},
// Team
"buildkite_team": {Tok: tfbridge.MakeResource(mainPkg, teamMod, "Team")},
"buildkite_team_member": {Tok: tfbridge.MakeResource(mainPkg, teamMod, "Member")},
// Test
"buildkite_test_suite": {Tok: tfbridge.MakeResource(mainPkg, testMod, "TestSuite")},
"buildkite_test_suite_team": {Tok: tfbridge.MakeResource(mainPkg, testMod, "Team")},
// Organization
"buildkite_organization": {Tok: tfbridge.MakeResource(mainPkg, organizationMod, "Organization")},
"buildkite_organization_settings": {Tok: tfbridge.MakeResource(mainPkg, organizationMod, "Settings")},
// Agent
"buildkite_agent_token": {Tok: tfbridge.MakeResource(mainPkg, agentMod, "AgentToken")},
Expand Down
12 changes: 11 additions & 1 deletion sdk/dotnet/Config/Config.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,24 @@ public void Set(T value)

private static readonly __Value<string?> _apiToken = new __Value<string?>(() => __config.Get("apiToken"));
/// <summary>
/// API token with GraphQL access and `write_pipelines, read_pipelines` scopes
/// API token with GraphQL access and `write_pipelines, read_pipelines` and `write_suites` REST API scopes
/// </summary>
public static string? ApiToken
{
get => _apiToken.Get();
set => _apiToken.Set(value);
}

private static readonly __Value<bool?> _archivePipelineOnDelete = new __Value<bool?>(() => __config.GetBoolean("archivePipelineOnDelete"));
/// <summary>
/// Archive pipelines when destroying instead of completely deleting.
/// </summary>
public static bool? ArchivePipelineOnDelete
{
get => _archivePipelineOnDelete.Get();
set => _archivePipelineOnDelete.Set(value);
}

private static readonly __Value<string?> _graphqlUrl = new __Value<string?>(() => __config.Get("graphqlUrl"));
/// <summary>
/// Base URL for the GraphQL API to use
Expand Down
3 changes: 0 additions & 3 deletions sdk/dotnet/GetMeta.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ public static Task<GetMetaResult> InvokeAsync(InvokeOptions? options = null)
[OutputType]
public sealed class GetMetaResult
{
/// <summary>
/// The provider-assigned unique ID for this managed resource.
/// </summary>
public readonly string Id;
/// <summary>
/// A list of strings, each one an IP address (x.x.x.x) or CIDR address (x.x.x.x/32) that Buildkite may use to send webhooks and other external requests.
Expand Down
91 changes: 2 additions & 89 deletions sdk/dotnet/Organization/GetOrganization.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,92 +52,8 @@ public static class GetOrganization
/// {{% /example %}}
/// {{% /examples %}}
/// </summary>
public static Task<GetOrganizationResult> InvokeAsync(GetOrganizationArgs? args = null, InvokeOptions? options = null)
=> global::Pulumi.Deployment.Instance.InvokeAsync<GetOrganizationResult>("buildkite:Organization/getOrganization:getOrganization", args ?? new GetOrganizationArgs(), options.WithDefaults());

/// <summary>
/// ## # Data Source: organization
///
/// Use this data source to look up the organization settings. It currently supports
/// allowed_api_ip_addresses.
///
/// {{% examples %}}
/// ## Example Usage
/// {{% example %}}
///
/// ```csharp
/// using System.Collections.Generic;
/// using System.Linq;
/// using Pulumi;
/// using Aws = Pulumi.Aws;
/// using Buildkite = Pulumi.Buildkite;
///
/// return await Deployment.RunAsync(() =&gt;
/// {
/// var testkite = Buildkite.Organization.GetOrganization.Invoke();
///
/// var fromBuildkite = new Aws.Ec2.SecurityGroup("fromBuildkite", new()
/// {
/// Ingress = new[]
/// {
/// new Aws.Ec2.Inputs.SecurityGroupIngressArgs
/// {
/// FromPort = "*",
/// ToPort = 443,
/// Protocol = "tcp",
/// CidrBlocks = data.Buildkite_organization.Allowed_api_ip_addresses,
/// },
/// },
/// });
///
/// });
/// ```
/// {{% /example %}}
/// {{% /examples %}}
/// </summary>
public static Output<GetOrganizationResult> Invoke(GetOrganizationInvokeArgs? args = null, InvokeOptions? options = null)
=> global::Pulumi.Deployment.Instance.Invoke<GetOrganizationResult>("buildkite:Organization/getOrganization:getOrganization", args ?? new GetOrganizationInvokeArgs(), options.WithDefaults());
}


public sealed class GetOrganizationArgs : global::Pulumi.InvokeArgs
{
[Input("allowedApiIpAddresses")]
private List<string>? _allowedApiIpAddresses;

/// <summary>
/// list of IP addresses in CIDR format that are allowed to access the Buildkite API.
/// </summary>
public List<string> AllowedApiIpAddresses
{
get => _allowedApiIpAddresses ?? (_allowedApiIpAddresses = new List<string>());
set => _allowedApiIpAddresses = value;
}

public GetOrganizationArgs()
{
}
public static new GetOrganizationArgs Empty => new GetOrganizationArgs();
}

public sealed class GetOrganizationInvokeArgs : global::Pulumi.InvokeArgs
{
[Input("allowedApiIpAddresses")]
private InputList<string>? _allowedApiIpAddresses;

/// <summary>
/// list of IP addresses in CIDR format that are allowed to access the Buildkite API.
/// </summary>
public InputList<string> AllowedApiIpAddresses
{
get => _allowedApiIpAddresses ?? (_allowedApiIpAddresses = new InputList<string>());
set => _allowedApiIpAddresses = value;
}

public GetOrganizationInvokeArgs()
{
}
public static new GetOrganizationInvokeArgs Empty => new GetOrganizationInvokeArgs();
public static Task<GetOrganizationResult> InvokeAsync(InvokeOptions? options = null)
=> global::Pulumi.Deployment.Instance.InvokeAsync<GetOrganizationResult>("buildkite:Organization/getOrganization:getOrganization", InvokeArgs.Empty, options.WithDefaults());
}


Expand All @@ -148,9 +64,6 @@ public sealed class GetOrganizationResult
/// list of IP addresses in CIDR format that are allowed to access the Buildkite API.
/// </summary>
public readonly ImmutableArray<string> AllowedApiIpAddresses;
/// <summary>
/// The provider-assigned unique ID for this managed resource.
/// </summary>
public readonly string Id;
public readonly string Uuid;

Expand Down

0 comments on commit 6c1a6c2

Please sign in to comment.