k8s

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateManifests

func CreateManifests(ctx context.Context, k8sC client.Client, manifests string) error

func CreateObjects

func CreateObjects(ctx context.Context, k8sC client.Client, objs []runtime.Object) error

func DeploymentReady

func DeploymentReady(ctx context.Context, k8s client.Client, name string, namespace string) (bool, error)

func NewClient

func NewClient() (*rest.Config, client.Client, error)

func NewDecoder

func NewDecoder() runtime.Decoder

func ParseManifest

func ParseManifest(manifestData []byte) (runtime.Object, *schema.GroupVersionKind, error)

func ParseManifestFile

func ParseManifestFile(fileLocation string) (runtime.Object, *schema.GroupVersionKind, error)

func PortForward

func PortForward(ctx context.Context, kcfg *rest.Config, name apimachinerytypes.NamespacedName, port int) (chan struct{}, error)

func PortForwardDeployment added in v0.0.17

func PortForwardDeployment(ctx context.Context, k8sC client.Client, kcfg *rest.Config, name apimachinerytypes.NamespacedName, port int) (chan struct{}, error)

func PortForwardService added in v0.0.17

func PortForwardService(ctx context.Context, k8sC client.Client, kcfg *rest.Config, name apimachinerytypes.NamespacedName, port int) (chan struct{}, error)

func WaitForDeployment

func WaitForDeployment(ctx context.Context, k8s client.Client, desiredDep metav1.ObjectMeta) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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