kube

package
v1.3.9 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2022 License: MIT Imports: 8 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// Cmd describes a kube command.
	Cmd = &cobra.Command{
		Use:   "kube",
		Short: "Generate kubernetes files",
	}
)

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