MCPcopy
hub / github.com/istio/istio / UseInferenceSemantics

Method UseInferenceSemantics

pilot/pkg/model/service.go:134–136  ·  view source on GitHub ↗

UseInferenceSemantics determines which logic we should use for Service This allows InferencePools and Services to both be represented by Service, but have different semantics.

()

Source from the content-addressed store, hash-verified

132// This allows InferencePools and Services to both be represented by Service, but have different
133// semantics.
134func (s *Service) UseInferenceSemantics() bool {
135 return s.Attributes.Labels[constants.InternalServiceSemantics] == constants.ServiceSemanticsInferencePool
136}
137
138func (s *Service) NamespacedName() types.NamespacedName {
139 return types.NamespacedName{Name: s.Attributes.Name, Namespace: s.Attributes.Namespace}

Callers 3

buildOutboundClustersMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected