Documentation ¶
Index ¶
- Constants
- func FindStatusCondition(conditions []hyperv1.NodePoolCondition, conditionType string) *hyperv1.NodePoolCondition
- func GetHostedClusterByName(ctx context.Context, c client.Client, namespace, name string) (*hyperv1.HostedCluster, error)
- func IBMPowerVSImage(namespace, name string) *capipowervs.IBMPowerVSImage
- func IgnitionUserDataSecret(namespace, name, payloadInputHash string) *corev1.Secret
- func MachineDeploymentComplete(deployment *capiv1.MachineDeployment) bool
- func MustAsset(name string) string
- func PerformanceProfileConfigMap(namespace, name string) *corev1.ConfigMap
- func SetStatusCondition(conditions *[]hyperv1.NodePoolCondition, ...)
- func TokenSecret(namespace, name, payloadInputHash string) *corev1.Secret
- func TunedConfigMap(namespace, name string) *corev1.ConfigMap
- type CPOCapabilities
- type NodePoolReconciler
- type NotReadyError
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 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 PerformanceProfileConfigMap ¶ added in v0.1.20
func SetStatusCondition ¶
func SetStatusCondition(conditions *[]hyperv1.NodePoolCondition, newCondition hyperv1.NodePoolCondition)
SetStatusCondition sets the corresponding condition in conditions to newCondition. conditions must be non-nil.
- 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)
- if a condition of the specified type does not exist (LastTransitionTime is set to now() if unset, and newCondition is appended)
func TokenSecret ¶
func TunedConfigMap ¶ added in v0.1.20
Types ¶
type CPOCapabilities ¶
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) SetupWithManager ¶
func (r *NodePoolReconciler) SetupWithManager(mgr ctrl.Manager) error
type NotReadyError ¶
type NotReadyError struct {
// contains filtered or unexported fields
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.