openstack

package
v0.0.0-...-bcb92a7 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	NetworkTypeOpenShiftSDN  = "OpenShiftSDN"
	NetworkTypeOVNKubernetes = "OVNKubernetes"
	NetworkTypeKuryr         = "Kuryr"
)

Variables

This section is empty.

Functions

func CreateNamespace

func CreateNamespace(ctx context.Context, clientSet *kubernetes.Clientset, baseName string, privileged bool) *v1.Namespace

func CreatePVC

func CreatePVC(ctx context.Context, clientSet *kubernetes.Clientset, baseName string, nsName string, scName string, pvcSize string) *v1.PersistentVolumeClaim

func CreatePod

func CreatePod(ctx context.Context, clientSet *kubernetes.Clientset, nsName string, baseName string, hostNetwork bool, command []string) (*v1.Pod, error)

func DeleteMachinesetsDefer

func DeleteMachinesetsDefer(client runtimeclient.Client, ms *machinev1.MachineSet)

func DeleteNamespace

func DeleteNamespace(ctx context.Context, clientSet *kubernetes.Clientset, ns *v1.Namespace)

func ElementExists

func ElementExists(s []string, str string) bool

func FindStorageClassByProvider

func FindStorageClassByProvider(oc *exutil.CLI, provisioner string) *storagev1.StorageClass

func GetFloatingNetworkID

func GetFloatingNetworkID(ctx context.Context, client *gophercloud.ServiceClient) (string, error)

GetFloatingNetworkID returns a floating network ID.

func GetMachinesetRetry

func GetMachinesetRetry(ctx context.Context, client runtimeclient.Client, ms *machinev1.MachineSet, shouldExist bool) error

func GetSharesFromName

func GetSharesFromName(ctx context.Context, client *gophercloud.ServiceClient, shareName string) ([]shares.Share, error)

return share from openstack with specific name

func GetSubnetIDfromKuryrNetwork

func GetSubnetIDfromKuryrNetwork(ctx context.Context, clientSet *kubernetes.Clientset, namespace string) (string, error)

func IsOctaviaVersionGreaterThanOrEqual

func IsOctaviaVersionGreaterThanOrEqual(ctx context.Context, client *gophercloud.ServiceClient, constraint string) (bool, error)

func RandomSuffix

func RandomSuffix() string

Types

type KuryrNetwork

type KuryrNetwork struct {
	Status struct {
		SubnetID string `json:"subnetId"`
	} `json:"status"`
}

func GetKuryrNetwork

func GetKuryrNetwork(ctx context.Context, clientSet *kubernetes.Clientset, namespace string) (KuryrNetwork, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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