Documentation
¶
Index ¶
- Constants
- func ConvertService(svc coreV1.Service, domainSuffix string, clusterID cluster.ID) *model.Service
- func ExternalNameServiceInstances(k8sSvc *coreV1.Service, svc *model.Service) []*model.ServiceInstance
- func KeyFunc(name, namespace string) string
- func NamespacedNameForK8sObject(obj metav1.Object) types.NamespacedName
- func PodTLSMode(pod *coreV1.Pod) string
- func SecureNamingSAN(pod *coreV1.Pod) string
- func ServiceHostname(name, namespace, domainSuffix string) host.Name
- func ServiceHostnameForKR(obj metav1.Object, domainSuffix string) host.Name
Constants ¶
View Source
const ( // IngressClassAnnotation is the annotation on ingress resources for the class of controllers // responsible for it IngressClassAnnotation = "kubernetes.io/ingress.class" // NodeSelectorAnnotation is the value for this annotation is a set of key value pairs (node labels) // that can be used to select a subset of nodes from the pool of k8s nodes // It is used for multi-cluster scenario, and with nodePort type gateway service. // TODO: move to API NodeSelectorAnnotation = "traffic.istio.io/nodeSelector" )
Variables ¶
This section is empty.
Functions ¶
func ConvertService ¶
func KeyFunc ¶
KeyFunc is the internal API key function that returns "namespace"/"name" or "name" if "namespace" is empty
func NamespacedNameForK8sObject ¶
func NamespacedNameForK8sObject(obj metav1.Object) types.NamespacedName
NamespacedNameForK8sObject is a helper that creates a NamespacedName for the given K8s Object.
func PodTLSMode ¶
PodTLSMode returns the tls mode associated with the pod if pod has been injected with sidecar
func SecureNamingSAN ¶
SecureNamingSAN creates the secure naming used for SAN verification from pod metadata
func ServiceHostname ¶
ServiceHostname produces FQDN for a k8s service
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.