Documentation ¶
Index ¶
Constants ¶
const (
CONFIG_FILE = "/etc/ddns-config/ddns-config.yaml"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DdnsRecordReconciler ¶
DdnsRecordReconciler reconciles a DdnsRecord object
func (*DdnsRecordReconciler) Reconcile ¶
func (r *DdnsRecordReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
DDNS Record Reconciler
1. Query for public IP (the IP we request from i.e. NAT gateway) 2. TODO(mschenck): Check what the record currently resolves to 3. Update DNS Zone Record to public IP
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 DdnsRecord 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.14.1/pkg/reconcile
func (*DdnsRecordReconciler) SetupWithManager ¶
func (r *DdnsRecordReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.