File tree Expand file tree Collapse file tree 3 files changed +4
-8
lines changed Expand file tree Collapse file tree 3 files changed +4
-8
lines changed Original file line number Diff line number Diff line change 1- VERSION =v0.0.95
1+ VERSION =v0.0.96
22OUT_DIR =dist
33YEAR? =$(shell date +"% Y")
44
Original file line number Diff line number Diff line change 3131 gitCommit = ""
3232 maxDefVersion = "1.0.0"
3333 RuntimeDefURL = "manifests/runtime.yaml"
34+ ArgoAgentURL = "manifests/argo-agent/agent.yaml"
3435)
3536
3637type Version struct {
Original file line number Diff line number Diff line change @@ -16,9 +16,8 @@ package util
1616
1717import (
1818 "fmt"
19+ "github.com/codefresh-io/cli-v2/pkg/store"
1920 "io/ioutil"
20- "path/filepath"
21-
2221 appsv1 "k8s.io/api/apps/v1"
2322 v1 "k8s.io/api/core/v1"
2423 rbacv1 "k8s.io/api/rbac/v1"
@@ -34,11 +33,7 @@ type (
3433)
3534
3635func CreateAgentResource () ([]byte , error ) {
37- path , err := filepath .Abs ("./manifests/argo-agent/agent.yaml" )
38- if err != nil {
39- return nil , err
40- }
41- yamlFile , err := ioutil .ReadFile (path )
36+ yamlFile , err := ioutil .ReadFile (store .ArgoAgentURL )
4237 if err != nil {
4338 return nil , err
4439 }
You can’t perform that action at this time.
0 commit comments