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
2
2
OUT_DIR =dist
3
3
YEAR? =$(shell date +"% Y")
4
4
Original file line number Diff line number Diff line change 31
31
gitCommit = ""
32
32
maxDefVersion = "1.0.0"
33
33
RuntimeDefURL = "manifests/runtime.yaml"
34
+ ArgoAgentURL = "manifests/argo-agent/agent.yaml"
34
35
)
35
36
36
37
type Version struct {
Original file line number Diff line number Diff line change @@ -16,9 +16,8 @@ package util
16
16
17
17
import (
18
18
"fmt"
19
+ "github.com/codefresh-io/cli-v2/pkg/store"
19
20
"io/ioutil"
20
- "path/filepath"
21
-
22
21
appsv1 "k8s.io/api/apps/v1"
23
22
v1 "k8s.io/api/core/v1"
24
23
rbacv1 "k8s.io/api/rbac/v1"
@@ -34,11 +33,7 @@ type (
34
33
)
35
34
36
35
func 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 )
42
37
if err != nil {
43
38
return nil , err
44
39
}
You can’t perform that action at this time.
0 commit comments