kube

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Category added in v1.1.1

func Category() string

Category returns the category of the deployments.

func Clean added in v1.1.1

func Clean() error

Clean cleans the generated deployment files.

func DeploymentCommand

func DeploymentCommand(c *cli.Context) error

DeploymentCommand is used to generate the kubernetes deployment yaml files.

func GenTemplates

func GenTemplates(_ *cli.Context) error

GenTemplates generates the deployment template files.

func RevertTemplate added in v1.1.1

func RevertTemplate(name string) error

RevertTemplate reverts the given template file to the default value.

func Update added in v1.1.1

func Update() error

Update updates the template files to the templates built in current goctl.

Types

type Deployment

type Deployment struct {
	Name        string
	Namespace   string
	Image       string
	Secret      string
	Replicas    int
	Revisions   int
	Port        int
	NodePort    int
	UseNodePort bool
	RequestCpu  int
	RequestMem  int
	LimitCpu    int
	LimitMem    int
	MinReplicas int
	MaxReplicas int
}

Deployment describes the k8s deployment yaml

Jump to

Keyboard shortcuts

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