kubernetes

package
v0.0.0-...-d2fb36c Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CreatedBy      = "nais.io/created-by"
	CreatedByValue = "hunter2"

	LastModifiedBy = "hunter2.nais.io/last-modified-by"
	LastModified   = "hunter2.nais.io/last-modified"
	SecretVersion  = "hunter2.nais.io/secret-version"

	StakaterReloaderKey = "reloader.stakater.com/match"
)

Variables

This section is empty.

Functions

func IsOwned

func IsOwned(secret corev1.Secret) bool

func NewClient

func NewClient(kubeconfigPath string) (*kubernetes.Clientset, error)

func OpaqueSecret

func OpaqueSecret(data SecretData) *corev1.Secret

Types

type SecretData

type SecretData struct {
	Name           string
	Namespace      string
	Payload        map[string][]byte
	LastModified   time.Time
	LastModifiedBy string
	SecretVersion  string
}

Jump to

Keyboard shortcuts

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