Documentation ¶
Index ¶
- Variables
- func ScaffoldAWSHostedClusterSpec(hyd *hypdeployment.HypershiftDeployment, infraOut *aws.CreateInfraOutput)
- func ScaffoldAWSNodePoolSpec(hyd *hypdeployment.HypershiftDeployment, infraOut *aws.CreateInfraOutput)
- func ScaffoldAWSSecrets(hyd *hypdeployment.HypershiftDeployment, hc *hyp.HostedCluster) []*corev1.Secret
- func ScaffoldAzureCloudCredential(hyd *hypdeployment.HypershiftDeployment, creds *fixtures.AzureCreds) *corev1.Secret
- func ScaffoldAzureHostedClusterSpec(hyd *hypdeployment.HypershiftDeployment, infraOut *azure.CreateInfraOutput)
- func ScaffoldAzureNodePoolSpec(hyd *hypdeployment.HypershiftDeployment, infraOut *azure.CreateInfraOutput)
- func ScaffoldNodePool(hyd *hypdeployment.HypershiftDeployment, npName string, ...) *unstructured.Unstructured
- func ScaffoldNodePoolSpec(hyd *hypdeployment.HypershiftDeployment, infraOut *aws.CreateInfraOutput)
- type AwsCreateIAM
- type AwsCreateInfra
- type AwsDestroyIAM
- type AwsDestroyInfra
- type AzureCreateInfra
- type AzureDestroyInfra
- type DefaultInfraHandler
- func (h *DefaultInfraHandler) AwsIAMCreator(...) AwsCreateIAM
- func (h *DefaultInfraHandler) AwsIAMDestroyer(awsKey, awsSecretKey, region, infraID string) AwsDestroyIAM
- func (h *DefaultInfraHandler) AwsInfraCreator(awsKey, awsSecretKey, region, infraID, name, baseDomain string, zones []string) AwsCreateInfra
- func (h *DefaultInfraHandler) AwsInfraDestroyer(awsKey, awsSecretKey, region, infraID, name, baseDomain string) AwsDestroyInfra
- func (h *DefaultInfraHandler) AzureInfraCreator(name, baseDomain, location, infraID string, credentials *fixtures.AzureCreds) AzureCreateInfra
- func (h *DefaultInfraHandler) AzureInfraDestroyer(name, location, infraID string, credentials *fixtures.AzureCreds) AzureDestroyInfra
- type FakeInfraHandler
- func (h *FakeInfraHandler) AwsIAMCreator(...) AwsCreateIAM
- func (h *FakeInfraHandler) AwsIAMDestroyer(awsKey, awsSecretKey, region, infraID string) AwsDestroyIAM
- func (h *FakeInfraHandler) AwsInfraCreator(awsKey, awsSecretKey, region, infraID, name, baseDomain string, zones []string) AwsCreateInfra
- func (h *FakeInfraHandler) AwsInfraDestroyer(awsKey, awsSecretKey, region, infraID, name, baseDomain string) AwsDestroyInfra
- func (h *FakeInfraHandler) AzureInfraCreator(name, baseDomain, location, infraID string, credentials *fixtures.AzureCreds) AzureCreateInfra
- func (h *FakeInfraHandler) AzureInfraDestroyer(name, location, infraID string, credentials *fixtures.AzureCreds) AzureDestroyInfra
- type FakeInfraHandlerFailure
- func (h *FakeInfraHandlerFailure) AwsIAMCreator(...) AwsCreateIAM
- func (h *FakeInfraHandlerFailure) AwsIAMDestroyer(awsKey, awsSecretKey, region, infraID string) AwsDestroyIAM
- func (h *FakeInfraHandlerFailure) AwsInfraCreator(awsKey, awsSecretKey, region, infraID, name, baseDomain string, zones []string) AwsCreateInfra
- func (h *FakeInfraHandlerFailure) AwsInfraDestroyer(awsKey, awsSecretKey, region, infraID, name, baseDomain string) AwsDestroyInfra
- func (h *FakeInfraHandlerFailure) AzureInfraCreator(name, baseDomain, location, infraID string, credentials *fixtures.AzureCreds) AzureCreateInfra
- func (h *FakeInfraHandlerFailure) AzureInfraDestroyer(name, location, infraID string, credentials *fixtures.AzureCreds) AzureDestroyInfra
- type HypershiftDeploymentReconciler
- type InfraHandler
Constants ¶
This section is empty.
Variables ¶
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 ScaffoldAWSSecrets ¶
func ScaffoldAWSSecrets(hyd *hypdeployment.HypershiftDeployment, hc *hyp.HostedCluster) []*corev1.Secret
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 AwsCreateInfra ¶
type AwsDestroyIAM ¶
type AwsDestroyInfra ¶
type AzureCreateInfra ¶
type AzureDestroyInfra ¶
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 ¶
func (r *HypershiftDeploymentReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
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 }