workload

package
v0.0.0-alpha.0....-6bdb9e9 Latest Latest
Warning

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

Go to latest
Published: May 20, 2026 License: Apache-2.0 Imports: 42 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,
	featureGateAccessor featuregates.FeatureGateAccess,
	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

func (*OpenShiftAPIServerWorkload) WorkloadDeleted

func (c *OpenShiftAPIServerWorkload) WorkloadDeleted(_ context.Context) (bool, string, error)

WorkloadDeleted indicates whether the delegate workload has been deleted or not. It returns a bool flag to indicate this, a string representing the workload's name and an error

For OAS this function is a no-op.

Jump to

Keyboard shortcuts

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