k8sProvider

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MAXCSRRETRIES int = 20
	CSRRETRYSLEEP int = 5
)
View Source
var FIELDMANAGER string = "application/vault-k8s-helper"
View Source
var MINVALIDDAYS int = 30

Functions

func CheckSecretValidity

func CheckSecretValidity(k8s *kubernetes.Clientset, ctx context.Context, name *string, namespace *string) (bool, error)

func CreateCSR

creates new CSR

func CreateNamespaceIfNotExists

func CreateNamespaceIfNotExists(k8s *kubernetes.Clientset, ctx context.Context, name *string) error

func CreateOrReplaceSecret

func CreateOrReplaceSecret(k8s *kubernetes.Clientset, ctx context.Context, name *string, namespace *string, data map[string][]byte) error

func DeleteCSR

func DeleteCSR(k8s *kubernetes.Clientset, ctx context.Context, name *string) error

deletes CSR if it exists.

func GetCSRCertificate

func GetCSRCertificate(k8s *kubernetes.Clientset, ctx context.Context, name *string) (csrContent []byte, err error)

func GetClientSet

func GetClientSet(overwriteKubeconfig *string) (*kubernetes.Clientset, error)

func GetSecretContents

func GetSecretContents(k8s *kubernetes.Clientset, ctx context.Context, name *string, namespace *string) (map[string][]byte, error)

func GetServiceEndpoints

func GetServiceEndpoints(k8s *kubernetes.Clientset, ctx context.Context, serviceName *string, namespace *string) ([]string, error)

GetServiceEndpoints returns alphabetically ordered list of pod names of given service

Types

This section is empty.

Jump to

Keyboard shortcuts

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