From 1d3d3f020f6e728f162e39e1ea52e7b54f3bdd3f Mon Sep 17 00:00:00 2001 From: Tamal Saha Date: Thu, 8 Aug 2024 05:14:43 -0700 Subject: [PATCH] Add hubUID to prometheus context Signed-off-by: Tamal Saha --- api/v1/appbinding.go | 1 + api/v1/openapi_generated.go | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/api/v1/appbinding.go b/api/v1/appbinding.go index f7e79e2d..ea27ea10 100644 --- a/api/v1/appbinding.go +++ b/api/v1/appbinding.go @@ -61,6 +61,7 @@ type TLSConfig struct { } type PrometheusContext struct { + HubUID string `json:"hubUID,omitempty"` ClusterUID string `json:"clusterUID"` ProjectId string `json:"projectId,omitempty"` Default bool `json:"default"` diff --git a/api/v1/openapi_generated.go b/api/v1/openapi_generated.go index 05de7c03..a98bb2c9 100644 --- a/api/v1/openapi_generated.go +++ b/api/v1/openapi_generated.go @@ -363,6 +363,12 @@ func schema_kmodulesxyz_monitoring_agent_api_api_v1_PrometheusContext(ref common SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ + "hubUID": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, "clusterUID": { SchemaProps: spec.SchemaProps{ Default: "",