kubernetes

package
v0.0.0-...-80305e3 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateAppLabels

func CreateAppLabels(app types.App) p.StringMap

CreateAppLabels creates a set of labels for an application.

func CreateDeployment

func CreateDeployment(ctx *p.Context, app types.App, provider *k8s.Provider, replicas int) (*apps.Deployment, error)

CreateDeployment sets up a Kubernetes deployment based on provided application and replica configs.

func CreateDeploymentArgs

func CreateDeploymentArgs(app types.App, appLabels p.StringMap, replicas int) *apps.DeploymentArgs

CreateDeploymentArgs prepares the arguments needed for a Kubernetes Deployment resource.

func CreateProvider

func CreateProvider(ctx *p.Context, kubeConfig, kubeContext string) (*k8s.Provider, error)

CreateProvider sets up a Kubernetes provider using provided configurations.

func CreateResourceOptions

func CreateResourceOptions(provider *k8s.Provider) []p.ResourceOption

CreateResourceOptions sets up resource options for Kubernetes resources.

Types

This section is empty.

Jump to

Keyboard shortcuts

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