Documentation ¶
Index ¶
- func CreateCluster(ctx context.Context, opts *CreateOptions, ...) error
- func DestroyCluster(ctx context.Context, hostedCluster *hyperv1.HostedCluster, o *DestroyOptions, ...) error
- func DestroyPlatformSpecificsNoop(_ context.Context, _ *DestroyOptions) error
- func DumpCluster(ctx context.Context, opts *DumpOptions) error
- func DumpGuestCluster(ctx context.Context, log logr.Logger, kubeconfig string, destDir string) error
- func GetAPIServerAddressByNode(ctx context.Context, l logr.Logger) (string, error)
- func GetCluster(ctx context.Context, o *DestroyOptions) (*hyperv1.HostedCluster, error)
- func NewDumpCommand() *cobra.Command
- func Validate(ctx context.Context, opts *CreateOptions) error
- type AWSPlatformDestroyOptions
- type AWSPlatformOptions
- type AgentPlatformCreateOptions
- type ApplyPlatformSpecifics
- type AzurePlatformDestroyOptions
- type AzurePlatformOptions
- type CreateOptions
- type DestroyOptions
- type DestroyPlatformSpecifics
- type DumpOptions
- type KubevirtPlatformCreateOptions
- type LogChecker
- type NonePlatformCreateOptions
- type OCAdmInspect
- type PowerVSPlatformDestroyOptions
- type PowerVSPlatformOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateCluster ¶
func CreateCluster(ctx context.Context, opts *CreateOptions, platformSpecificApply ApplyPlatformSpecifics) error
func DestroyCluster ¶
func DestroyCluster(ctx context.Context, hostedCluster *hyperv1.HostedCluster, o *DestroyOptions, destroyPlatformSpecifics DestroyPlatformSpecifics) error
func DestroyPlatformSpecificsNoop ¶
func DestroyPlatformSpecificsNoop(_ context.Context, _ *DestroyOptions) error
func DumpCluster ¶
func DumpCluster(ctx context.Context, opts *DumpOptions) error
func DumpGuestCluster ¶
func DumpGuestCluster(ctx context.Context, log logr.Logger, kubeconfig string, destDir string) error
DumpGuestCluster dumps resources from a hosted cluster using its apiserver indicated by the provided kubeconfig. This function assumes that pods aren't able to be scheduled and so can only gather information directly accessible through the api server.
func GetCluster ¶
func GetCluster(ctx context.Context, o *DestroyOptions) (*hyperv1.HostedCluster, error)
func NewDumpCommand ¶
Types ¶
type AWSPlatformOptions ¶
type AWSPlatformOptions struct { AWSCredentialsFile string AdditionalTags []string IAMJSON string InstanceType string IssuerURL string PrivateZoneID string PublicZoneID string Region string RootVolumeIOPS int64 RootVolumeSize int64 RootVolumeType string RootVolumeEncryptionKey string EndpointAccess string Zones []string EtcdKMSKeyARN string EnableProxy bool }
type ApplyPlatformSpecifics ¶
type ApplyPlatformSpecifics = func(ctx context.Context, fixture *apifixtures.ExampleOptions, options *CreateOptions) error
ApplyPlatformSpecifics can be used to create platform specific values as well as enriching the fixure with additional values
type AzurePlatformOptions ¶
type CreateOptions ¶
type CreateOptions struct { AdditionalTrustBundle string Annotations []string AutoRepair bool ControlPlaneAvailabilityPolicy string ControlPlaneOperatorImage string EtcdStorageClass string FIPS bool GenerateSSH bool ImageContentSources string InfrastructureAvailabilityPolicy string InfrastructureJSON string InfraID string Name string Namespace string BaseDomain string BaseDomainPrefix string NetworkType string NodePoolReplicas int32 NodeDrainTimeout time.Duration PullSecretFile string ReleaseImage string Render bool SSHKeyFile string ServiceCIDR string ClusterCIDR string ExternalDNSDomain string NodeSelector map[string]string NonePlatform NonePlatformCreateOptions KubevirtPlatform KubevirtPlatformCreateOptions AWSPlatform AWSPlatformOptions AgentPlatform AgentPlatformCreateOptions AzurePlatform AzurePlatformOptions PowerVSPlatform PowerVSPlatformOptions Wait bool Timeout time.Duration Log logr.Logger SkipAPIBudgetVerification bool CredentialSecretName string NodeUpgradeType hyperv1.UpgradeType // BeforeApply is called immediately before resources are applied to the // server, giving the user an opportunity to inspect or mutate the resources. // This is intended primarily for e2e testing and should be used with care. BeforeApply func(crclient.Object) `json:"-"` }
type DestroyOptions ¶
type DestroyOptions struct { ClusterGracePeriod time.Duration Name string Namespace string AWSPlatform AWSPlatformDestroyOptions AzurePlatform AzurePlatformDestroyOptions PowerVSPlatform PowerVSPlatformDestroyOptions InfraID string DestroyCloudResources bool Log logr.Logger CredentialSecretName string }
type DestroyPlatformSpecifics ¶
type DestroyPlatformSpecifics = func(ctx context.Context, options *DestroyOptions) error
DestroyPlatformSpecifics can be used to destroy platform specific resources which are unknown to hypershift
type DumpOptions ¶
type DumpOptions struct { Namespace string Name string ArtifactDir string // LogCheckers is a list of functions that will // get run over all raw logs if set. LogCheckers []LogChecker // AgentNamespace is the namespace where Agents // are located, when using the agent platform. AgentNamespace string DumpGuestCluster bool Log logr.Logger }
type LogChecker ¶
type OCAdmInspect ¶
type OCAdmInspect struct {
// contains filtered or unexported fields
}
func (*OCAdmInspect) WithNamespace ¶
func (i *OCAdmInspect) WithNamespace(namespace string) *OCAdmInspect
type PowerVSPlatformOptions ¶
type PowerVSPlatformOptions struct { ResourceGroup string Region string Zone string CloudInstanceID string CloudConnection string VPCRegion string VPC string VPCSubnet string Debug bool RecreateSecrets bool // nodepool related options SysType string ProcType hyperv1.PowerVSNodePoolProcType Processors string Memory int32 }
Click to show internal directories.
Click to hide internal directories.