Documentation ¶
Index ¶
- Constants
- func CopyMap(m map[string]string) map[string]string
- func FindExtension(ctx context.Context, reader client.Reader, namespace string) (*extapi.Extension, error)
- func IsMigrating(ex *extensionsv1alpha1.Extension) bool
- func IsRestoring(ex *extensionsv1alpha1.Extension) bool
- func ShortenID(id string, maxlen int) string
- type Env
- func (e *Env) APIReader() client.Reader
- func (e *Env) Client() client.Client
- func (e *Env) Config() *config.DNSServiceConfig
- func (e *Env) CreateObject(ctx context.Context, obj client.Object, opts ...client.CreateOption) error
- func (e *Env) GetObject(ctx context.Context, key client.ObjectKey, obj client.Object) error
- func (e *Env) RestConfig() *rest.Config
- func (e *Env) UpdateObject(ctx context.Context, obj client.Object, opts ...client.UpdateOption) error
- type ShootDNSEntriesHelper
- func (h *ShootDNSEntriesHelper) Context() context.Context
- func (h *ShootDNSEntriesHelper) DeleteAll() error
- func (h *ShootDNSEntriesHelper) Extension() *v1alpha1.Extension
- func (h *ShootDNSEntriesHelper) ForceDeleteAll() error
- func (h *ShootDNSEntriesHelper) GetCluster() (*controller.Cluster, error)
- func (h *ShootDNSEntriesHelper) List() ([]dnsapi.DNSEntry, error)
- func (h *ShootDNSEntriesHelper) ShootDNSEntryMatchingLabel() (client.MatchingLabels, error)
- func (h *ShootDNSEntriesHelper) ShootID() (string, string, error)
- type StateHandler
- func (s *StateHandler) Delete(name string) error
- func (s *StateHandler) EnsureEntries(entries []dnsapi.DNSEntry) bool
- func (s *StateHandler) EnsureEntryDeleted(name string) bool
- func (s *StateHandler) EnsureEntryFor(entry *dnsapi.DNSEntry) bool
- func (s *StateHandler) Infof(msg string, args ...interface{})
- func (s *StateHandler) Refresh() (bool, error)
- func (s *StateHandler) ShootDNSEntriesHelper() *ShootDNSEntriesHelper
- func (s *StateHandler) StateItems() []*apis.DNSEntry
- func (s *StateHandler) Update(reason string) error
Constants ¶
View Source
const ( ANNOTATION_OPERATION = constants.GardenerOperation ANNOTATION_OPERATION_MIGRATE = constants.GardenerOperationMigrate ANNOTATION_OPERATION_RESTORE = constants.GardenerOperationRestore )
View Source
const ShootDNSEntryLabelKey = "gardener.cloud/shoot-id"
ShootDNSEntryLabelKey is the label key for DNS entries managed for shoots
Variables ¶
This section is empty.
Functions ¶
func FindExtension ¶
func IsMigrating ¶
func IsMigrating(ex *extensionsv1alpha1.Extension) bool
func IsRestoring ¶
func IsRestoring(ex *extensionsv1alpha1.Extension) bool
Types ¶
type Env ¶
func (*Env) Config ¶
func (e *Env) Config() *config.DNSServiceConfig
func (*Env) CreateObject ¶
func (*Env) RestConfig ¶
func (*Env) UpdateObject ¶
type ShootDNSEntriesHelper ¶ added in v1.9.0
type ShootDNSEntriesHelper struct {
// contains filtered or unexported fields
}
func NewShootDNSEntriesHelper ¶ added in v1.9.0
func (*ShootDNSEntriesHelper) Context ¶ added in v1.9.0
func (h *ShootDNSEntriesHelper) Context() context.Context
func (*ShootDNSEntriesHelper) DeleteAll ¶ added in v1.9.0
func (h *ShootDNSEntriesHelper) DeleteAll() error
func (*ShootDNSEntriesHelper) Extension ¶ added in v1.9.0
func (h *ShootDNSEntriesHelper) Extension() *v1alpha1.Extension
func (*ShootDNSEntriesHelper) ForceDeleteAll ¶ added in v1.40.0
func (h *ShootDNSEntriesHelper) ForceDeleteAll() error
ForceDeleteAll forces deletion of DNSEntries by removing the finalizers first. Warning: calling this method can result in leaked DNS record sets in the infrastructure and should only be used as last resort.
func (*ShootDNSEntriesHelper) GetCluster ¶ added in v1.9.0
func (h *ShootDNSEntriesHelper) GetCluster() (*controller.Cluster, error)
func (*ShootDNSEntriesHelper) List ¶ added in v1.9.0
func (h *ShootDNSEntriesHelper) List() ([]dnsapi.DNSEntry, error)
func (*ShootDNSEntriesHelper) ShootDNSEntryMatchingLabel ¶ added in v1.9.0
func (h *ShootDNSEntriesHelper) ShootDNSEntryMatchingLabel() (client.MatchingLabels, error)
type StateHandler ¶
type StateHandler struct { *Env // contains filtered or unexported fields }
func NewStateHandler ¶
func (*StateHandler) Delete ¶
func (s *StateHandler) Delete(name string) error
func (*StateHandler) EnsureEntries ¶
func (s *StateHandler) EnsureEntries(entries []dnsapi.DNSEntry) bool
func (*StateHandler) EnsureEntryDeleted ¶
func (s *StateHandler) EnsureEntryDeleted(name string) bool
func (*StateHandler) EnsureEntryFor ¶
func (s *StateHandler) EnsureEntryFor(entry *dnsapi.DNSEntry) bool
func (*StateHandler) Infof ¶
func (s *StateHandler) Infof(msg string, args ...interface{})
func (*StateHandler) Refresh ¶
func (s *StateHandler) Refresh() (bool, error)
func (*StateHandler) ShootDNSEntriesHelper ¶ added in v1.9.0
func (s *StateHandler) ShootDNSEntriesHelper() *ShootDNSEntriesHelper
func (*StateHandler) StateItems ¶
func (s *StateHandler) StateItems() []*apis.DNSEntry
func (*StateHandler) Update ¶
func (s *StateHandler) Update(reason string) error
Click to show internal directories.
Click to hide internal directories.