kube2store

package
v0.0.0-...-c7476d4 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2024 License: Apache-2.0 Imports: 18 Imported by: 2

Documentation

Index

Constants

View Source
const (
	// LabelServiceProxyName indicates that an alternative service
	// proxy will implement this Service.
	LabelServiceProxyName = "service.kubernetes.io/service-proxy-name"
)

TODO: need to find a better home for this

Variables

This section is empty.

Functions

This section is empty.

Types

type Job

type Job struct {
	Kube   *kubernetes.Clientset
	Store  *proxystore.Store
	Config *K8sConfig
}

func (Job) Run

func (j Job) Run(ctx context.Context)

type K8sConfig

type K8sConfig struct {
	// UseSlices turns on endpoint slices.  This can go away eventually.
	UseSlices bool

	// ServiceProxyName identifies a "different" service proxy, i.e. tells
	// KPNG we're not handling this service.
	ServiceProxyName string

	// ServiceLabelGlobs tells the proxy to filter certain services by label.
	ServiceLabelGlobs []string
	// ServiceAnnotationGlobs tells the proxy to filter certain services by label.
	ServiceAnnonationGlobs []string

	NodeLabelGlobs      []string
	NodeAnnotationGlobs []string
}

K8sConfig is the data structure that users edit to influence the way that KPNG watches the K8s APIServer.

func (*K8sConfig) BindFlags

func (c *K8sConfig) BindFlags(flags *pflag.FlagSet)

Jump to

Keyboard shortcuts

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