clustercontext

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Overview

Package clustercontext contains code for working with ClusterContext secrets

Index

Constants

This section is empty.

Variables

View Source
var ErrSecretNotFound = fmt.Errorf("Cluster Context Secret not found")

Functions

func CreateClient

func CreateClient(
	ctx context.Context,
	primazaCli client.Client,
	ce primazaiov1alpha1.ClusterEnvironment,
	scheme *runtime.Scheme,
	mapper meta.RESTMapper,
) (client.Client, error)

func ExtractClusterRESTConfig

func ExtractClusterRESTConfig(secret *corev1.Secret) (*rest.Config, error)

func GetClusterRESTConfig

func GetClusterRESTConfig(ctx context.Context, cli client.Client, secretNamespace, secretName string) (*rest.Config, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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