controllers

package
v0.0.0-...-24a8f2d Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2022 License: Apache-2.0 Imports: 43 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	HostedClusterResource = "hostedclusters"
	NodePoolResource      = "nodepools"
	Reason                = "reason"
	StatusFlag            = "status"
	Message               = "message"
	Progress              = "progress"
	OwnerReference        = "owner"
)

variables defined for manifestwork status sync

Functions

func ScaffoldAWSHostedClusterSpec

func ScaffoldAWSHostedClusterSpec(hyd *hypdeployment.HypershiftDeployment, infraOut *aws.CreateInfraOutput)

func ScaffoldAWSNodePoolSpec

func ScaffoldAWSNodePoolSpec(hyd *hypdeployment.HypershiftDeployment, infraOut *aws.CreateInfraOutput)

func ScaffoldAzureCloudCredential

func ScaffoldAzureCloudCredential(hyd *hypdeployment.HypershiftDeployment, creds *fixtures.AzureCreds) *corev1.Secret

func ScaffoldAzureHostedClusterSpec

func ScaffoldAzureHostedClusterSpec(hyd *hypdeployment.HypershiftDeployment, infraOut *azure.CreateInfraOutput)

func ScaffoldAzureNodePoolSpec

func ScaffoldAzureNodePoolSpec(hyd *hypdeployment.HypershiftDeployment, infraOut *azure.CreateInfraOutput)

func ScaffoldNodePool

func ScaffoldNodePool(hyd *hypdeployment.HypershiftDeployment, npName string, npSpec map[string]interface{}) *unstructured.Unstructured

func ScaffoldNodePoolSpec

func ScaffoldNodePoolSpec(hyd *hypdeployment.HypershiftDeployment, infraOut *aws.CreateInfraOutput)

Types

type AwsCreateIAM

type AwsCreateIAM func(ctx context.Context, client crclient.Client) (*aws.CreateIAMOutput, error)

type AwsCreateInfra

type AwsCreateInfra func(ctx context.Context, l logr.Logger) (*aws.CreateInfraOutput, error)

type AwsDestroyIAM

type AwsDestroyIAM func(ctx context.Context) error

type AwsDestroyInfra

type AwsDestroyInfra func(ctx context.Context) error

type AzureCreateInfra

type AzureCreateInfra func(ctx context.Context, l logr.Logger) (*azure.CreateInfraOutput, error)

type AzureDestroyInfra

type AzureDestroyInfra func(ctx context.Context) error

type DefaultInfraHandler

type DefaultInfraHandler struct{}

func (*DefaultInfraHandler) AwsIAMCreator

func (h *DefaultInfraHandler) AwsIAMCreator(awsKey, awsSecretKey, region, infraID, s3BucketName, s3Region, privateZoneID, publicZoneID, localZoneID string) AwsCreateIAM

func (*DefaultInfraHandler) AwsIAMDestroyer

func (h *DefaultInfraHandler) AwsIAMDestroyer(awsKey, awsSecretKey, region, infraID string) AwsDestroyIAM

func (*DefaultInfraHandler) AwsInfraCreator

func (h *DefaultInfraHandler) AwsInfraCreator(awsKey, awsSecretKey, region, infraID, name, baseDomain string, zones []string) AwsCreateInfra

func (*DefaultInfraHandler) AwsInfraDestroyer

func (h *DefaultInfraHandler) AwsInfraDestroyer(awsKey, awsSecretKey, region, infraID, name, baseDomain string) AwsDestroyInfra

func (*DefaultInfraHandler) AzureInfraCreator

func (h *DefaultInfraHandler) AzureInfraCreator(name, baseDomain, location, infraID string, credentials *fixtures.AzureCreds) AzureCreateInfra

func (*DefaultInfraHandler) AzureInfraDestroyer

func (h *DefaultInfraHandler) AzureInfraDestroyer(name, location, infraID string, credentials *fixtures.AzureCreds) AzureDestroyInfra

type FakeInfraHandler

type FakeInfraHandler struct{}

func (*FakeInfraHandler) AwsIAMCreator

func (h *FakeInfraHandler) AwsIAMCreator(awsKey, awsSecretKey, region, infraID, s3BucketName, s3Region, privateZoneID, publicZoneID, localZoneID string) AwsCreateIAM

func (*FakeInfraHandler) AwsIAMDestroyer

func (h *FakeInfraHandler) AwsIAMDestroyer(awsKey, awsSecretKey, region, infraID string) AwsDestroyIAM

func (*FakeInfraHandler) AwsInfraCreator

func (h *FakeInfraHandler) AwsInfraCreator(awsKey, awsSecretKey, region, infraID, name, baseDomain string, zones []string) AwsCreateInfra

func (*FakeInfraHandler) AwsInfraDestroyer

func (h *FakeInfraHandler) AwsInfraDestroyer(awsKey, awsSecretKey, region, infraID, name, baseDomain string) AwsDestroyInfra

func (*FakeInfraHandler) AzureInfraCreator

func (h *FakeInfraHandler) AzureInfraCreator(name, baseDomain, location, infraID string, credentials *fixtures.AzureCreds) AzureCreateInfra

func (*FakeInfraHandler) AzureInfraDestroyer

func (h *FakeInfraHandler) AzureInfraDestroyer(name, location, infraID string, credentials *fixtures.AzureCreds) AzureDestroyInfra

type FakeInfraHandlerFailure

type FakeInfraHandlerFailure struct{}

func (*FakeInfraHandlerFailure) AwsIAMCreator

func (h *FakeInfraHandlerFailure) AwsIAMCreator(awsKey, awsSecretKey, region, infraID, s3BucketName, s3Region, privateZoneID, publicZoneID, localZoneID string) AwsCreateIAM

func (*FakeInfraHandlerFailure) AwsIAMDestroyer

func (h *FakeInfraHandlerFailure) AwsIAMDestroyer(awsKey, awsSecretKey, region, infraID string) AwsDestroyIAM

func (*FakeInfraHandlerFailure) AwsInfraCreator

func (h *FakeInfraHandlerFailure) AwsInfraCreator(awsKey, awsSecretKey, region, infraID, name, baseDomain string, zones []string) AwsCreateInfra

func (*FakeInfraHandlerFailure) AwsInfraDestroyer

func (h *FakeInfraHandlerFailure) AwsInfraDestroyer(awsKey, awsSecretKey, region, infraID, name, baseDomain string) AwsDestroyInfra

func (*FakeInfraHandlerFailure) AzureInfraCreator

func (h *FakeInfraHandlerFailure) AzureInfraCreator(name, baseDomain, location, infraID string, credentials *fixtures.AzureCreds) AzureCreateInfra

func (*FakeInfraHandlerFailure) AzureInfraDestroyer

func (h *FakeInfraHandlerFailure) AzureInfraDestroyer(name, location, infraID string, credentials *fixtures.AzureCreds) AzureDestroyInfra

type HypershiftDeploymentReconciler

type HypershiftDeploymentReconciler struct {
	client.Client
	DynamicClient dynamic.Interface
	Scheme        *runtime.Scheme

	Log logr.Logger

	InfraHandler            InfraHandler
	ValidateClusterSecurity bool
	// contains filtered or unexported fields
}

HypershiftDeploymentReconciler reconciles a HypershiftDeployment object

func (*HypershiftDeploymentReconciler) Reconcile

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the HypershiftDeployment object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.10.0/pkg/reconcile

func (*HypershiftDeploymentReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type InfraHandler

type InfraHandler interface {
	AwsInfraCreator(awsKey, awsSecretKey, region, infraID, name, baseDomain string, zones []string) AwsCreateInfra
	AwsInfraDestroyer(awsKey, awsSecretKey, region, infraID, name, baseDomain string) AwsDestroyInfra
	AwsIAMCreator(awsKey, awsSecretKey, region, infraID, s3BucketName, s3Region, privateZoneID, publicZoneID, localZoneID string) AwsCreateIAM
	AwsIAMDestroyer(awsKey, awsSecretKey, region, infraID string) AwsDestroyIAM

	AzureInfraDestroyer(name, location, infraID string, credentials *fixtures.AzureCreds) AzureDestroyInfra
	AzureInfraCreator(name, baseDomain, location, infraID string, credentials *fixtures.AzureCreds) AzureCreateInfra
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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