Skip to content

Commit

Permalink
Merge branch 'master' into add-swagger
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Merenbach committed Jun 13, 2018
2 parents 6e036ba + 3fbbe94 commit 514124f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/application/application.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package application
import (
"bufio"
"encoding/json"
"fmt"
"path"
"reflect"
"strings"
Expand Down Expand Up @@ -69,7 +70,7 @@ func NewServer(

// appRBACName formats fully qualified application name for RBAC check
func appRBACName(app appv1.Application) string {
return path.Join(git.NormalizeGitURL(app.Spec.Source.RepoURL), app.Name)
return fmt.Sprintf("%s/%s", git.NormalizeGitURL(app.Spec.Source.RepoURL), app.Name)
}

// List returns list of applications
Expand Down
5 changes: 5 additions & 0 deletions util/argo/argo.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ func RefreshApp(appIf v1alpha1.ApplicationInterface, name string) (*argoappv1.Ap
common.AnnotationKeyRefresh: refreshString,
},
},
"status": map[string]interface{}{
"comparisonResult": map[string]interface{}{
"comparedAt": nil,
},
},
}
var err error
patch, err := json.Marshal(metadata)
Expand Down

0 comments on commit 514124f

Please sign in to comment.