k8s

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2021 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyStringMap

func CopyStringMap(source map[string]string) map[string]string

func GetDockhandSecretsListFromK8sSecrets

func GetDockhandSecretsListFromK8sSecrets(ctx context.Context, secretNames []string, namespace string) ([]string, error)

func GetSecretsChecksum

func GetSecretsChecksum(ctx context.Context, names []string, namespace string) (string, error)

GetSecretsChecksum takes a set of secrets in a namespace and returns a checksum of all of the data in those secrets

func GetServiceCertificate

func GetServiceCertificate(ctx context.Context, name string, namespace string) (tls.Certificate, error)

GetServiceCertificate for service and namespace.

func UpdateCABundleForWebhook

func UpdateCABundleForWebhook(ctx context.Context, name string, namespace string) error

UpdateCABundleForWebhook updates the CA Bundle

Types

type PatchOperation

type PatchOperation struct {
	Op    string      `json:"op"`
	Path  string      `json:"path"`
	Value interface{} `json:"value,omitempty"`
}

func GenerateMetadataLabelsPatch

func GenerateMetadataLabelsPatch(target map[string]string, added map[string]string) (patch []PatchOperation)

func GenerateSpecTemplateAnnotationPatch

func GenerateSpecTemplateAnnotationPatch(target map[string]string, added map[string]string) (patch []PatchOperation)

Jump to

Keyboard shortcuts

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