service

package
v0.0.0-...-004a839 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigMapWatcher

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

func (*ConfigMapWatcher) IsManagedByController

func (k *ConfigMapWatcher) IsManagedByController(cm v1.ConfigMap) bool

type IngressConfig

type IngressConfig struct {
	// Ingress ClassName to use
	ClassName string
	// ConfigMap to watch for configuration changes
	ConfigMap string
	// Enable HSTS header for all ingress routes
	EnableHSTS bool
	// Path to kube config file (useful for development outside of a kubernetes cluster)
	KubeConfig string
	// Namespace to watch for ingress resources
	Namespace string
	// Whether to watch for nginx-specific annotations
	NginxAnnotations bool
}

func (IngressConfig) String

func (c IngressConfig) String() string

type IngressWatcher

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

func (*IngressWatcher) IsManagedByController

func (k *IngressWatcher) IsManagedByController(ingress networkingv1.Ingress) bool

IsManagedByController returns true if the ingress resource has the correct ingress class

type PodWatcher

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

func (*PodWatcher) IPs

func (p *PodWatcher) IPs() []string

func (*PodWatcher) Namespace

func (p *PodWatcher) Namespace() string

type State

type State struct {
	ConfiguredHosts map[string][]string
}

func (State) IsHostConfigured

func (s State) IsHostConfigured(host string) bool

Jump to

Keyboard shortcuts

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