installerpod

package
v0.0.0-...-64780a4 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 29 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewInstaller

func NewInstaller(ctx context.Context) *cobra.Command

Types

type InstallOptions

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

	Revision  string
	NodeName  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

	// StaticPodManifestsLockFile used to coordinate work between multiple processes when writing static pod manifests
	StaticPodManifestsLockFile string

	PodMutationFns []PodMutationFunc

	KubeletVersion string
}

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