fixtures

package
v0.1.25 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetIngressServicePublishingStrategyMapping

func GetIngressServicePublishingStrategyMapping(netType hyperv1.NetworkType, usesExternalDNS bool) []hyperv1.ServicePublishingStrategyMapping

Types

type AzureEncryptionKey

type AzureEncryptionKey struct {
	KeyVaultName string
	KeyName      string
	KeyVersion   string
}

type ExampleAWSOptions

type ExampleAWSOptions struct {
	Region                  string
	Zones                   []ExampleAWSOptionsZones
	VPCID                   string
	InstanceProfile         string
	InstanceType            string
	Roles                   hyperv1.AWSRolesRef
	KMSProviderRoleARN      string
	KMSKeyARN               string
	RootVolumeSize          int64
	RootVolumeType          string
	RootVolumeIOPS          int64
	RootVolumeEncryptionKey string
	ResourceTags            []hyperv1.AWSResourceTag
	EndpointAccess          string
	ProxyAddress            string
	MultiArch               bool
}

type ExampleAWSOptionsZones

type ExampleAWSOptionsZones struct {
	Name     string
	SubnetID *string
}

type ExampleAgentOptions

type ExampleAgentOptions struct {
	APIServerAddress   string
	AgentNamespace     string
	AgentLabelSelector string
}

type ExampleAgentResources

type ExampleAgentResources struct {
	CAPIProviderAgentRole *rbacv1.Role
}

func (*ExampleAgentResources) AsObjects

func (o *ExampleAgentResources) AsObjects() []crclient.Object

type ExampleAzureOptions

type ExampleAzureOptions struct {
	Creds                  util.AzureCreds
	Location               string
	ResourceGroupName      string
	VnetName               string
	VnetID                 string
	SubnetName             string
	BootImageID            string
	MachineIdentityID      string
	InstanceType           string
	SecurityGroupName      string
	DiskSizeGB             int32
	AvailabilityZones      []string
	DiskEncryptionSetID    string
	EnableEphemeralOSDisk  bool
	DiskStorageAccountType string
	EncryptionKey          *AzureEncryptionKey
}

type ExampleKubevirtOptions

type ExampleKubevirtOptions struct {
	ServicePublishingStrategy        string
	APIServerAddress                 string
	Memory                           string
	Cores                            uint32
	Image                            string
	RootVolumeSize                   uint32
	RootVolumeStorageClass           string
	RootVolumeAccessModes            string
	RootVolumeVolumeMode             string
	BaseDomainPassthrough            bool
	InfraKubeConfig                  []byte
	InfraNamespace                   string
	CacheStrategyType                string
	InfraStorageClassMappings        []string
	InfraVolumeSnapshotClassMappings []string
	NetworkInterfaceMultiQueue       *hyperv1.MultiQueueSetting
	QoSClass                         *hyperv1.QoSClass
	AdditionalNetworks               []hyperv1.KubevirtNetwork
	AttachDefaultNetwork             *bool
	VmNodeSelector                   map[string]string
}

type ExampleNoneOptions

type ExampleNoneOptions struct {
	APIServerAddress string
}

type ExampleOptions

type ExampleOptions struct {
	AdditionalTrustBundle            string
	Namespace                        string
	Name                             string
	ReleaseImage                     string
	PullSecret                       []byte
	IssuerURL                        string
	SSHPublicKey                     []byte
	SSHPrivateKey                    []byte
	NodePoolReplicas                 int32
	NodeDrainTimeout                 time.Duration
	ImageContentSources              []hyperv1.ImageContentSource
	InfraID                          string
	MachineCIDR                      string
	ServiceCIDR                      []string
	ClusterCIDR                      []string
	NodeSelector                     map[string]string
	BaseDomain                       string
	BaseDomainPrefix                 string
	PublicZoneID                     string
	PrivateZoneID                    string
	Annotations                      map[string]string
	FIPS                             bool
	AutoRepair                       bool
	EtcdStorageClass                 string
	ExternalDNSDomain                string
	Arch                             string
	PausedUntil                      string
	OLMCatalogPlacement              hyperv1.OLMCatalogPlacement
	OperatorHub                      *configv1.OperatorHubSpec
	AWS                              *ExampleAWSOptions
	None                             *ExampleNoneOptions
	Agent                            *ExampleAgentOptions
	Kubevirt                         *ExampleKubevirtOptions
	Azure                            *ExampleAzureOptions
	PowerVS                          *ExamplePowerVSOptions
	NetworkType                      hyperv1.NetworkType
	ControlPlaneAvailabilityPolicy   hyperv1.AvailabilityPolicy
	InfrastructureAvailabilityPolicy hyperv1.AvailabilityPolicy
	UpgradeType                      hyperv1.UpgradeType
}

func (ExampleOptions) EtcdEncryptionKeySecret

func (o ExampleOptions) EtcdEncryptionKeySecret() *corev1.Secret

func (ExampleOptions) Resources

func (o ExampleOptions) Resources() *ExampleResources

type ExamplePowerVSOptions

type ExamplePowerVSOptions struct {
	AccountID       string
	ResourceGroup   string
	Region          string
	Zone            string
	CISInstanceCRN  string
	CloudInstanceID string
	Subnet          string
	SubnetID        string
	CloudConnection string
	VPCRegion       string
	VPC             string
	VPCSubnet       string
	Resources       ExamplePowerVSResources

	// nodepool related options
	SysType    string
	ProcType   hyperv1.PowerVSNodePoolProcType
	Processors string
	Memory     int32
}

type ExamplePowerVSResources

type ExamplePowerVSResources struct {
	KubeCloudControllerCreds        *corev1.Secret
	NodePoolManagementCreds         *corev1.Secret
	IngressOperatorCloudCreds       *corev1.Secret
	StorageOperatorCloudCreds       *corev1.Secret
	ImageRegistryOperatorCloudCreds *corev1.Secret
}

func (*ExamplePowerVSResources) AsObjects

func (o *ExamplePowerVSResources) AsObjects() []crclient.Object

type ExampleResources

type ExampleResources struct {
	AdditionalTrustBundle *corev1.ConfigMap
	Namespace             *corev1.Namespace
	PullSecret            *corev1.Secret
	Resources             []crclient.Object
	SSHKey                *corev1.Secret
	Cluster               *hyperv1.HostedCluster
	NodePools             []*hyperv1.NodePool
}

func (*ExampleResources) AsObjects

func (o *ExampleResources) AsObjects() []crclient.Object

Jump to

Keyboard shortcuts

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