openstack

package
v0.0.0-...-55870f8 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: Apache-2.0 Imports: 75 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 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 GetFloatingNetworkID

func GetFloatingNetworkID(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 GetSubnetIDfromKuryrNetwork

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

func IsOctaviaVersionGreaterThanOrEqual

func IsOctaviaVersionGreaterThanOrEqual(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