From ad761c718a2f78da0c4fb99acb5c397c118f2b51 Mon Sep 17 00:00:00 2001 From: Peter Dannemann <28637185+petedannemann@users.noreply.github.com> Date: Fri, 5 Apr 2024 15:26:52 -0400 Subject: [PATCH] feat: allow cluster labels (#188) --- pkg/config/cluster.go | 11 ++++++----- pkg/version/version.go | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/pkg/config/cluster.go b/pkg/config/cluster.go index 47458cd..232a7a5 100644 --- a/pkg/config/cluster.go +++ b/pkg/config/cluster.go @@ -27,11 +27,12 @@ type ClusterConfig struct { // ClusterMeta contains (mostly immutable) metadata about the cluster. Inspired // by the meta fields in Kubernetes objects. type ClusterMeta struct { - Name string `json:"name"` - Region string `json:"region"` - Environment string `json:"environment"` - Shard int `json:"shard"` - Description string `json:"description"` + Name string `json:"name"` + Region string `json:"region"` + Environment string `json:"environment"` + Shard int `json:"shard"` + Description string `json:"description"` + Labels map[string]string `json:"labels"` } // ClusterSpec contains the details necessary to communicate with a kafka cluster. diff --git a/pkg/version/version.go b/pkg/version/version.go index 64e03a9..f9825ff 100644 --- a/pkg/version/version.go +++ b/pkg/version/version.go @@ -1,4 +1,4 @@ package version // Version is the current topicctl version. -const Version = "1.15.0" +const Version = "1.16.0"