initcontainer

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: 8 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Init Container Plugin

The rigdev.init_container plugin adds an init container to the Capsule's deployment.

The config can be templated with standard Go templating and has

.capsule

as its templating context.

Example

Config:

config:
  pipeline:
    steps:
      - plugins:
          - plugin: rigdev.init_container
            config: |
              container:
                name: my-initcontainer
                image: my-container-image:v1.1

The resulting Deployment resource of the Capsule

kind: Deployment
...
spec:
  template:
    spec:
      initContainers:
        - name: my-initcontainer
          image: my-container-image:v1.1
      ...

Config

Configuration for the init_container plugin

Field Description
container Container Container holds the configuration for the init container

Documentation

Overview

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

Index

Constants

View Source
const Name = "rigdev.init_container"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// Container holds the configuration for the init container
	Container *corev1.Container `json:"container"`
}

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

type Plugin

type Plugin struct {
	plugin.NoWatchObjectStatus
	// 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

Jump to

Keyboard shortcuts

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