Skip to content

Commit

Permalink
Fix service expose annotation
Browse files Browse the repository at this point in the history
Signed-off-by: Ashok Pon Kumar <[email protected]>
  • Loading branch information
ashokponkumar committed Sep 27, 2020
1 parent f4cb49b commit 30cd9c7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion internal/optimizer/ingressoptimizer.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import (

"github.com/konveyor/move2kube/internal/qaengine"
irtypes "github.com/konveyor/move2kube/internal/types"
"github.com/konveyor/move2kube/types"
qatypes "github.com/konveyor/move2kube/types/qaengine"
)

Expand Down Expand Up @@ -62,7 +63,7 @@ func (ingresso ingressOptimizer) optimize(ir irtypes.IR) (irtypes.IR, error) {
if tempService.Annotations == nil {
tempService.Annotations = make(map[string]string)
}
tempService.Annotations["move2kube.service.expose"] = "true"
tempService.Annotations[types.GroupName+"/expose"] = "true"
// Also set the special field
tempService.ExposeService = true
ir.Services[k] = tempService
Expand Down
4 changes: 2 additions & 2 deletions types/qaengine/problem.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ func (p *Problem) GetBoolAnswer() (ans bool, err error) {
return ans, fmt.Errorf("Problem yet to be resolved")
}
if p.Solution.Type == ConfirmSolutionFormType {
return false, fmt.Errorf("This question type does not ssupport this answer type")
return false, fmt.Errorf("This question type does not support this answer type")
}
if len(p.Solution.Answer) != 1 {
return false, fmt.Errorf("No answer available")
Expand All @@ -136,7 +136,7 @@ func (p *Problem) GetStringAnswer() (ans string, err error) {
return ans, fmt.Errorf("Problem yet to be resolved")
}
if p.Solution.Type == MultiSelectSolutionFormType || p.Solution.Type == ConfirmSolutionFormType {
return "", fmt.Errorf("This question type does not ssupport this answer type")
return "", fmt.Errorf("This question type does not support this answer type")
}
if len(p.Solution.Answer) != 1 {
return "", fmt.Errorf("Wrong number of answers")
Expand Down

0 comments on commit 30cd9c7

Please sign in to comment.