nodepool

package
v0.0.0-...-949eaf4 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2021 License: Apache-2.0 Imports: 48 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TokenSecretReleaseKey = "release"
	TokenSecretTokenKey   = "token"
	TokenSecretConfigKey  = "config"
	TokenSecretAnnotation = "hypershift.openshift.io/ignition-config"
)

Variables

This section is empty.

Functions

func AWSMachineTemplate

func AWSMachineTemplate(infraName, ami string, nodePool *hyperv1.NodePool, controlPlaneNamespace string) (*capiaws.AWSMachineTemplate, string)

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 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 RemoveStatusCondition

func RemoveStatusCondition(conditions *[]metav1.Condition, conditionType string)

TODO(alberto): user core apimachinery func once we update deps to fetch https://github.com/kubernetes/apimachinery/commit/f0c829d684eec47c6334ae69941224e1c70f16d6#diff-e3bc08d3d017ceff366d1c1c6f16c745e576e41f711a482a08f97006d306bf2a RemoveStatusCondition removes the corresponding conditionType from conditions. conditions must be non-nil.

func TokenSecret

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

Types

type NodePoolReconciler

type NodePoolReconciler struct {
	client.Client

	ReleaseProvider releaseinfo.Provider
	// 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

Jump to

Keyboard shortcuts

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