kube

package
v1.1.8 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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 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

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
	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