dnsrecord

package
v1.37.6 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2022 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultInterval is the default interval for retry operations.
	DefaultInterval = 5 * time.Second
	// DefaultSevereThreshold is the default threshold until an error reported by another component is treated as
	// 'severe'.
	DefaultSevereThreshold = 15 * time.Second
	// DefaultTimeout is the default timeout and defines how long Gardener should wait for a successful reconciliation
	// of a DNSRecord resource.
	DefaultTimeout = 2 * time.Minute
)

Variables

View Source
var TimeNow = time.Now

TimeNow returns the current time. Exposed for testing.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	component.DeployMigrateWaiter
	SetRecordType(extensionsv1alpha1.DNSRecordType)
	SetValues([]string)
}

Interface is an interface for managing DNSRecords

func New

func New(
	logger logrus.FieldLogger,
	client client.Client,
	values *Values,
	waitInterval time.Duration,
	waitSevereThreshold time.Duration,
	waitTimeout time.Duration,
) Interface

New creates a new instance that implements component.DeployMigrateWaiter.

type Values

type Values struct {
	// Namespace is the Shoot namespace in the seed.
	Namespace string
	// Name is the name of the DNSRecord resource. Commonly the Shoot's name + the purpose of the DNS record.
	Name string
	// SecretName is the name of the secret referenced by the DNSRecord resource.
	SecretName string
	// ReconcileOnce specifies that the DNSRecord resource should only be created and never reconciled after that again.
	// However, on Deploy it is still updated with the timestamp annotation.
	// This mode is used for owner DNS records.
	ReconcileOnce bool
	// Type is the type of the DNSRecord provider.
	Type string
	// SecretData is the secret data of the DNSRecord (containing provider credentials, etc.)
	SecretData map[string][]byte
	// Zone is the DNS hosted zone of the DNSRecord.
	Zone *string
	// DNSName is the fully qualified domain name of the DNSRecord.
	DNSName string
	// RecordType is the record type of the DNSRecord.
	RecordType extensionsv1alpha1.DNSRecordType
	// Values is the list of values of the DNSRecord.
	Values []string
	// TTL is the time to live in seconds of the DNSRecord.
	TTL *int64
}

Values contains the values used to create DNSRecord resources.

Directories

Path Synopsis
Package dnsrecord is a generated GoMock package.
Package dnsrecord is a generated GoMock package.

Jump to

Keyboard shortcuts

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