nodepool

package
v0.1.20 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: Apache-2.0 Imports: 76 Imported by: 1

Documentation

Index

Constants

View Source
const (
	EC2VolumeDefaultSize int64  = 16
	EC2VolumeDefaultType string = "gp3"
)
View Source
const (
	TokenSecretTokenGenerationTime       = "hypershift.openshift.io/last-token-generation-time"
	TokenSecretReleaseKey                = "release"
	TokenSecretTokenKey                  = "token"
	TokenSecretPullSecretHashKey         = "pull-secret-hash"
	TokenSecretConfigKey                 = "config"
	TokenSecretAnnotation                = "hypershift.openshift.io/ignition-config"
	TokenSecretIgnitionReachedAnnotation = "hypershift.openshift.io/ignition-reached"
	TokenSecretNodePoolUpgradeType       = "hypershift.openshift.io/node-pool-upgrade-type"
)

Variables

This section is empty.

Functions

func FindStatusCondition

func FindStatusCondition(conditions []hyperv1.NodePoolCondition, conditionType string) *hyperv1.NodePoolCondition

FindStatusCondition finds the conditionType in conditions.

func GetHostedClusterByName

func GetHostedClusterByName(ctx context.Context, c client.Client, namespace, name string) (*hyperv1.HostedCluster, error)

GetHostedClusterByName finds and return a HostedCluster object using the specified params.

func IBMPowerVSImage

func IBMPowerVSImage(namespace, name string) *capipowervs.IBMPowerVSImage

func IgnitionUserDataSecret

func IgnitionUserDataSecret(namespace, name, payloadInputHash string) *corev1.Secret

func MachineDeploymentComplete

func MachineDeploymentComplete(deployment *capiv1.MachineDeployment) bool

MachineDeploymentComplete considers a MachineDeployment to be complete once all of its desired replicas are updated and available, and no old machines are running.

func MustAsset

func MustAsset(name string) string

func PerformanceProfileConfigMap added in v0.1.20

func PerformanceProfileConfigMap(namespace, name string) *corev1.ConfigMap

func SetStatusCondition

func SetStatusCondition(conditions *[]hyperv1.NodePoolCondition, newCondition hyperv1.NodePoolCondition)

SetStatusCondition sets the corresponding condition in conditions to newCondition. conditions must be non-nil.

  1. if the condition of the specified type already exists (all fields of the existing condition are updated to newCondition, LastTransitionTime is set to now if the new status differs from the old status)
  2. if a condition of the specified type does not exist (LastTransitionTime is set to now() if unset, and newCondition is appended)

func TokenSecret

func TokenSecret(namespace, name, payloadInputHash string) *corev1.Secret

func TunedConfigMap added in v0.1.20

func TunedConfigMap(namespace, name string) *corev1.ConfigMap

Types

type CPOCapabilities

type CPOCapabilities struct {
	DecompressAndDecodeConfig     bool
	CreateDefaultAWSSecurityGroup bool
}

type NodePoolReconciler

type NodePoolReconciler struct {
	client.Client

	ReleaseProvider releaseinfo.Provider

	upsert.CreateOrUpdateProvider
	HypershiftOperatorImage string
	ImageMetadataProvider   supportutil.ImageMetadataProvider
	KubevirtInfraClients    kvinfra.KubevirtInfraClientMap
	// contains filtered or unexported fields
}

func (*NodePoolReconciler) Reconcile

func (r *NodePoolReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*NodePoolReconciler) SetupWithManager

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

type NotReadyError

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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