v1

package
v0.0.0-...-83de85e Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 2 Imported by: 4

Documentation

Index

Constants

View Source
const APIVersionLatest = "openfaas.com/v1"

APIVersionLatest latest API version of CRD

Variables

This section is empty.

Functions

This section is empty.

Types

type CRD

type CRD struct {
	//APIVersion CRD API version
	APIVersion string `yaml:"apiVersion"`
	//Kind kind of the object
	Kind     string          `yaml:"kind"`
	Metadata schema.Metadata `yaml:"metadata"`
	Spec     Spec            `yaml:"spec"`
}

CRD root level YAML definition for the object

type Spec

type Spec struct {
	//Name name of the function
	Name string `yaml:"name"`
	//Image docker image name of the function
	Image string `yaml:"image"`

	Environment map[string]string `yaml:"environment,omitempty"`

	Labels *map[string]string `yaml:"labels,omitempty"`

	//Limits for the function
	Limits *stack.FunctionResources `yaml:"limits,omitempty"`

	//Requests of resources requested by function
	Requests *stack.FunctionResources `yaml:"requests,omitempty"`

	Constraints *[]string `yaml:"constraints,omitempty"`

	//Secrets list of secrets to be made available to function
	Secrets []string `yaml:"secrets,omitempty"`
}

Spec describe characteristics of the object

Jump to

Keyboard shortcuts

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