deployment

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2021 License: Apache-2.0 Imports: 8 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(c *client.Client, d *Instance) error

Create will create a deployment

Args:

  • Client struct from client module
  • Deployment from this module

Returns:

  • error

func Delete

func Delete(c *client.Client, deployment string, namespace string) error

Delete will delete an deployment

Args:

  • Client struct from client module
  • deployment name
  • namespace

Return:

  • error or nil

func Exists

func Exists(c *client.Client, deployment string, namespace string) (string, error)

Exists will check if the service exists or not

Args:

Pointer to a Client struct
Service Name
Namespace

Returns:

string (namespace name) OR error type

Types

type Instance

type Instance struct {
	Name       string
	Namespace  string
	Replicas   int32
	LabelKey   string
	LabelValue string
	Pod        struct {
		Name                  string
		Image                 string
		ContainerPortName     string
		ContainerPortProtocol string // "TCP" or "UDP"
		ContainerPort         int32
	}
}

Instance type refers to the Deployment object

Jump to

Keyboard shortcuts

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