workload

package
v0.0.0-alpha.0....-7401391 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: Apache-2.0 Imports: 39 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OpenShiftAPIServerWorkload

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

OpenShiftAPIServerWorkload is a struct that holds necessary data to install OpenShiftAPIServer

func NewOpenShiftAPIServerWorkload

func NewOpenShiftAPIServerWorkload(
	operatorClient v1helpers.OperatorClient,
	operatorConfigClient operatorv1client.OpenShiftAPIServersGetter,
	openshiftConfigClient openshiftconfigclientv1.ConfigV1Interface,
	clusterVersionLister configlisterv1.ClusterVersionLister,
	countNodes nodeCountFunc,
	ensureAtMostOnePodPerNode ensureAtMostOnePodPerNodeFunc,
	targetNamespace string,
	targetImagePullSpec string,
	operatorImagePullSpec string,
	kubeClient kubernetes.Interface,
	versionRecorder status.VersionGetter,
) *OpenShiftAPIServerWorkload

NewOpenShiftAPIServerWorkload creates new OpenShiftAPIServerWorkload struct

func (*OpenShiftAPIServerWorkload) PreconditionFulfilled

func (c *OpenShiftAPIServerWorkload) PreconditionFulfilled(ctx context.Context) (bool, error)

PreconditionFulfilled is a function that indicates whether all prerequisites are met and we can Sync.

func (*OpenShiftAPIServerWorkload) Sync

Sync takes care of synchronizing (not upgrading) the thing we're managing. most of the time the sync method will be good for a large span of minor versions

Jump to

Keyboard shortcuts

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