k8s

package
v0.20.1 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenericIngressEqual added in v0.16.0

func GenericIngressEqual(a, b *Ingress) bool

func NewListWatch

func NewListWatch(client *kubernetes.Clientset) *cache.ListWatch

Types

type Aggregator added in v0.16.0

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

func NewAggregator added in v0.16.0

func NewAggregator(k8sClients []*kubernetes.Clientset, ctx context.Context, syncSecrets bool) *Aggregator

NewAggregator returns a new Aggregator initialized with resource informers

func (*Aggregator) Events added in v0.16.0

func (a *Aggregator) Events() chan SyncDataEvent

func (*Aggregator) EventsIngresses added in v0.16.0

func (a *Aggregator) EventsIngresses(ctx context.Context, informer cache.SharedIndexInformer)

func (*Aggregator) EventsSecrets added in v0.19.1

func (a *Aggregator) EventsSecrets(ctx context.Context, informer cache.SharedIndexInformer)

func (*Aggregator) GetGenericIngresses added in v0.16.0

func (a *Aggregator) GetGenericIngresses() ([]*Ingress, error)

Get ingresses from stores and convert them to apiGroup-agnostic ingresses

func (*Aggregator) GetSecrets added in v0.19.1

func (a *Aggregator) GetSecrets() ([]*v1.Secret, error)

func (*Aggregator) Run added in v0.16.0

func (a *Aggregator) Run()

Run is the synchronization loop

type Ingress added in v0.16.0

type Ingress struct {
	Namespace   string
	Name        string
	Class       *string
	Annotations map[string]string
	RulesHosts  []string
	Upstreams   []string
	TLS         map[string]*IngressTLS
}

Ingress is the version-agnostic description of an ingress

type IngressLister

type IngressLister interface {
	List() ([]v1beta1.Ingress, error)
}

type IngressTLS added in v0.16.0

type IngressTLS struct {
	Host       string
	SecretName string
}

IngressTLS describes the transport layer security associated with an Ingress.

type SyncDataEvent added in v0.16.0

type SyncDataEvent struct {
	SyncType
	Data interface{}
	// contains filtered or unexported fields
}

SyncDataEvent represents converted k8s received message

type SyncType added in v0.16.0

type SyncType string

SyncType represents the type of k8s received message

const (
	COMMAND SyncType = "COMMAND"
	INGRESS SyncType = "INGRESS"
	SECRET  SyncType = "SECRET"
)

Jump to

Keyboard shortcuts

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