Documentation ¶
Index ¶
- Constants
- func AWSMachineTemplate(infraName, ami string, nodePool *hyperv1.NodePool, ...) (*capiaws.AWSMachineTemplate, string)
- func GetHostedClusterByName(ctx context.Context, c client.Client, namespace, name string) (*hyperv1.HostedCluster, error)
- func IgnitionUserDataSecret(namespace, name, payloadInputHash string) *corev1.Secret
- func MachineDeploymentComplete(deployment *capiv1.MachineDeployment) bool
- func RemoveStatusCondition(conditions *[]metav1.Condition, conditionType string)
- func TokenSecret(namespace, name, payloadInputHash string) *corev1.Secret
- type NodePoolReconciler
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 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 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 ¶
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 ¶
Types ¶
type NodePoolReconciler ¶
type NodePoolReconciler struct { client.Client ReleaseProvider releaseinfo.Provider // contains filtered or unexported fields }
func (*NodePoolReconciler) SetupWithManager ¶
func (r *NodePoolReconciler) SetupWithManager(mgr ctrl.Manager) error
Click to show internal directories.
Click to hide internal directories.