-
Notifications
You must be signed in to change notification settings - Fork 81
update controller version. #306
base: master
Are you sure you want to change the base?
Conversation
cmd/mesh/manifest-migrate.go
Outdated
@@ -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)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is one of the places where hard coding should be taken out and ./version package used.
cmd/mesh/manifest-versions.go
Outdated
@@ -28,7 +28,7 @@ import ( | |||
) | |||
|
|||
const ( | |||
versionsMapURL = "https://raw.githubusercontent.com/istio/operator/master/version/versions.yaml" | |||
versionsMapURL = "https://raw.githubusercontent.com/morvencao/operator/br_update_versions_map/version/versions.yaml" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please mark this with DONOTMERGE or something so it doesn't sneak it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since #305 is merged, @morvencao can we get this updated so this PR can be merged?
pkg/translate/translate_test.go
Outdated
@@ -24,7 +24,7 @@ import ( | |||
"istio.io/operator/pkg/version" | |||
) | |||
|
|||
func TestProtoToValuesV13(t *testing.T) { | |||
func TestProtoToValuesV14(t *testing.T) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We really want a new function for V14 - for now, feel free to have it just call V13.
pkg/translate/translate_value.go
Outdated
@@ -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): { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should use ./version
@@ -357,7 +357,7 @@ autoInjection: | |||
`, | |||
}, | |||
} | |||
tr, err := NewReverseTranslator(version.NewMinorVersion(1, 3)) | |||
tr, err := NewReverseTranslator(version.NewMinorVersion(1, 4)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
version/version.go
Outdated
) | ||
|
||
var ( | ||
// SupportedVersions is a list of chart versions supported by this version of the operator. | ||
// It must be synced with the versions.yaml file. | ||
SupportedVersions = []string{ | ||
"1.3.0", | ||
"1.4.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also 1.3.1. Actually this is one of the places that the script that creates a new branch should update.
version/versions.yaml
Outdated
@@ -1,4 +1,7 @@ | |||
- operatorVersion: 1.3.0 | |||
supportedIstioVersions: 1.3.0 | |||
recommendedIstioVersions: 1.3.0 | |||
- operatorVersion: 1.4.0 | |||
supportedIstioVersions: ">=1.3.0,<=1.4" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/<=1.4/1.4.0/ per other PR.
also could you please add 1.3.1
/hold |
@morvencao can you address @ostromart's comment and update the version.yaml reference so we can get this merged? I'm hoping folks can start test controller (on server side) after this. |
138e716
to
d6cf288
Compare
@morvencao is this PR still valid? If so, can you rebase, if not can you abandon? Cheers |
14e87fd
to
eb8f65e
Compare
eb8f65e
to
034ef25
Compare
I minimized the change to only update the controller version, other changes has been in the master branch, PTAL @sdake This PR is not mandatory for 1.4 release, we can merge this after 1.4 is released. |
@morvencao: The following test failed, say
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
🧭 This issue or pull request has been automatically marked as stale because it has not had activity from an Istio team member since 2019-10-22. It will be closed on 2019-12-06 unless an Istio team member takes action. Please see this wiki page for more information. Thank you for your contributions. Created by the issue and PR lifecycle manager. |
update controller version.