workaround

package
v0.0.0-...-823d357 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2021 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSystemReserved

func NewSystemReserved(log *logrus.Entry, mcocli mcoclient.Interface, dh dynamichelper.Interface) *systemreserved

Types

type Workaround

type Workaround interface {
	Name() string
	// IsRequired returns true when the clusterversion is indicates that the cluster
	// is effected by the bug that the workaround fixes.
	IsRequired(clusterVersion *version.Version) bool
	// Ensure will apply the workaround to the cluster.
	Ensure(context.Context) error
	// Remove will remove the workaround from the cluster
	// (in the case when IsRequired returns false).
	Remove(context.Context) error
}

Workaround is the interface for each Workaround

func NewIfReload

func NewIfReload(log *logrus.Entry, cli kubernetes.Interface) Workaround

type WorkaroundReconciler

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

WorkaroundReconciler the point of the workaround controller is to apply workarounds that we have unitl upstream fixes are available.

func NewReconciler

func NewReconciler(log *logrus.Entry, kubernetescli kubernetes.Interface, configcli configclient.Interface, mcocli mcoclient.Interface, arocli aroclient.Interface, restConfig *rest.Config) *WorkaroundReconciler

func (*WorkaroundReconciler) Reconcile

func (r *WorkaroundReconciler) Reconcile(ctx context.Context, request ctrl.Request) (ctrl.Result, error)

Reconcile makes sure that the workarounds are applied or removed as per the OpenShift version.

func (*WorkaroundReconciler) SetupWithManager

func (r *WorkaroundReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager setup our manager

Jump to

Keyboard shortcuts

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