internal

package
v1.68.2 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(pipelineInfo *model.PipelineInfo, kubeUtil *kube.Kube, rdWatcher watcher.RadixDeploymentWatcher, featureProviders []FeatureProvider) *deployHandler

Types

type ExternalDNSFeatureProvider

type ExternalDNSFeatureProvider struct{}

ExternalDNSFeatureProvider handles external DNS configuration

func (*ExternalDNSFeatureProvider) IsEnabledForEnvironment

func (d *ExternalDNSFeatureProvider) IsEnabledForEnvironment(envName string, ra radixv1.RadixApplication, activeRd radixv1.RadixDeployment) bool

func (*ExternalDNSFeatureProvider) Mutate

func (d *ExternalDNSFeatureProvider) Mutate(target, source radixv1.RadixDeployment) error

type FeatureProvider

type FeatureProvider interface {
	// Check if feature is enabled for the specified environment by inspecting RadixApplication and active RadixDeployment (if set)
	IsEnabledForEnvironment(envName string, ra radixv1.RadixApplication, activeRd radixv1.RadixDeployment) bool

	// Mutates target with fields from source
	Mutate(target, source radixv1.RadixDeployment) error
}

FeatureProvider provides methods for checking and mutating Radix features

Jump to

Keyboard shortcuts

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