diff --git a/pkg/plugins/policies/meshtls/plugin/v1alpha1/plugin.go b/pkg/plugins/policies/meshtls/plugin/v1alpha1/plugin.go index b09471ca6005..f42b3fd4203a 100644 --- a/pkg/plugins/policies/meshtls/plugin/v1alpha1/plugin.go +++ b/pkg/plugins/policies/meshtls/plugin/v1alpha1/plugin.go @@ -42,7 +42,7 @@ func NewPlugin() core_plugins.Plugin { } func (p plugin) MatchedPolicies(dataplane *core_mesh.DataplaneResource, resources xds_context.Resources, opts ...core_plugins.MatchedPoliciesOption) (core_xds.TypedMatchingPolicies, error) { - return matchers.MatchedPolicies(api.MeshTLSType, dataplane, resources) + return matchers.MatchedPolicies(api.MeshTLSType, dataplane, resources, opts...) } func (p plugin) Apply(rs *core_xds.ResourceSet, ctx xds_context.Context, proxy *core_xds.Proxy) error { diff --git a/tools/policy-gen/bootstrap/root.go b/tools/policy-gen/bootstrap/root.go index 76cb0a5c2741..76408d230256 100644 --- a/tools/policy-gen/bootstrap/root.go +++ b/tools/policy-gen/bootstrap/root.go @@ -265,7 +265,7 @@ func NewPlugin() core_plugins.Plugin { func (p plugin) MatchedPolicies(dataplane *core_mesh.DataplaneResource, resources xds_context.Resources, opts ...core_plugins.MatchedPoliciesOption) (core_xds.TypedMatchingPolicies, error) { {{- if not .generateTargetRef }} panic("implement me") {{- else }} - return matchers.MatchedPolicies(api.{{ .name }}Type, dataplane, resources) + return matchers.MatchedPolicies(api.{{ .name }}Type, dataplane, resources, opts...), nil {{- end }} }