kubernetes

package
v0.13.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 27, 2019 License: Apache-2.0 Imports: 30 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetUniqueLabelSets

func GetUniqueLabelSets(svc *kubev1.Service, pods []*kubev1.Pod) []map[string]string

func GetUniqueLabelSetsForObjects

func GetUniqueLabelSetsForObjects(selector map[string]string, podlabelss []map[string]string) []map[string]string

func NewPlugin

func NewPlugin(kube kubernetes.Interface) plugins.Plugin

func UpdateUpstream

func UpdateUpstream(original, desired *v1.Upstream) (bool, error)

func UpstreamName

func UpstreamName(serviceNamespace, serviceName string, servicePort int32, extraLabels map[string]string) string

Types

type KubePluginListers

type KubePluginListers struct {
	// contains filtered or unexported fields
}

func (*KubePluginListers) EndpointsLister

func (k *KubePluginListers) EndpointsLister() kubelisters.EndpointsLister

func (*KubePluginListers) PodsLister

func (k *KubePluginListers) PodsLister() kubelisters.PodLister

func (*KubePluginListers) ServicesLister

func (k *KubePluginListers) ServicesLister() kubelisters.ServiceLister

func (*KubePluginListers) Subscribe

func (k *KubePluginListers) Subscribe() <-chan struct{}

func (*KubePluginListers) Unsubscribe

func (k *KubePluginListers) Unsubscribe(c <-chan struct{})

type KubePluginSharedFactory

type KubePluginSharedFactory interface {
	EndpointsLister() kubelisters.EndpointsLister
	ServicesLister() kubelisters.ServiceLister
	PodsLister() kubelisters.PodLister
	Subscribe() <-chan struct{}
	Unsubscribe(<-chan struct{})
}

type KubeUpstreamConverter

type KubeUpstreamConverter struct {
	// contains filtered or unexported fields
}

func DefaultUpstreamConverter

func DefaultUpstreamConverter() *KubeUpstreamConverter

func (*KubeUpstreamConverter) CreateUpstreamForLabels

func (uc *KubeUpstreamConverter) CreateUpstreamForLabels(ctx context.Context, uniqueLabelSets []map[string]string, svc *kubev1.Service) v1.UpstreamList

func (*KubeUpstreamConverter) UpstreamsForService

func (uc *KubeUpstreamConverter) UpstreamsForService(ctx context.Context, svc *kubev1.Service, pods []*kubev1.Pod) v1.UpstreamList

type UpstreamConverter

type UpstreamConverter interface {
	UpstreamsForService(ctx context.Context, svc *kubev1.Service, pods []*kubev1.Pod) v1.UpstreamList
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL