manifests

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2023 License: MIT Imports: 21 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// OldExternalDnsGks is a slice of GroupKinds that were previously used by ExternalDns.
	// If the manifests used by app routing's external dns removes a GroupKind be sure to add
	// it here to clean it up
	OldExternalDnsGks []schema.GroupKind
)

Functions

func ExternalDnsResources added in v0.0.2

func ExternalDnsResources(conf *config.Config, self *appsv1.Deployment, externalDnsConfigs []*ExternalDnsConfig) []client.Object

ExternalDnsResources returns Kubernetes objects required for external dns

func GetTopLevelLabels added in v0.0.3

func GetTopLevelLabels() map[string]string

GetTopLevelLabels returns labels that every resource App Routing manages have

func NginxIngressClass added in v0.0.2

func NginxIngressClass(conf *config.Config, self *appsv1.Deployment, ingressConfig *NginxIngressConfig) []client.Object

NginxIngressClass returns an IngressClass for the provided configuration

func NginxIngressControllerResources added in v0.0.2

func NginxIngressControllerResources(conf *config.Config, self *appsv1.Deployment, ingressConfig *NginxIngressConfig) []client.Object

NginxIngressControllerResources returns Kubernetes objects required for the controller

func WithPreferSystemNodes

func WithPreferSystemNodes(spec *corev1.PodSpec) *corev1.PodSpec

Types

type ExternalDnsConfig added in v0.0.2

type ExternalDnsConfig struct {
	TenantId, Subscription, ResourceGroup string
	Provider                              Provider
	DnsZoneResourceIDs                    []string
}

ExternalDnsConfig defines configuration options for required resources for external dns

type NginxIngressConfig added in v0.0.2

type NginxIngressConfig struct {
	ControllerClass string         // controller class which is equivalent to controller field of IngressClass
	ResourceName    string         // name given to all resources
	IcName          string         // IngressClass name
	ServiceConfig   *ServiceConfig // service config that specifies details about the LB, defaults if nil
}

NginxIngressConfig defines configuration options for required resources for an Ingress

func (*NginxIngressConfig) PodLabels added in v0.0.2

func (n *NginxIngressConfig) PodLabels() map[string]string

type Provider added in v0.0.2

type Provider int
const (
	PublicProvider Provider = iota
	PrivateProvider
)

func (Provider) Labels added in v0.0.2

func (p Provider) Labels() map[string]string

func (Provider) ResourceName added in v0.0.2

func (p Provider) ResourceName() string

func (Provider) String added in v0.0.2

func (p Provider) String() string

type ServiceConfig added in v0.0.2

type ServiceConfig struct {
	IsInternal bool
	Hostname   string
}

ServiceConfig defines configuration options for required resources for a Service that goes with an Ingress

Jump to

Keyboard shortcuts

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