deploy

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package deploy provides functions to set the deploy configuration for a service

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SetDeployConfig

type SetDeployConfig func(opt *types.DeployConfig) error

func WithLabel

func WithLabel(key, value string) SetDeployConfig

WithLabel appends a label for the service parameters:

  • key: the key of the label
  • value: the value of the label

func WithMode

func WithMode(mode string) SetDeployConfig

WithMode sets the deploy mode parameters:

  • mode: the deploy mode

func WithReplicas

func WithReplicas(replicas int) SetDeployConfig

WithReplicas sets the number of replicas for the service parameters:

  • replicas: the number of replicas for the service

func WithResourceLimits

func WithResourceLimits(setters ...resource.SetResourceConfig) SetDeployConfig

WithResourceLimits sets the resource limits for the service parameters:

  • setters: the setters for the resource limits

func WithResourceReservations

func WithResourceReservations(setters ...resource.SetResourceConfig) SetDeployConfig

WithResourceReservations sets the resource reservations for the service parameters:

  • setters: the setters for the resource reservations

func WithRollbackConfig

func WithRollbackConfig(setters ...update.SetUpdateConfig) SetDeployConfig

WithRollbackConfig sets the rollback configuration for the service parameters:

  • setters: the setters for the rollback configuration

func WithUpdateConfig

func WithUpdateConfig(setters ...update.SetUpdateConfig) SetDeployConfig

WithUpdateConfig sets the update configuration for the service parameters:

  • setters: the setters for the update configuration

Directories

Path Synopsis
Package resource provides functions to set the resource configuration for a service deploy
Package resource provides functions to set the resource configuration for a service deploy
device
Package device provides functions to set the device configuration for a service deploys resource
Package device provides functions to set the device configuration for a service deploys resource
Package update provides functions to set the update configuration for a service deploy
Package update provides functions to set the update configuration for a service deploy

Jump to

Keyboard shortcuts

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