fixtures

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type AzureCreds

type AzureCreds struct {
	SubscriptionID string `json:"subscriptionId,omitempty"`
	ClientID       string `json:"clientId,omitempty"`
	ClientSecret   string `json:"clientSecret,omitempty"`
	TenantID       string `json:"tenantId,omitempty"`
}

AzureCreds is the fileformat we expect for credentials. It is copied from the installer to allow using the same crededentials file for both: https://github.com/openshift/installer/blob/8fca1ade5b096d9b2cd312c4599881d099439288/pkg/asset/installconfig/azure/session.go#L36

type ExampleAWSOptions

type ExampleAWSOptions struct {
	Region                  string
	Zones                   []ExampleAWSOptionsZones
	VPCID                   string
	SecurityGroupID         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
}

type ExampleAWSOptionsZones

type ExampleAWSOptionsZones struct {
	Name     string
	SubnetID *string
}

type ExampleAgentOptions

type ExampleAgentOptions struct {
	APIServerAddress string
	AgentNamespace   string
}

type ExampleAgentResources

type ExampleAgentResources struct {
	CAPIProviderAgentRole *rbacv1.Role
}

func (*ExampleAgentResources) AsObjects

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

type ExampleAzureOptions

type ExampleAzureOptions struct {
	Creds             AzureCreds
	Location          string
	ResourceGroupName string
	VnetName          string
	VnetID            string
	SubnetName        string
	BootImageID       string
	MachineIdentityID string
	InstanceType      string
	SecurityGroupName string
	DiskSizeGB        int32
	AvailabilityZones []string
}

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
	NetworkInterfaceMultiQueue *hyperv1.MultiQueueSetting
	QoSClass                   *hyperv1.QoSClass
}

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
	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