From 548458b14b470d017acdeedd9130de62e38c6e79 Mon Sep 17 00:00:00 2001 From: Pawel Kosiec Date: Mon, 26 Feb 2024 13:42:37 +0100 Subject: [PATCH] Use 'exec' plugins templates from 1.8 release --- cmd/executor/exec/main.go | 7 ++----- cmd/executor/exec/templates/argo.yaml | 1 + cmd/executor/exec/templates/flux.yaml | 1 + cmd/executor/exec/templates/helm.yaml | 1 + 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cmd/executor/exec/main.go b/cmd/executor/exec/main.go index f2d04a81..129c5148 100644 --- a/cmd/executor/exec/main.go +++ b/cmd/executor/exec/main.go @@ -210,11 +210,8 @@ func main() { } func getDefaultTemplateSource() string { - ver := version - if ver == "dev" { - ver = "main" - } - return fmt.Sprintf("github.com/kubeshop/botkube//cmd/executor/exec/templates?ref=%s", ver) + // Fixed 1.8 public templates for now as they are not changed + return "github.com/kubeshop/botkube//cmd/executor/exec/templates?ref=release-1.8" } func Normalize(in string) string { diff --git a/cmd/executor/exec/templates/argo.yaml b/cmd/executor/exec/templates/argo.yaml index cc4a68d0..3748eead 100644 --- a/cmd/executor/exec/templates/argo.yaml +++ b/cmd/executor/exec/templates/argo.yaml @@ -1,3 +1,4 @@ +# TODO: Once this file is modified, ensure the new template is used (e.g. via go embed) templates: - trigger: command: diff --git a/cmd/executor/exec/templates/flux.yaml b/cmd/executor/exec/templates/flux.yaml index 89ee71c2..0ccdde1a 100644 --- a/cmd/executor/exec/templates/flux.yaml +++ b/cmd/executor/exec/templates/flux.yaml @@ -1,3 +1,4 @@ +# TODO: Once this file is modified, ensure the new template is used (e.g. via go embed) templates: - trigger: command: diff --git a/cmd/executor/exec/templates/helm.yaml b/cmd/executor/exec/templates/helm.yaml index 3b355e79..1dfba4ed 100644 --- a/cmd/executor/exec/templates/helm.yaml +++ b/cmd/executor/exec/templates/helm.yaml @@ -1,3 +1,4 @@ +# TODO: Once this file is modified, ensure the new template is used (e.g. via go embed) templates: - trigger: command: