Skip to content

Commit

Permalink
Use 'exec' plugins templates from 1.8 release (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
pkosiec authored Feb 26, 2024
1 parent c114f42 commit 81e5d1c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
7 changes: 2 additions & 5 deletions cmd/executor/exec/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 1 addition & 0 deletions cmd/executor/exec/templates/argo.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# TODO: Once this file is modified, ensure the new template is used (e.g. via go embed)
templates:
- trigger:
command:
Expand Down
1 change: 1 addition & 0 deletions cmd/executor/exec/templates/flux.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# TODO: Once this file is modified, ensure the new template is used (e.g. via go embed)
templates:
- trigger:
command:
Expand Down
1 change: 1 addition & 0 deletions cmd/executor/exec/templates/helm.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# TODO: Once this file is modified, ensure the new template is used (e.g. via go embed)
templates:
- trigger:
command:
Expand Down

0 comments on commit 81e5d1c

Please sign in to comment.