dnscontroller

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2023 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	UDP5300 = corev1.ServicePort{
		Name:        "5300udp",
		Protocol:    corev1.ProtocolUDP,
		AppProtocol: nil,
		Port:        5300,
		TargetPort: intstr.IntOrString{
			Type:   intstr.Int,
			IntVal: 5300,
		},
	}
	TCP5300 = corev1.ServicePort{
		Name:        "5300tcp",
		Protocol:    corev1.ProtocolTCP,
		AppProtocol: nil,
		Port:        5300,
		TargetPort: intstr.IntOrString{
			Type:   intstr.Int,
			IntVal: 5300,
		},
	}
)

Functions

This section is empty.

Types

type DNS

type DNS struct {
	Domains    []Domain `json:"domains"`
	DNSDomain  string   `json:"dnsDomain"`
	CoreDNSVIP string   `json:"coreDNSVIP"` // coredns service ip
}

type DNSReconciler

type DNSReconciler struct {
	DomainLister  listerv1.DomainLister
	DomainWriter  cluster.DNSWriter
	ClusterLister listerv1.ClusterLister
	// contains filtered or unexported fields
}

func (*DNSReconciler) Reconcile

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

func (*DNSReconciler) SetupWithManager

func (r *DNSReconciler) SetupWithManager(mgr manager.Manager, cache informers.InformerCache) error

type Domain

type Domain struct {
	Name      string            `json:"name"`
	A         []Record          `json:"a"`
	Extensive []ExtensiveRecord `json:"extensive"`
}

type ExRecord

type ExRecord struct {
	RR  string   `json:"rr"`
	IPs []string `json:"ip"`
}

type ExtensiveRecord

type ExtensiveRecord struct {
	ExRecord `json:",inline"`
	Name     string `json:"name"`
}

type Record

type Record struct {
	RR string `json:"rr"`
	IP string `json:"ip"`
}

Jump to

Keyboard shortcuts

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