From 5aa0f554ffa3d23c334ff599093b3b98b569c266 Mon Sep 17 00:00:00 2001 From: mogenius git-user Date: Thu, 4 Apr 2024 13:29:24 +0200 Subject: [PATCH] fix: minor fix. --- operator/routes-workload.go | 2 +- structs/datagram.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/operator/routes-workload.go b/operator/routes-workload.go index 9a1a5d4..ec9624a 100644 --- a/operator/routes-workload.go +++ b/operator/routes-workload.go @@ -1156,7 +1156,7 @@ func createDaemonSet(c *gin.Context) { // @Param string header string true "X-Context-Id" func allStatefulSets(c *gin.Context) { namespace := c.Query("namespace") - utils.HttpRespondForWorkloadResult(c, kubernetes.AllStatefulSets(namespace, services.GetGinContextId(c))) + utils.HttpRespondForWorkloadResult(c, kubernetes.AllK8sStatefulSets(namespace, services.GetGinContextId(c))) } // @Tags Workloads diff --git a/structs/datagram.go b/structs/datagram.go index b0c03f7..32e6fb4 100644 --- a/structs/datagram.go +++ b/structs/datagram.go @@ -13,6 +13,7 @@ type Datagram struct { Id string `json:"id" validate:"required"` Pattern string `json:"pattern" validate:"required"` Payload interface{} `json:"payload,omitempty"` + Username string `json:"username,omitempty"` Err string `json:"err,omitempty"` CreatedAt time.Time `json:"-"` }