k8s

package
v0.0.0-...-bcdb799 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDynamicAndDiscoveryClient

func GetDynamicAndDiscoveryClient() (discovery.DiscoveryInterface, dynamic.Interface, error)

GetDynamicAndDiscoveryClient This function returns dynamic client and discovery client

func GetGenericK8sClient

func GetGenericK8sClient() (*kubernetes.Clientset, error)

func GetKubeConfig

func GetKubeConfig() (*rest.Config, error)

func GetServerEndpoint

func GetServerEndpoint(portalScope, agentType string) (string, error)

This function returns the endpoint of the server by which external agents can communicate. The order of generating the endpoint is based on different network type: - Ingress - LoadBalancer > NodePort > ClusterIP

func GetTLSCert

func GetTLSCert(secretName string) (string, error)

func InfraResource

func InfraResource(manifest string, namespace string) (*unstructured.Unstructured, error)

InfraResource This function handles cluster operations

Types

This section is empty.

Jump to

Keyboard shortcuts

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