Documentation
¶
Index ¶
- Constants
- Variables
- func PodLabelsToOtterizeLabels(pod *corev1.Pod) []model.PodLabel
- func ServiceIsAPIServer(name string, namespace string) bool
- type KubeFinder
- func (k *KubeFinder) IsIpHostNetworkIp(ctx context.Context, ip string) (bool, error)
- func (k *KubeFinder) IsNodeIP(ctx context.Context, ip string) (bool, error)
- func (k *KubeFinder) IsPodIp(ctx context.Context, ip string) (bool, error)
- func (k *KubeFinder) IsSrcIpClusterInternal(ctx context.Context, ip string) (bool, error)
- func (k *KubeFinder) ResolveIPToControlPlane(ctx context.Context, ip string) (*corev1.Service, bool, error)
- func (k *KubeFinder) ResolveIPToExternalAccessService(ctx context.Context, ip string, port int) (*corev1.Service, bool, error)
- func (k *KubeFinder) ResolveIPToPod(ctx context.Context, ip string) (*corev1.Pod, error)
- func (k *KubeFinder) ResolveIPToService(ctx context.Context, ip string) (*corev1.Service, bool, error)
- func (k *KubeFinder) ResolveIstioWorkloadToPod(ctx context.Context, workload string, namespace string) (*corev1.Pod, error)
- func (k *KubeFinder) ResolveOtterizeIdentityForService(ctx context.Context, svc *corev1.Service, lastSeen time.Time) (model.OtterizeServiceIdentity, bool, error)
- func (k *KubeFinder) ResolvePodByName(ctx context.Context, name string, namespace string) (*corev1.Pod, error)
- func (k *KubeFinder) ResolveServiceAddressToPods(ctx context.Context, fqdn string) ([]corev1.Pod, types.NamespacedName, error)
- func (k *KubeFinder) ResolveServiceToPods(ctx context.Context, svc *corev1.Service) ([]corev1.Pod, error)
- func (k *KubeFinder) WasPodIP(ip string) bool
Constants ¶
View Source
const (
IstioCanonicalNameLabelKey = "service.istio.io/canonical-name"
)
Variables ¶
View Source
var ( ErrNoPodFound = errors.NewSentinelError("no pod found") ErrFoundMoreThanOnePod = errors.NewSentinelError("ip belongs to more than one pod") ErrFoundMoreThanOneService = errors.NewSentinelError("ip belongs to more than one service") ErrServiceNotFound = errors.NewSentinelError("service not found") )
Functions ¶
func ServiceIsAPIServer ¶
Types ¶
type KubeFinder ¶
type KubeFinder struct {
// contains filtered or unexported fields
}
func NewKubeFinder ¶
func (*KubeFinder) IsIpHostNetworkIp ¶
func (*KubeFinder) IsSrcIpClusterInternal ¶
func (*KubeFinder) ResolveIPToControlPlane ¶
func (*KubeFinder) ResolveIPToExternalAccessService ¶
func (*KubeFinder) ResolveIPToPod ¶
func (*KubeFinder) ResolveIPToService ¶
func (*KubeFinder) ResolveIstioWorkloadToPod ¶
func (*KubeFinder) ResolveOtterizeIdentityForService ¶
func (*KubeFinder) ResolvePodByName ¶
func (*KubeFinder) ResolveServiceAddressToPods ¶
func (k *KubeFinder) ResolveServiceAddressToPods(ctx context.Context, fqdn string) ([]corev1.Pod, types.NamespacedName, error)
func (*KubeFinder) ResolveServiceToPods ¶
func (*KubeFinder) WasPodIP ¶
func (k *KubeFinder) WasPodIP(ip string) bool
Click to show internal directories.
Click to hide internal directories.