Skip to content

Commit a21c807

Browse files
fix path (#97)
1 parent 57fa12f commit a21c807

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION=v0.0.95
1+
VERSION=v0.0.96
22
OUT_DIR=dist
33
YEAR?=$(shell date +"%Y")
44

pkg/store/store.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ var (
3131
gitCommit = ""
3232
maxDefVersion = "1.0.0"
3333
RuntimeDefURL = "manifests/runtime.yaml"
34+
ArgoAgentURL = "manifests/argo-agent/agent.yaml"
3435
)
3536

3637
type Version struct {

pkg/util/argo-agent/util.go

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,8 @@ package util
1616

1717
import (
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

3635
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)
4237
if err != nil {
4338
return nil, err
4439
}

0 commit comments

Comments
 (0)