installerpod

package
v0.0.0-...-db72f7f Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2019 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewInstaller

func NewInstaller() *cobra.Command

Types

type InstallOptions

type InstallOptions struct {
	// TODO replace with genericclioptions
	KubeConfig string
	KubeClient kubernetes.Interface

	Revision  string
	Namespace string

	PodConfigMapNamePrefix        string
	SecretNamePrefixes            []string
	OptionalSecretNamePrefixes    []string
	ConfigMapNamePrefixes         []string
	OptionalConfigMapNamePrefixes []string

	CertSecretNames                   []string
	OptionalCertSecretNamePrefixes    []string
	CertConfigMapNamePrefixes         []string
	OptionalCertConfigMapNamePrefixes []string

	CertDir        string
	ResourceDir    string
	PodManifestDir string

	Timeout time.Duration

	PodMutationFns []PodMutationFunc
}

func NewInstallOptions

func NewInstallOptions() *InstallOptions

func (*InstallOptions) AddFlags

func (o *InstallOptions) AddFlags(fs *pflag.FlagSet)

func (*InstallOptions) Complete

func (o *InstallOptions) Complete() error

func (*InstallOptions) Run

func (o *InstallOptions) Run(ctx context.Context) error

func (*InstallOptions) Validate

func (o *InstallOptions) Validate() error

func (*InstallOptions) WithPodMutationFn

func (o *InstallOptions) WithPodMutationFn(podMutationFn PodMutationFunc) *InstallOptions

type PodMutationFunc

type PodMutationFunc func(pod *corev1.Pod) error

PodMutationFunc is a function that has a chance at changing the pod before it is created

Jump to

Keyboard shortcuts

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