Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSystemReserved ¶
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
Click to show internal directories.
Click to hide internal directories.