istio: istio.io/istio/galley/pkg/config/processor/transforms/serviceentry/pod Index | Files

package pod

import "istio.io/istio/galley/pkg/config/processor/transforms/serviceentry/pod"

Index

Package Files

cache.go

Constants

const (
    LabelZoneRegion        = "failure-domain.beta.kubernetes.io/region"
    LabelZoneFailureDomain = "failure-domain.beta.kubernetes.io/zone"
)

k8s well known labels

type Cache Uses

type Cache interface {
    GetPodByIP(ip string) (Info, bool)
}

Cache for pod Info.

func NewCache Uses

func NewCache(listener Listener) (Cache, event.Handler)

NewCache creates a cache and its update handler

type Info Uses

type Info struct {
    IP       string
    FullName resource.Name
    Labels   map[string]string
    Locality string

    // ServiceAccountName the Spiffe name for the Pod service account.
    ServiceAccountName string

    NodeName string
}

Info for a Pod.

type Listener Uses

type Listener struct {
    PodAdded   func(info Info)
    PodUpdated func(info Info)
    PodDeleted func(info Info)
}

Listener is an observer of updates to the pod cache.

Package pod imports 7 packages (graph) and is imported by 2 packages. Updated 2019-10-19. Refresh now. Tools for package owners.