Skip to content

feat: Fleet Resources (BPOP-5000)#212

Merged
schmikei merged 12 commits into
mainfrom
feat/fleet-resources
May 7, 2026
Merged

feat: Fleet Resources (BPOP-5000)#212
schmikei merged 12 commits into
mainfrom
feat/fleet-resources

Conversation

@schmikei
Copy link
Copy Markdown
Contributor

@schmikei schmikei commented May 5, 2026

Description of Changes

This PR introduces support for managing fleets via the terraform provider. This includes basic CRUD and follows a lot of our existing resource management lifecycles.

Example usage with a configuration named configuration

resource "bindplane_fleet" "production" {
  name        = "production-fleet"
  description = "Fleet for production agents"
  configuration = bindplane_configuration.configuration.name

  labels = {
    environment = "production"
    team        = "platform"
  }

  selector {
    match_labels = {
      fleet = "production-fleet"
      env   = "prod"
    }
  }

with v2

resource "bindplane_fleet" "staging" {
  name          = "staging-fleet-2"
  description   = "Fleet for staging agents"
  configuration = bindplane_configuration_v2.configuration.name

  labels = {
    environment = "staging"
    team        = "platform"
  }

  selector {
    match_labels = {
      fleet = "staging-fleet"
      env   = "staging"
    }
  }
}

Feel free to create a couple configurations but have tested it working with both v1 and v2 configurations.
image

Please check that the PR fulfills these requirements

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)
  • CI passes

@schmikei schmikei requested a review from a team as a code owner May 5, 2026 20:06
@schmikei schmikei changed the title feat: Fleet Resources feat: Fleet Resources (BPOP-5000) May 5, 2026
Comment on lines +49 to +58
"agent_type": {
Type: schema.TypeString,
Optional: true,
Description: "The agent type (collector type) for agents in this fleet.",
},
"platform": {
Type: schema.TypeString,
Optional: true,
Description: "The platform for agents in this fleet.",
},
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does the UI wizard ask for these during creation? If so, I think they should be required and force new, at least for now.

@schmikei schmikei added this pull request to the merge queue May 7, 2026
Merged via the queue into main with commit 268a157 May 7, 2026
39 of 40 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants