newdeploymentruntime

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrNilControllerConfig = "ControllerConfig is nil"
)

Variables

This section is empty.

Functions

func ControllerConfigToDeploymentRuntimeConfig

func ControllerConfigToDeploymentRuntimeConfig(cc *v1alpha1.ControllerConfig) (*v1beta1.DeploymentRuntimeConfig, error)

func CreateDeploymentTemplate

func CreateDeploymentTemplate(cc *v1alpha1.ControllerConfig) bool

CreateDeploymentTemplate determines whether we should create a deployment template in the DeploymentRuntimeConfig

func CreateDeploymentTemplateContainer

func CreateDeploymentTemplateContainer(cc *v1alpha1.ControllerConfig) bool

CreateDeploymentTemplateContainer determines whether we should create a container entry in the DeploymentRuntimeConfig

func NewContainerFromControllerConfig

func NewContainerFromControllerConfig(cc *v1alpha1.ControllerConfig) *corev1.Container

func NewDeploymentRuntimeConfig

func NewDeploymentRuntimeConfig(options ...func(*v1beta1.DeploymentRuntimeConfig)) *v1beta1.DeploymentRuntimeConfig

func NewDeploymentTemplate

func NewDeploymentTemplate(options ...func(*v1beta1.DeploymentTemplate)) *v1beta1.DeploymentTemplate

func NewDeploymentTemplateFromControllerConfig

func NewDeploymentTemplateFromControllerConfig(cc *v1alpha1.ControllerConfig) *v1beta1.DeploymentTemplate

func WithCreationTimestamp

func WithCreationTimestamp(time metav1.Time) func(*v1beta1.DeploymentRuntimeConfig)

func WithName

func WithName(name string) func(*v1beta1.DeploymentRuntimeConfig)

func WithServiceAccountTemplate

func WithServiceAccountTemplate(cc *v1alpha1.ControllerConfig) func(*v1beta1.DeploymentRuntimeConfig)

Types

type Cmd

type Cmd struct {
	// Arguments.
	InputFile string `short:"i" type:"path" placeholder:"PATH" help:"The ControllerConfig file to be Converted."`

	OutputFile string `short:"o" type:"path" placeholder:"PATH" help:"The file to write the generated DeploymentRuntimeConfig to."`
}

Cmd arguments and flags for render subcommand.

func (*Cmd) Help

func (c *Cmd) Help() string

func (*Cmd) Run

func (c *Cmd) Run(logger logging.Logger) error

Jump to

Keyboard shortcuts

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