resources

package
v1.0.2-0...-81fcf91 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultDeploymentReplicas int32 = 1

Variables

This section is empty.

Functions

func DeployAppendSelectorLabels

func DeployAppendSelectorLabels(labels map[string]string) deployOptions

DeployAppendSelectorLabels - add additional labels to the deployment's selector

func DeploySetCmd

func DeploySetCmd(cmd []string) deployOptions

DeploySetCmd - set the container command for the deployment

func DeploySetImage

func DeploySetImage(image string) deployOptions

DeploySetImage - set the container image for the deployment

func DeploySetName

func DeploySetName(name string) deployOptions

DeploySetName - set the deployment name and clear the generated name

func DeployTrimClusterInfoLabels

func DeployTrimClusterInfoLabels() deployOptions

DeployTrimClusterInfoLabels - get rid of internal labels like managed-by, function-name or uuid

func DeployUseGeneralEnvs

func DeployUseGeneralEnvs() deployOptions

DeployUseGeneralEnvs - use general envs function for the deployment

func ServiceAppendSelectorLabels

func ServiceAppendSelectorLabels(labels map[string]string) serviceOptions

ServiceAppendSelectorLabels - add additional labels to the service's selector

func ServiceName

func ServiceName(name string) serviceOptions

ServiceName - set the service name

func ServiceTrimClusterInfoLabels

func ServiceTrimClusterInfoLabels() serviceOptions

ServiceTrimClusterInfoLabels - get rid of internal labels like managed-by, function-name or uuid

Types

type Deployment

type Deployment struct {
	*appsv1.Deployment
	// contains filtered or unexported fields
}

func NewDeployment

func NewDeployment(f *serverlessv1alpha2.Function, c *config.FunctionConfig, clusterDeployment *appsv1.Deployment, commit string, gitAuth *git.GitAuth, appName string, opts ...deployOptions) *Deployment

func (*Deployment) ResourceProfile

func (d *Deployment) ResourceProfile() string

func (*Deployment) RuntimeImage

func (d *Deployment) RuntimeImage() string

type Service

type Service struct {
	*corev1.Service
	// contains filtered or unexported fields
}

func NewService

func NewService(f *serverlessv1alpha2.Function, opts ...serviceOptions) *Service

Jump to

Keyboard shortcuts

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