Documentation ¶
Index ¶
- Constants
- type IngressWrapper
- type Reconciler
- func (r *Reconciler) RemoveManagedRoutes() error
- func (r *Reconciler) SetHeaderRoute(headerRouting *v1alpha1.SetHeaderRoute) error
- func (r *Reconciler) SetMirrorRoute(setMirrorRoute *v1alpha1.SetMirrorRoute) error
- func (r *Reconciler) SetWeight(desiredWeight int32, additionalDestinations ...v1alpha1.WeightDestination) error
- func (r *Reconciler) SetWeightPerIngress(desiredWeight int32, ingresses []string) error
- func (r *Reconciler) Type() string
- func (r *Reconciler) UpdateHash(canaryHash, stableHash string, ...) error
- func (r *Reconciler) VerifyWeight(desiredWeight int32, additionalDestinations ...v1alpha1.WeightDestination) (*bool, error)
- type ReconcilerConfig
Constants ¶
View Source
const Type = "Nginx"
Type holds this controller type
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IngressWrapper ¶ added in v1.2.0
type IngressWrapper interface { Get(ctx context.Context, namespace, name string, opts metav1.GetOptions) (*ingressutil.Ingress, error) GetCached(namespace, name string) (*ingressutil.Ingress, error) Patch(ctx context.Context, namespace, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (*ingressutil.Ingress, error) Create(ctx context.Context, namespace string, ingress *ingressutil.Ingress, opts metav1.CreateOptions) (*ingressutil.Ingress, error) }
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) RemoveManagedRoutes ¶ added in v1.3.0
func (r *Reconciler) RemoveManagedRoutes() error
func (*Reconciler) SetHeaderRoute ¶ added in v1.3.0
func (r *Reconciler) SetHeaderRoute(headerRouting *v1alpha1.SetHeaderRoute) error
func (*Reconciler) SetMirrorRoute ¶ added in v1.3.0
func (r *Reconciler) SetMirrorRoute(setMirrorRoute *v1alpha1.SetMirrorRoute) error
func (*Reconciler) SetWeight ¶ added in v1.0.0
func (r *Reconciler) SetWeight(desiredWeight int32, additionalDestinations ...v1alpha1.WeightDestination) error
SetWeight modifies Nginx Ingress resources to reach desired state
func (*Reconciler) SetWeightPerIngress ¶ added in v1.5.0
func (r *Reconciler) SetWeightPerIngress(desiredWeight int32, ingresses []string) error
SetWeightMultiIngress modifies each Nginx Ingress resource to reach desired state in the scenario of a rollout having multiple Ngnix Ingress resources.
func (*Reconciler) Type ¶
func (r *Reconciler) Type() string
Type indicates this reconciler is an Nginx reconciler
func (*Reconciler) UpdateHash ¶ added in v1.0.0
func (r *Reconciler) UpdateHash(canaryHash, stableHash string, additionalDestinations ...v1alpha1.WeightDestination) error
UpdateHash informs a traffic routing reconciler about new canary/stable pod hashes
func (*Reconciler) VerifyWeight ¶ added in v1.0.0
func (r *Reconciler) VerifyWeight(desiredWeight int32, additionalDestinations ...v1alpha1.WeightDestination) (*bool, error)
type ReconcilerConfig ¶
type ReconcilerConfig struct { Rollout *v1alpha1.Rollout Client kubernetes.Interface Recorder record.EventRecorder ControllerKind schema.GroupVersionKind IngressWrapper IngressWrapper }
ReconcilerConfig describes static configuration data for the nginx reconciler
Click to show internal directories.
Click to hide internal directories.