dns

package
v0.0.0-...-e7c744b Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const IntegratedServiceName = "dns"
View Source
const ReleaseName = "dns"

Variables

This section is empty.

Functions

This section is empty.

Types

type ChartConfigBase

type ChartConfigBase struct {
	Chart   string
	Version string
}

type ChartsConfig

type ChartsConfig struct {
	ExternalDNS ExternalDNSChartConfig
}

type ClusterOrgIDGetter

type ClusterOrgIDGetter interface {
	GetClusterOrgID(ctx context.Context, clusterID uint) (uint, error)
}

ClusterOrgIDGetter can be used to get the ID of the organization a cluster belongs to

type ClusterUIDGetter

type ClusterUIDGetter interface {
	GetClusterUID(ctx context.Context, clusterID uint) (string, error)
}

ClusterUIDGetter can be used to get the UID of a cluster

type Config

type Config struct {
	Namespace      string
	BaseDomain     string
	ProviderSecret string
	Charts         ChartsConfig
}

Config contains configuration for the dns integrated service.

func (Config) Validate

func (c Config) Validate() error

type ExternalDNSChartConfig

type ExternalDNSChartConfig struct {
	ChartConfigBase `mapstructure:",squash"`
	Values          ExternalDNSChartValuesConfig
}

type ExternalDNSChartValuesConfig

type ExternalDNSChartValuesConfig struct {
	Image ExternalDNSChartValuesImageConfig `chartConfig:"image"`
}

type ExternalDNSChartValuesImageConfig

type ExternalDNSChartValuesImageConfig struct {
	Registry   string `chartConfig:"registry"`
	Repository string `chartConfig:"repository"`
	Tag        string `chartConfig:"tag"`
}

type IntegratedServiceManager

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

IntegratedServiceManager implements the DNS integrated service manager

func NewIntegratedServicesManager

func NewIntegratedServicesManager(clusterOrgIDGetter ClusterOrgIDGetter, clusterUIDGetter ClusterUIDGetter, config Config) IntegratedServiceManager

NewIntegratedServicesManager returns a DNS integrated service manager

func (IntegratedServiceManager) GetOutput

GetOutput returns the DNS integrated service's output

func (IntegratedServiceManager) Name

Name returns the integrated service's name

func (IntegratedServiceManager) PrepareSpec

PrepareSpec makes certain preparations to the spec before it's sent to be applied

func (IntegratedServiceManager) ValidateSpec

ValidateSpec validates a DNS integrated service specification

type IntegratedServiceOperator

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

IntegratedServiceOperator implements the DNS integrated service operator

func MakeIntegratedServiceOperator

func MakeIntegratedServiceOperator(
	clusterGetter integratedserviceadapter.ClusterGetter,
	clusterService integratedservices.ClusterService,
	helmService services.HelmService,
	logger common.Logger,
	orgDomainService OrgDomainService,
	secretStore services.SecretStore,
	config Config,
) IntegratedServiceOperator

MakeIntegratedServiceOperator returns a DNS integrated service operator

func (IntegratedServiceOperator) Apply

Apply applies the provided specification to the integrated service

func (IntegratedServiceOperator) Deactivate

Deactivate deactivates the integrated service

func (IntegratedServiceOperator) Name

Name returns the name of the DNS integrated service

type Operator

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

func NewDNSISOperator

func NewDNSISOperator(
	clusterGetter integratedserviceadapter.ClusterGetter,
	clusterService integratedservices.ClusterService,
	orgDomainService OrgDomainService,
	secretStore services.SecretStore,
	config Config,
	logger common.Logger,
) Operator

func (Operator) Apply

func (Operator) Deactivate

func (o Operator) Deactivate(ctx context.Context, clusterID uint, _ integratedservices.IntegratedServiceSpec) error

func (Operator) Name

func (o Operator) Name() string

type OrgDomainService

type OrgDomainService interface {
	// EnsureClusterDomain checks for the org related hosted zone, triggers the creation of it if required
	EnsureOrgDomain(ctx context.Context, clusterID uint) error
}

OrgDomainService interface for abstracting DNS provider related operations intended to be used in conjunction with the autoDNS integrated service in pipeline

type OutputResolver

type OutputResolver struct{}

type SecretMapper

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

func NewSecretMapper

func NewSecretMapper(secretStore services.SecretStore) *SecretMapper

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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