pkgManifests

package
v0.0.0-...-4234fb6 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: MIT Imports: 22 Imported by: 0

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

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

ExternalDnsResources returns Kubernetes objects required for external dns

func GetExampleConfigs

func GetExampleConfigs() []configStruct

func GetTopLevelLabels

func GetTopLevelLabels() map[string]string

GetTopLevelLabels returns labels that every resource App Routing manages have

func NewExternalDNSConfigMap

func NewExternalDNSConfigMap(conf *config.Config, externalDnsConfig *ExternalDnsConfig) (*corev1.ConfigMap, string)

func NginxIngressClass

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

NginxIngressClass returns an IngressClass for the provided configuration

func NginxIngressControllerResources

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

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

ExternalDnsConfig defines configuration options for required resources for external dns

type NginxIngressConfig

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

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

type Provider

type Provider int
const (
	PublicProvider Provider = iota
	PrivateProvider
)

func (Provider) Labels

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

func (Provider) ResourceName

func (p Provider) ResourceName() string

func (Provider) String

func (p Provider) String() string

type ServiceConfig

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