Skip to content

Conversation

@sontek
Copy link
Contributor

@sontek sontek commented Oct 30, 2025

what

Expose if a binding is a system binding (stacklets) so its more obvious which ones are custom bindings.

why

I wanted to run a one liner that re-deploys all bindings but there was no way to filter out the system ones before. With this change I can do this:

  uv run stacklet-admin --output json binding list | jq -r '.data.bindings.edges[] | select(.node.system == false) | .node.uuid' | xargs -P 4 -I BINDING_ID uv run stacklet-admin binding deploy --uuid BINDING_ID

testing

I ran this against my sandbox:

uv run stacklet-admin --output json binding list | jq -r '.data.bindings.edges[] | select(.node.system == false) | .node.uuid' | xargs -P 4 -I BINDING_ID uv run stacklet-admin binding deploy --uuid BINDING_ID
data:
  deployBinding:
    binding:
      accountGroup:
        name: All gcp accounts
        uuid: 7faeab4e-c60f-4429-a3f7-745993d9955b
      description: null
      lastDeployed: '2025-10-30T21:18:28.292778+00:00'
      name: sontek's GCP bindings
      policyCollection:
        name: sontek policies Policies GCP
        uuid: 7c46a676-6ebd-4384-b221-e1c93d3ab713
      schedule: rate(1 hour)
      uuid: 405b50c4-c4af-4633-8967-9ac50ec6975a
      variables: null

data:
  deployBinding:
    binding:
      accountGroup:
        name: All aws accounts
        uuid: c5ba94a5-dd0b-4d0e-bc7c-d1f35d59d4c7
      description: null
      lastDeployed: '2025-10-30T21:18:28.434257+00:00'
      name: sontek's AWS binding
      policyCollection:
        name: sontek policies Policies AWS
        uuid: c642d1d0-7832-4f9f-a550-f13c9f3829d1
      schedule: rate(1 hour)
      uuid: 88a06d93-e3b3-4afb-a58b-78b4d4b07cfd
      variables: null

docs

N/A

@sontek sontek requested a review from a team as a code owner October 30, 2025 21:19
cursor[bot]

This comment was marked as outdated.

Copy link
Contributor

@jtroup jtroup left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @sontek

@sontek sontek merged commit 33910a2 into main Oct 30, 2025
12 checks passed
@sontek sontek deleted the expose_if_binding_is_system branch October 30, 2025 21:54
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.

3 participants