k8s

package
v0.0.0-...-fbcd7f5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(ctx context.Context, clusterID string, zoneID string, gcpclient API) (*kubernetes.Clientset, *kubectl.Wrapper, error)

Types

type API

type API interface {
	Get(ctx context.Context, clusterID string, zoneID string) (*container.Cluster, error)
}

type GenericSecret

type GenericSecret struct {
	Name string `yaml:"prefix"`
	Key  string `yaml:"key"`
}

type Populator

type Populator struct {
	// contains filtered or unexported fields
}

func NewPopulator

func NewPopulator(k8sclient *kubernetes.Clientset) *Populator

func (*Populator) PopulateSecrets

func (p *Populator) PopulateSecrets(namespace string, generics []GenericSecret, sasecrets []serviceaccount.ServiceAccount) error

type SecretModel

type SecretModel struct {
	Name    string
	Key     string
	KeyData string
}

SecretModel defines secret to be stored in k8s

Jump to

Keyboard shortcuts

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