Documentation ¶
Index ¶
- Constants
- func ControllerConfigToDeploymentRuntimeConfig(cc *v1alpha1.ControllerConfig) (*v1beta1.DeploymentRuntimeConfig, error)
- func CreateDeploymentTemplate(cc *v1alpha1.ControllerConfig) bool
- func CreateDeploymentTemplateContainer(cc *v1alpha1.ControllerConfig) bool
- func NewContainerFromControllerConfig(cc *v1alpha1.ControllerConfig) *corev1.Container
- func NewDeploymentRuntimeConfig(options ...func(*v1beta1.DeploymentRuntimeConfig)) *v1beta1.DeploymentRuntimeConfig
- func NewDeploymentTemplate(options ...func(*v1beta1.DeploymentTemplate)) *v1beta1.DeploymentTemplate
- func NewDeploymentTemplateFromControllerConfig(cc *v1alpha1.ControllerConfig) *v1beta1.DeploymentTemplate
- func WithCreationTimestamp(time metav1.Time) func(*v1beta1.DeploymentRuntimeConfig)
- func WithDeploymentTemplate(dt *v1beta1.DeploymentTemplate) func(*v1beta1.DeploymentRuntimeConfig)
- func WithName(name string) func(*v1beta1.DeploymentRuntimeConfig)
- func WithServiceAccountTemplate(cc *v1alpha1.ControllerConfig) func(*v1beta1.DeploymentRuntimeConfig)
- func WithServiceTemplate(cc *v1alpha1.ControllerConfig) func(*v1beta1.DeploymentRuntimeConfig)
- type Cmd
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 WithDeploymentTemplate ¶
func WithDeploymentTemplate(dt *v1beta1.DeploymentTemplate) func(*v1beta1.DeploymentRuntimeConfig)
func WithName ¶
func WithName(name string) func(*v1beta1.DeploymentRuntimeConfig)
func WithServiceAccountTemplate ¶
func WithServiceAccountTemplate(cc *v1alpha1.ControllerConfig) func(*v1beta1.DeploymentRuntimeConfig)
func WithServiceTemplate ¶
func WithServiceTemplate(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.
Click to show internal directories.
Click to hide internal directories.