openstack

package
v0.0.0-...-58c679a Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2026 License: Apache-2.0 Imports: 88 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

test/extended/openstack/cloud_network_config.go

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 CreateScrapeConfigInOpenstackOcp

func CreateScrapeConfigInOpenstackOcp(scrapeConfigName string, secretName string, metrics string, target string, ctx g.SpecContext) (func(), error)

Create a scrapeconfig in RHOSO OCP cluster

func CreateSecretInOpenstackOcp

func CreateSecretInOpenstackOcp(secretName string, token string, ctx g.SpecContext) (func(), error)

Create a secret in RHOSO OCP cluster

func DeleteMachineSetAndWaitCleanup

func DeleteMachineSetAndWaitCleanup(ctx context.Context, client runtimeclient.Client, dc dynamic.Interface, ms *machinev1.MachineSet)

DeleteMachineSetAndWaitCleanup deletes a MachineSet and waits until no Machines remain with that name prefix. On wait timeout, force-deletes remaining Machines and re-waits. Safe to call when the MachineSet was already deleted in-test.

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, seek_default bool) *storagev1.StorageClass

return storageClass with specific provisioner. If seek_default is true, it will look also for the default annotation.

func GetClusterLoadBalancerSetting

func GetClusterLoadBalancerSetting(setting string, config *ini.File) (string, error)

get the LoadBalancer setting based on the provided CloudProviderConfig INI file and the default values

func GetFloatingNetworkID

func GetFloatingNetworkID(ctx context.Context, client *gophercloud.ServiceClient, cloudProviderConfig *ini.File) (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 GetPVCsFromNamespace

func GetPVCsFromNamespace(ctx context.Context, dc dynamic.Interface, namespace string) ([]objx.Map, error)

return list of PVCs defined in a given namespace

func GetShareTypesFromName

func GetShareTypesFromName(ctx context.Context, client *gophercloud.ServiceClient, shareTypeName string) ([]sharetypes.ShareType, error)

return sharetype from openstack with specific name

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

func SetTestContextHostFromKubeconfig

func SetTestContextHostFromKubeconfig(kubeConfigPath string) error

Set the TestContextHost based on the Kubeconfig

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)

type NodeEgressIPConfiguration

type NodeEgressIPConfiguration struct {
	Interface string   `json:"interface"`
	IFAddr    ifAddr   `json:"ifaddr"`
	Capacity  capacity `json:"capacity"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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