deployments

package
v0.0.8-internal Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const EntrypointFilename = "entrypoint"

Variables

View Source
var DeploymentTemplate []byte

Functions

This section is empty.

Types

type Deployment

type Deployment struct {
	workloads.WorkloadBase
	Deployment appsv1.Deployment

	// ReplicaSets caches the replica sets linked to this deployment
	ReplicaSets []ReplicaSetReference
}

Deployment is a workload wrapper around the basic Kubernetes Deployment

func (*Deployment) DefaultTemplate

func (d *Deployment) DefaultTemplate() ([]byte, error)

func (*Deployment) GenerateTemplateContext

func (d *Deployment) GenerateTemplateContext(execFlags workloads.ExecFlags) (any, error)

func (*Deployment) GetObject

func (d *Deployment) GetObject() client.Object

func (*Deployment) GetStatus

func (d *Deployment) GetStatus() string

func (*Deployment) IgnoreFiles

func (d *Deployment) IgnoreFiles() []string

func (*Deployment) ListKnownPods

func (d *Deployment) ListKnownPods() []workloads.WorkloadPod

func (*Deployment) ResolveStructure

func (d *Deployment) ResolveStructure(ctx context.Context, k8sClient client.Client) error

func (*Deployment) SetFromObject

func (d *Deployment) SetFromObject(obj client.Object) error

type DeploymentFlags

type DeploymentFlags struct {
	Entrypoint string
}

type ReplicaSetReference

type ReplicaSetReference struct {
	ReplicaSet appsv1.ReplicaSet

	// Pods caches the pods linked to this replica set
	Pods []corev1.Pod
}

Jump to

Keyboard shortcuts

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