Skip to content

Commit

Permalink
pilot test: allow version aliases in CRD reader (istio#39326)
Browse files Browse the repository at this point in the history
  • Loading branch information
howardjohn committed Jun 7, 2022
1 parent 62dec6d commit 7888660
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pilot/pkg/config/kube/crd/conversion.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ func parseInputsImpl(inputs string, withValidate bool) ([]config.Config, []Istio
}

gvk := obj.GroupVersionKind()
s, exists := collections.PilotGatewayAPI.FindByGroupVersionKind(resource.FromKubernetesGVK(&gvk))
s, exists := collections.PilotGatewayAPI.FindByGroupVersionAliasesKind(resource.FromKubernetesGVK(&gvk))
if !exists {
log.Debugf("unrecognized type %v", obj.Kind)
others = append(others, obj)
Expand Down

0 comments on commit 7888660

Please sign in to comment.