Skip to content
This repository has been archived by the owner on Oct 7, 2020. It is now read-only.

Commit

Permalink
fix test.
Browse files Browse the repository at this point in the history
  • Loading branch information
llcao committed Sep 29, 2019
1 parent 0c8dacb commit 138e716
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 14 deletions.
2 changes: 1 addition & 1 deletion cmd/mesh/manifest-migrate.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func migrateFromFiles(rootArgs *rootArgs, args []string, l *logger) {

// translateFunc translates the input values and output the result
func translateFunc(values []byte, l *logger) {
ts, err := translate.NewReverseTranslator(version.NewMinorVersion(1, 3))
ts, err := translate.NewReverseTranslator(version.NewMinorVersion(1, 4))
if err != nil {
l.logAndFatal("error creating values.yaml translator: ", err.Error())
}
Expand Down
1 change: 1 addition & 0 deletions cmd/mesh/manifest-versions.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ func manifestVersions(args *rootArgs, mvArgs *manifestVersionsArgs, l *logger) {
for _, v := range versions {
if v.OperatorVersion.Equal(binversion.OperatorBinaryGoVersion) {
myVersionMap = v
break
}
}

Expand Down
4 changes: 2 additions & 2 deletions pkg/translate/translate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
"istio.io/operator/pkg/version"
)

func TestProtoToValuesV13(t *testing.T) {
func TestProtoToValuesV14(t *testing.T) {
tests := []struct {
desc string
yamlStr string
Expand Down Expand Up @@ -159,7 +159,7 @@ tracing:
},
}

tr, err := NewTranslator(version.NewMinorVersion(1, 3))
tr, err := NewTranslator(version.NewMinorVersion(1, 4))
if err != nil {
t.Fatal(err)
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/translate/translate_value.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ type ReverseTranslator struct {
var (
// ReverseTranslators maps a minor version to a corresponding ReverseTranslator.
ReverseTranslators = map[version.MinorVersion]*ReverseTranslator{
version.NewMinorVersion(1, 3): {
version.NewMinorVersion(1, 4): {
APIMapping: map[string]*Translation{},
KubernetesPatternMapping: map[string]string{
"{{.ValueComponentName}}.podAntiAffinityLabelSelector": "{{.FeatureName}}.Components.{{.ComponentName}}.K8s." +
Expand Down
2 changes: 1 addition & 1 deletion pkg/translate/translate_value_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ autoInjection:
`,
},
}
tr, err := NewReverseTranslator(version.NewMinorVersion(1, 3))
tr, err := NewReverseTranslator(version.NewMinorVersion(1, 4))
if err != nil {
t.Fatal("fail to get helm value.yaml translator")
}
Expand Down
18 changes: 9 additions & 9 deletions pkg/vfs/assets.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 138e716

Please sign in to comment.