Documentation ¶
Index ¶
- Variables
- type DynamicUpdate
- func (d DynamicUpdate) Merge(origin string) *file.Zone
- func (d DynamicUpdate) Name() string
- func (d *DynamicUpdate) NewManager(cfg *rest.Config) error
- func (d DynamicUpdate) OnShutdown() error
- func (d *DynamicUpdate) Ready() bool
- func (r *DynamicUpdate) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (d DynamicUpdate) Reload(zoneName string, t *transfer.Transfer) error
- func (d *DynamicUpdate) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg) (int, error)
- func (r *DynamicUpdate) SetupWithManager(mgr ctrl.Manager) error
- func (d DynamicUpdate) Transfer(zone string, serial uint32) (<-chan []dns.RR, error)
- type Zones
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Cfg = ctrl.GetConfigOrDie()
)
Functions ¶
This section is empty.
Types ¶
type DynamicUpdate ¶
type DynamicUpdate struct { // Next plugin in the chain. Next plugin.Handler // Zones holds the configuration for the zones handled by this plugin. Zones *Zones // Namspaces holds the configuration for the namespaces handled by this plugin. Namespaces []string // K8sClient is the client used to communicate with the kubernetes API server. K8sClient client.Client // Client client.Client // Scheme Scheme *runtime.Scheme // contains filtered or unexported fields }
DynamicUpdate is a plugin that implements RFC2136.
func (DynamicUpdate) Merge ¶
func (d DynamicUpdate) Merge(origin string) *file.Zone
Merge the dynamic zone with the static zone. Return a new zone.
func (DynamicUpdate) Name ¶
func (d DynamicUpdate) Name() string
func (*DynamicUpdate) NewManager ¶
func (d *DynamicUpdate) NewManager(cfg *rest.Config) error
func (DynamicUpdate) OnShutdown ¶
func (d DynamicUpdate) OnShutdown() error
func (*DynamicUpdate) Ready ¶
func (d *DynamicUpdate) Ready() bool
Ready implements the Ready interface.
func (*DynamicUpdate) Reconcile ¶
+kubebuilder:rbac:groups=rfc1035.ksdns.io,resources=zones,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=rfc1035.ksdns.io,resources=zones/status,verbs=get;update;patch +kubebuilder:rbac:groups=rfc1035.ksdns.io,resources=zones/finalizers,verbs=update
func (DynamicUpdate) Reload ¶
func (d DynamicUpdate) Reload(zoneName string, t *transfer.Transfer) error
func (*DynamicUpdate) ServeDNS ¶
func (d *DynamicUpdate) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg) (int, error)
ServeDNS implements the plugin.Handler interface.
func (*DynamicUpdate) SetupWithManager ¶
func (r *DynamicUpdate) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
Click to show internal directories.
Click to hide internal directories.