From f13e1465be5c45bb33d37e4f3311345510600547 Mon Sep 17 00:00:00 2001 From: Mohammad Alhussan Date: Tue, 10 Nov 2026 12:26:29 +0100 Subject: [PATCH] feat(client): find the default building block runner meshStack reports which runner is its default in status.isDefault and filters the runner list by isDefault. --- client/building_block_runner.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client/building_block_runner.go b/client/building_block_runner.go index f7a9c5b6..a18ec871 100644 --- a/client/building_block_runner.go +++ b/client/building_block_runner.go @@ -44,6 +44,8 @@ type MeshBuildingBlockRunnerMetadata struct { type MeshBuildingBlockRunnerStatus struct { LastSeen *string `json:"lastSeen,omitzero" tfsdk:"last_seen"` LastKnownVersion *string `json:"lastKnownVersion,omitzero" tfsdk:"last_known_version"` + // IsDefault is nil on a meshStack older than the default runner API. + IsDefault *bool `json:"isDefault,omitzero" tfsdk:"is_default"` } type MeshBuildingBlockRunnerSpec struct { @@ -79,6 +81,7 @@ type MeshBuildingBlockRunnerClient interface { type MeshBuildingBlockRunnerFilter struct { WorkspaceIdentifier *string `json:"workspaceIdentifier"` + IsDefault *bool `json:"isDefault"` } type meshBuildingBlockRunnerClient struct {