cluster

package
v2.9.0 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ODHGeneratedNamespaceLabel is the label added to all the namespaces generated by odh-deployer.
	ODHGeneratedNamespaceLabel = "opendatahub.io/generated-namespace"
)

Variables

View Source
var (
	KnativeServingGVK = schema.GroupVersionKind{
		Group:   "operator.knative.dev",
		Version: "v1beta1",
		Kind:    "KnativeServing",
	}

	OpenshiftIngressGVK = schema.GroupVersionKind{
		Group:   "config.openshift.io",
		Version: "v1",
		Kind:    "Ingress",
	}

	ServiceMeshControlPlaneGVK = schema.GroupVersionKind{
		Group:   "maistra.io",
		Version: "v2",
		Kind:    "ServiceMeshControlPlane",
	}
)

Functions

func CreateNamespace

func CreateNamespace(cli client.Client, namespace string, metaOptions ...MetaOptions) (*corev1.Namespace, error)

CreateNamespace creates namespace required by workbenches component in downstream.

func CreateSecret

func CreateSecret(cli client.Client, name, namespace string) error

CreateSecret creates secrets required by dashboard component in downstream.

func GetDomain added in v2.8.0

func GetDomain(c client.Client) (string, error)

func UpdatePodSecurityRolebinding

func UpdatePodSecurityRolebinding(cli client.Client, namespace string, serviceAccountsList ...string) error

UpdatePodSecurityRolebinding update default rolebinding which is created in applications namespace by manifests being used by different components.

Types

type MetaOptions added in v2.7.0

type MetaOptions func(obj metav1.Object) error

MetaOptions allows to add additional settings for the object being created through a chain of functions which are applied on metav1.Object before actual resource creation.

func WithLabels added in v2.7.0

func WithLabels(labels ...string) MetaOptions

Jump to

Keyboard shortcuts

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