dns_controller

package
v0.0.0-...-9411139 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DomainDeletionNotFound string = "Sorry we unable to find this dns or you dont have access!"
	InvalidIPAddress       string = "Invalid IP Address"
	InvalidDomain          string = "Invalid Domain Name"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type UthoDNSReconciler

type UthoDNSReconciler struct {
	client.Client
	Scheme   *runtime.Scheme
	Recorder record.EventRecorder
}

UthoDNSReconciler reconciles a UthoDNS object

func (*UthoDNSReconciler) CreateDnsRecord

func (r *UthoDNSReconciler) CreateDnsRecord(ctx context.Context, record *appsv1alpha1.Record, dns *appsv1alpha1.UthoDNS, l *logr.Logger) error

func (*UthoDNSReconciler) CreateDnsRecords

func (r *UthoDNSReconciler) CreateDnsRecords(ctx context.Context, dns *appsv1alpha1.UthoDNS, l *logr.Logger) error

func (*UthoDNSReconciler) CreateDomain

func (r *UthoDNSReconciler) CreateDomain(ctx context.Context, dns *appsv1alpha1.UthoDNS, l *logr.Logger) error

func (*UthoDNSReconciler) CreateExternalResources

func (r *UthoDNSReconciler) CreateExternalResources(ctx context.Context, dns *appsv1alpha1.UthoDNS, l *logr.Logger) error

func (*UthoDNSReconciler) DNSRecordsOnwards

func (r *UthoDNSReconciler) DNSRecordsOnwards(ctx context.Context, dns *appsv1alpha1.UthoDNS, l *logr.Logger) error

func (*UthoDNSReconciler) DeleteDNSRecord

func (r *UthoDNSReconciler) DeleteDNSRecord(ctx context.Context, domain, id string, l *logr.Logger) error

func (*UthoDNSReconciler) Reconcile

func (r *UthoDNSReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the UthoDNS object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.16.3/pkg/reconcile

func (*UthoDNSReconciler) SetupWithManager

func (r *UthoDNSReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

func (*UthoDNSReconciler) UpdateDNSRecords

func (r *UthoDNSReconciler) UpdateDNSRecords(ctx context.Context, dns *appsv1alpha1.UthoDNS, l *logr.Logger) error

Jump to

Keyboard shortcuts

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