openstack

package
v0.0.0-...-d0642ff Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package openstack contains API Schema definitions for OpenStack clusters. +k8s:deepcopy-gen=package

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MachinePool

type MachinePool struct {
	// Flavor defines the OpenStack Nova flavor.
	// eg. m1.large
	// The json key here differs from the installer which uses both "computeFlavor" and type "type" depending on which
	// type you're looking at, and the resulting field on the MachineSet is "flavor". We are opting to stay consistent
	// with the end result.
	Flavor string `json:"flavor"`

	// RootVolume defines the root volume for instances in the machine pool.
	// The instances use ephemeral disks if not set.
	// +optional
	RootVolume *RootVolume `json:"rootVolume,omitempty"`
}

MachinePool stores the configuration for a machine pool installed on OpenStack.

func (*MachinePool) DeepCopy

func (in *MachinePool) DeepCopy() *MachinePool

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachinePool.

func (*MachinePool) DeepCopyInto

func (in *MachinePool) DeepCopyInto(out *MachinePool)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*MachinePool) Set

func (o *MachinePool) Set(required *MachinePool)

Set sets the values from `required` to `a`.

type Platform

type Platform struct {
	// CredentialsSecretRef refers to a secret that contains the OpenStack account access
	// credentials.
	CredentialsSecretRef corev1.LocalObjectReference `json:"credentialsSecretRef"`

	// CertificatesSecretRef refers to a secret that contains CA certificates
	// necessary for communicating with the OpenStack.
	// There is additional configuration required for the OpenShift cluster to trust
	// the certificates provided in this secret.
	// The "clouds.yaml" file included in the credentialsSecretRef Secret must also include
	// a reference to the certificate bundle file for the OpenShift cluster being created to
	// trust the OpenStack endpoints.
	// The "clouds.yaml" file must set the "cacert" field to
	// either "/etc/openstack-ca/<key name containing the trust bundle in credentialsSecretRef Secret>" or
	// "/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem".
	//
	// For example,
	// """clouds.yaml
	// clouds:
	//   shiftstack:
	//     auth: ...
	//     cacert: "/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem"
	// """
	//
	// +optional
	CertificatesSecretRef *corev1.LocalObjectReference `json:"certificatesSecretRef,omitempty"`

	// Cloud will be used to indicate the OS_CLOUD value to use the right section
	// from the clouds.yaml in the CredentialsSecretRef.
	Cloud string `json:"cloud"`

	// TrunkSupport indicates whether or not to use trunk ports in your OpenShift cluster.
	// +optional
	TrunkSupport bool `json:"trunkSupport,omitempty"`
}

Platform stores all the global OpenStack configuration

func (*Platform) DeepCopy

func (in *Platform) DeepCopy() *Platform

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Platform.

func (*Platform) DeepCopyInto

func (in *Platform) DeepCopyInto(out *Platform)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type RootVolume

type RootVolume struct {
	// Size defines the size of the volume in gibibytes (GiB).
	// Required
	Size int `json:"size"`
	// Type defines the type of the volume.
	// Required
	Type string `json:"type"`
}

RootVolume defines the storage for an instance.

func (*RootVolume) DeepCopy

func (in *RootVolume) DeepCopy() *RootVolume

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RootVolume.

func (*RootVolume) DeepCopyInto

func (in *RootVolume) DeepCopyInto(out *RootVolume)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

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