openshift

package
v0.0.0-...-afc17b4 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	ClusterRoleBindingName = "metrics-collector-view"
	CaConfigmapName        = "metrics-collector-serving-certs-ca-bundle"
	OwnerLabelKey          = "owner"
	OwnerLabelValue        = "observabilityaddon"
)

Variables

This section is empty.

Functions

func CreateCAConfigmap

func CreateCAConfigmap(ctx context.Context, client client.Client, namespace string) error

func CreateMonitoringClusterRoleBinding

func CreateMonitoringClusterRoleBinding(ctx context.Context, log logr.Logger, client client.Client, namespace, serviceAccountName string) error

func DeleteCAConfigmap

func DeleteCAConfigmap(ctx context.Context, client client.Client, namespace string) error

func DeleteMonitoringClusterRoleBinding

func DeleteMonitoringClusterRoleBinding(ctx context.Context, client client.Client) error

func GetClusterID

func GetClusterID(ctx context.Context, c client.Client) (string, error)

getClusterID is used to get the cluster uid

func IsSNO

func IsSNO(ctx context.Context, c client.Client) (bool, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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