UseInferenceSemantics determines which logic we should use for Service This allows InferencePools and Services to both be represented by Service, but have different semantics.
()
| 132 | // This allows InferencePools and Services to both be represented by Service, but have different |
| 133 | // semantics. |
| 134 | func (s *Service) UseInferenceSemantics() bool { |
| 135 | return s.Attributes.Labels[constants.InternalServiceSemantics] == constants.ServiceSemanticsInferencePool |
| 136 | } |
| 137 | |
| 138 | func (s *Service) NamespacedName() types.NamespacedName { |
| 139 | return types.NamespacedName{Name: s.Attributes.Name, Namespace: s.Attributes.Namespace} |
no outgoing calls
no test coverage detected