utils

package
v0.0.0-...-03ea4e3 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CmNameOvnkubeConfig   = "ovnkube-config"
	CmNameTenantCLusterCA = "tenant-cluster-ca.crt"
	CmNameOvnCa           = "ovn-ca"

	SecretNameOvnCert = "ovn-cert"

	OvnkubeNodeManifestPath = "./bindata/ovnkube-node"
	SaNameOvnkubeNode       = "ovn-kubernetes-node"
	LocalOvnkbueNamespace   = "openshift-ovn-kubernetes"
	LocalOvnkbueNodeDsName  = "ovnkube-node"
)

Variables

View Source
var Namespace string
View Source
var TenantNamespace string
View Source
var TenantRestConfig *rest.Config

Functions

func DeleteObject

func DeleteObject(cl client.Client, obj client.Object) error

func GetMatchedTenantNode

func GetMatchedTenantNode(nodeName string) (string, error)

Currently mapping is provided by CM, it is not optimal and should be changed to automatic node labeling one day

func GetOrCreateObject

func GetOrCreateObject(cl client.Client, expected client.Object, log logrus.FieldLogger) (client.Object, error)

Types

type Config

type Config struct {
	TenantHostname string `mapstructure:"TENANT_K8S_NODE"`
}

Jump to

Keyboard shortcuts

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