dnszone

package
v0.0.0-...-2fbb0c7 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2019 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(mgr manager.Manager) error

Add creates a new DNSZone Controller and adds it to the Manager with default RBAC. The Manager will set fields on the Controller and Start it when the Manager is Started.

Types

type ReconcileDNSZone

type ReconcileDNSZone struct {
	client.Client
	// contains filtered or unexported fields
}

ReconcileDNSZone reconciles a DNSZone object

func (*ReconcileDNSZone) Reconcile

func (r *ReconcileDNSZone) Reconcile(request reconcile.Request) (reconcile.Result, error)

Reconcile reads that state of the cluster for a DNSZone object and makes changes based on the state read and what is in the DNSZone.Spec Automatically generate RBAC rules to allow the Controller to read and write DNSZones +kubebuilder:rbac:groups=hive.openshift.io,resources=dnszones,verbs=get;list;watch;create;update;patch;delete

type ZoneReconciler

type ZoneReconciler struct {
	// contains filtered or unexported fields
}

ZoneReconciler manages getting the desired state, getting the current state and reconciling the two.

func NewZoneReconciler

func NewZoneReconciler(
	desiredState *hivev1.DNSZone,
	kubeClient client.Client,
	logger log.FieldLogger,
	awsClient awsclient.Client,
) (*ZoneReconciler, error)

NewZoneReconciler creates a new ZoneReconciler object. A new ZoneReconciler is expected to be created for each controller sync.

func (*ZoneReconciler) Reconcile

func (zr *ZoneReconciler) Reconcile() error

Reconcile attempts to make the current state reflect the desired state. It does this idempotently.

Jump to

Keyboard shortcuts

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