k8s

package
v0.0.0-...-8d12173 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2023 License: Unlicense Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewInClusterClient

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

Types

type API

type API struct {
	Client *kubernetes.Clientset
	Opts   *Opts
}

func NewDefaultAPI

func NewDefaultAPI() (*API, error)

func (*API) UpdateDeployment

func (a *API) UpdateDeployment(deployment *appsv1.Deployment, ctx context.Context) error

func (*API) UpdateSecret

func (a *API) UpdateSecret(secret *v1.Secret, ctx context.Context) error

type Deployment

type Deployment struct {
	Name      string
	Namespace string
}

func (*Deployment) V1

func (d *Deployment) V1() *appsv1.Deployment

type Opts

type Opts struct {
	GetOpts    metav1.GetOptions
	CreateOpts metav1.CreateOptions
	UpdateOpts metav1.UpdateOptions
}

type Secret

type Secret struct {
	Name      string
	Data      string
	Key       string
	Namespace string
}

func (*Secret) V1

func (s *Secret) V1() *v1.Secret

Jump to

Keyboard shortcuts

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