deployment

package
v1.12.7 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2024 License: Apache-2.0 Imports: 31 Imported by: 0

README

Deployment Plugin

Default plugin for handling deployments in the reconcilliation pipeline. Another plugin can be specified in the deploymentStep in the pipeline in the operator config. The rigdev.deployment plugin will create a deployment for the capsule, and a service if the the capsule has interfaces defined.

Config

Configuration for the deployment plugin

Documentation

Overview

+groupName=plugins.rig.dev -- Only used for config doc generation

Index

Constants

View Source
const (
	Name = "rigdev.deployment"

	AnnotationRecreateStrategy = "rig.dev/recreate-strategy"
	AnnotationEmptyDirs        = "rig.dev/empty-dirs"
)

Variables

This section is empty.

Functions

func OnPodTemplatedUpdated added in v1.12.2

func OnPodTemplatedUpdated(
	template v1.PodTemplateSpec, objectWatcher plugin.ObjectWatcher,
) *apipipeline.ObjectStatusInfo

func PodLabelSelector added in v1.12.2

func PodLabelSelector(template v1.PodTemplateSpec) labels.Selector

Types

type Config

type Config struct{}

Configuration for the deployment plugin +kubebuilder:object:root=true

type Plugin

type Plugin struct {
	// contains filtered or unexported fields
}

func (*Plugin) ComputeConfig added in v1.12.0

func (p *Plugin) ComputeConfig(ctx context.Context, req pipeline.CapsuleRequest, logger hclog.Logger) (string, error)

func (*Plugin) Initialize

func (p *Plugin) Initialize(req plugin.InitializeRequest) error

func (*Plugin) Run

func (p *Plugin) Run(ctx context.Context, req pipeline.CapsuleRequest, logger hclog.Logger) error

func (*Plugin) WatchObjectStatus

func (p *Plugin) WatchObjectStatus(ctx context.Context, watcher plugin.CapsuleWatcher) error

Jump to

Keyboard shortcuts

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