kube

package
v1.6.3 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2023 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// Cmd describes a kube command.
	Cmd = cobrax.NewCommand("kube")
)

Functions

func Category

func Category() string

Category returns the category of the deployments.

func Clean

func Clean() error

Clean cleans the generated deployment files.

func GenTemplates

func GenTemplates() error

GenTemplates generates the deployment template files.

func RevertTemplate

func RevertTemplate(name string) error

RevertTemplate reverts the given template file to the default value.

func Update

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
	TargetPort      int
	NodePort        int
	UseNodePort     bool
	RequestCpu      int
	RequestMem      int
	LimitCpu        int
	LimitMem        int
	MinReplicas     int
	MaxReplicas     int
	ServiceAccount  string
	ImagePullPolicy string
}

Deployment describes the k8s deployment yaml

Jump to

Keyboard shortcuts

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