move v1alpha2 to networking/v1alpha3 crd instead of config#3912
move v1alpha2 to networking/v1alpha3 crd instead of config#3912GregHanson merged 8 commits intoistio:masterfrom
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: Assign the PR to them by writing The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these OWNERS Files:You can indicate your approval by writing |
|
related to discussion here: does not fully fix, because crd client still needs to be able to handle apiversion v1alpha1 and v1alpha3 at same time |
| kind: CustomResourceDefinition | ||
| metadata: | ||
| name: destinationrules.config.istio.io | ||
| name: destinationrules.networking.istio.io |
There was a problem hiding this comment.
need change version v1alpha2 -> v1alpha3 to align with proto message package path.
|
just curious, it wasn't possible to do both changes in 1 ? (why first alpha2->alpha3 and then package change?) |
|
@GregHanson PR needs rebase |
Codecov Report
@@ Coverage Diff @@
## master #3912 +/- ##
========================================
Coverage ? 76%
========================================
Files ? 297
Lines ? 26945
Branches ? 0
========================================
Hits ? 20293
Misses ? 5354
Partials ? 1298
Continue to review full report at Codecov.
|
xiaolanz
left a comment
There was a problem hiding this comment.
It would be nice to add a few more testcases for the new configs in
pilot/test/mock/config.go
func CheckIstioConfigTypes()
pilot/pkg/model/config.go
Outdated
| // NamespaceAll is a designated symbol for listing across all namespaces | ||
| NamespaceAll = "" | ||
|
|
||
| configGroup = "config" |
There was a problem hiding this comment.
do not define constants here. it doesn't help to clarify the model. Please write "networking" or "config" in each proto schema.
i plan to remove istioAPIVersion once everything is done.
ijsnellf
left a comment
There was a problem hiding this comment.
please undo the RDSv2 rename
tests/e2e/tests/pilot/pilot_test.go
Outdated
| flag.BoolVar(&config.V1alpha2, "v1alpha2", config.V1alpha2, "Enable / disable v1alpha2 routing rules.") | ||
| flag.BoolVar(&config.RDSv2, "rdsv2", false, "Enable RDSv2 for v1alpha2") | ||
| flag.BoolVar(&config.V1alpha3, "v1alpha3", config.V1alpha3, "Enable / disable v1alpha3 routing rules.") | ||
| flag.BoolVar(&config.RDSv3, "rdsv3", false, "Enable RDSv3 for v1alpha3") |
There was a problem hiding this comment.
RDSv2 != v1alpha2/3. I think the v2 refers to the using the Envoy v2 API, not to v1alpha2/3. This should stay RDSv2 in all references.
There was a problem hiding this comment.
did some test failed? (I would hope so but...)
tests/e2e/tests/pilot/util/config.go
Outdated
| V1alpha2 bool | ||
| RDSv2 bool | ||
| V1alpha3 bool | ||
| RDSv3 bool |
| Zipkin bool | ||
| UseAdmissionWebhook bool | ||
| RDSv2 bool | ||
| RDSv3 bool |
| MixerCustomConfigFile: e.MixerCustomConfigFile, | ||
| CABundle: e.CABundle, | ||
| RDSv2: e.Config.RDSv2, | ||
| RDSv3: e.Config.RDSv3, |
|
@xiaolanz PTAL at most recent commits for requested changes |
|
/retest |
|
/test e2e-bookInfo |
|
/test istio-unit-tests |
|
/test istio-pilot-e2e |
|
/test e2e-bookInfo |
|
/test istio-pilot-e2e |
|
@GregHanson: The following tests failed, say
DetailsInstructions 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. |
|
It seems that istio-pilot-e2e has been consistently failing since this PR. |
|
Yes, as has e2e-bookInfoTests. @GregHanson can you take a look ? |
No description provided.