Skip to content

Commit

Permalink
Fix breaking sample apps
Browse files Browse the repository at this point in the history
Signed-off-by: Ashish Tiwari <[email protected]>
  • Loading branch information
Revolyssup committed Jul 12, 2022
1 parent b0f28cf commit e4f03d9
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion build/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ func init() {
if len(allVersions) == 0 {
return
}
fmt.Println("here0")
for i, v := range allVersions {
if i == len(allVersions)-1 { //only get AppVersion of latest chart version
//Executing the below function for all versions is redundant and takes time on startup, we only want to know the latest app version of latest version.
Expand Down
2 changes: 1 addition & 1 deletion consul/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func (h *Consul) applyManifests(request adapter.OperationRequest, operation adap
}
} else {
for _, template := range operation.Templates {
tpl := []byte(template)
tpl := []byte(template.String())
merged, err := utils.MergeToTemplate(tpl, map[string]string{"namespace": request.Namespace})
if err != nil {
errMx.Lock()
Expand Down
1 change: 0 additions & 1 deletion consul/operations.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ func (h *Consul) ApplyOperation(ctx context.Context, request adapter.OperationRe
config.HTTPBinOperation,
config.ImageHubOperation,
config.BookInfoOperation:

status, err := h.applyManifests(request, *operation, kubeconfigs)
if err != nil {
e.Summary = fmt.Sprintf("Error while %s %s", status, opDesc)
Expand Down

0 comments on commit e4f03d9

Please sign in to comment.