Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use ID for Cluster read and import #372

Merged
merged 8 commits into from
Aug 24, 2023
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ All notable changes to this project will be documented in this file.
- SUP-1375 Use context everywhere [[PR #362](https://github.com/buildkite/terraform-provider-buildkite/pull/362)] @jradtilbrook
- SUP-1319: Removal of archive_on_delete from pipeline resource [[PR #369](https://github.com/buildkite/terraform-provider-buildkite/pull/369)] @james2791
- SUP-1383 Fix teams block bug in v0.25.0 [[PR #370](https://github.com/buildkite/terraform-provider-buildkite/pull/370)] @jradtilbrook
- SUP-1380 Use ID for Cluster importing [[PR #372](https://github.com/buildkite/terraform-provider-buildkite/pull/372)] @mcncl

### Changes

Expand Down
264 changes: 99 additions & 165 deletions buildkite/generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 0 additions & 8 deletions buildkite/graphql/cluster.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,6 @@ fragment ClusterFields on Cluster {
color
}

query getCluster($orgSlug: ID!, $id: ID!) {
organization(slug: $orgSlug) {
cluster(id: $id) {
...ClusterFields
}
}
}

query getClusterByName(
$orgSlug: ID!,
# @genqlient(pointer: true)
Expand Down
3 changes: 3 additions & 0 deletions buildkite/graphql/node.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,8 @@ query getNode(
... on TeamPipeline {
... TeamPipelineFields
}
... on Cluster {
... ClusterFields
}
}
}
Loading