From 3889f2025095e8a13cd194074dc08a81249dc328 Mon Sep 17 00:00:00 2001 From: mr Date: Thu, 13 Nov 2025 09:41:01 +0100 Subject: [PATCH] gitignore --- .gitignore | 1 + models/template.go | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 3303b39..5de9851 100644 --- a/.gitignore +++ b/.gitignore @@ -22,3 +22,4 @@ go.work argo_workflows/* +env.env \ No newline at end of file diff --git a/models/template.go b/models/template.go index f7a6019..5d0f8da 100644 --- a/models/template.go +++ b/models/template.go @@ -57,7 +57,7 @@ type Dag struct { } type TemplateMetadata struct { - Labels map[string]string `yaml:"labels,omitempty"` + Labels map[string]string `yaml:"labels,omitempty"` Annotations map[string]string `yaml:"annotations,omitempty"` } @@ -143,10 +143,10 @@ func (template *Template) ReplacePerEnv(arg string, envs []models.Param) string // Add the metadata that allow Admiralty to pick up an Argo Workflow that needs to be reparted // The value of "clustername" is the peerId, which must be replaced by the node name's for this specific execution -func (t *Template) AddAdmiraltyAnnotations(peerId string){ +func (t *Template) AddAdmiraltyAnnotations(peerId string) { if t.Metadata.Annotations == nil { t.Metadata.Annotations = make(map[string]string) } t.Metadata.Annotations["multicluster.admiralty.io/elect"] = "" t.Metadata.Annotations["multicluster.admiralty.io/clustername"] = peerId -} \ No newline at end of file +}