Documentation ¶
Index ¶
- Constants
- func GetMappingGVR() schema.GroupVersionResource
- func NewDynamicClient(di dynamic.Interface, namespace string) dynamic.ResourceInterface
- type ClientInterface
- 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) 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 TraefikServiceUpdateError = "TraefikServiceUpdateError"
View Source
const Type = "Traefik"
Type holds this controller type
Variables ¶
This section is empty.
Functions ¶
func GetMappingGVR ¶
func GetMappingGVR() schema.GroupVersionResource
func NewDynamicClient ¶
func NewDynamicClient(di dynamic.Interface, namespace string) dynamic.ResourceInterface
Types ¶
type ClientInterface ¶
type ClientInterface interface { Get(ctx context.Context, name string, options metav1.GetOptions, subresources ...string) (*unstructured.Unstructured, error) Update(ctx context.Context, obj *unstructured.Unstructured, options metav1.UpdateOptions, subresources ...string) (*unstructured.Unstructured, error) }
type Reconciler ¶
type Reconciler struct { Rollout *v1alpha1.Rollout Client ClientInterface Recorder record.EventRecorder }
func NewReconciler ¶
func NewReconciler(cfg *ReconcilerConfig) *Reconciler
func (*Reconciler) RemoveManagedRoutes ¶
func (r *Reconciler) RemoveManagedRoutes() error
func (*Reconciler) SetHeaderRoute ¶
func (r *Reconciler) SetHeaderRoute(headerRouting *v1alpha1.SetHeaderRoute) error
func (*Reconciler) SetMirrorRoute ¶
func (r *Reconciler) SetMirrorRoute(setMirrorRoute *v1alpha1.SetMirrorRoute) error
func (*Reconciler) SetWeight ¶
func (r *Reconciler) SetWeight(desiredWeight int32, additionalDestinations ...v1alpha1.WeightDestination) error
func (*Reconciler) Type ¶
func (r *Reconciler) Type() string
func (*Reconciler) UpdateHash ¶
func (r *Reconciler) UpdateHash(canaryHash, stableHash string, additionalDestinations ...v1alpha1.WeightDestination) error
func (*Reconciler) VerifyWeight ¶
func (r *Reconciler) VerifyWeight(desiredWeight int32, additionalDestinations ...v1alpha1.WeightDestination) (*bool, error)
type ReconcilerConfig ¶
type ReconcilerConfig struct { Rollout *v1alpha1.Rollout Client ClientInterface Recorder record.EventRecorder }
Click to show internal directories.
Click to hide internal directories.