Documentation ¶
Index ¶
Constants ¶
View Source
const Type = "Nginx"
Type holds this controller type
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Reconciler ¶
type Reconciler struct {
// contains filtered or unexported fields
}
Reconciler holds required fields to reconcile Nginx resources
func NewReconciler ¶
func NewReconciler(cfg ReconcilerConfig) *Reconciler
NewReconciler returns a reconciler struct that brings the canary Ingress into the desired state
func (*Reconciler) Reconcile ¶
func (r *Reconciler) Reconcile(desiredWeight int32) error
Reconcile modifies Nginx Ingress resources to reach desired state
func (*Reconciler) Type ¶
func (r *Reconciler) Type() string
Type indicates this reconciler is an Nginx reconciler
type ReconcilerConfig ¶
type ReconcilerConfig struct { Rollout *v1alpha1.Rollout Client kubernetes.Interface Recorder record.EventRecorder ControllerKind schema.GroupVersionKind IngressLister extensionslisters.IngressLister }
ReconcilerConfig describes static configuration data for the nginx reconciler
Click to show internal directories.
Click to hide internal directories.