Documentation ¶
Index ¶
- func NewWaiter() apiclient.Waiter
- func PrintDryRunFile(fileName, realDir, printDir string, w io.Writer) error
- func PrintDryRunFiles(files []FileToPrint, w io.Writer) error
- func PrintFilesIfDryRunning(needPrintManifest bool, manifestDir string, outputWriter io.Writer) error
- type FileToPrint
- type Waiter
- func (w *Waiter) SetTimeout(_ time.Duration)
- func (w *Waiter) WaitForAPI() error
- func (w *Waiter) WaitForControlPlaneComponents(cfg *kubeadmapi.ClusterConfiguration, apiServerAddress string) error
- func (w *Waiter) WaitForKubelet(healthzAddress string, healthzPort int32) error
- func (w *Waiter) WaitForPodsWithLabel(kvLabel string) error
- func (w *Waiter) WaitForStaticPodControlPlaneHashes(_ string) (map[string]string, error)
- func (w *Waiter) WaitForStaticPodHashChange(_, _, _ string) error
- func (w *Waiter) WaitForStaticPodSingleHash(_ string, _ string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrintDryRunFile ¶ added in v1.11.0
PrintDryRunFile is a helper method around PrintDryRunFiles
func PrintDryRunFiles ¶
func PrintDryRunFiles(files []FileToPrint, w io.Writer) error
PrintDryRunFiles prints the contents of the FileToPrints given to it to the writer w
Types ¶
type FileToPrint ¶
FileToPrint represents a temporary file on disk that might want to be aliased when printing Useful for things like loading a file from /tmp/ but saying to the user "Would write file foo to /etc/kubernetes/..."
func NewFileToPrint ¶
func NewFileToPrint(realPath, printPath string) FileToPrint
NewFileToPrint makes a new instance of FileToPrint with the specified arguments
type Waiter ¶
type Waiter struct{}
Waiter is an implementation of apiclient.Waiter that should be used for dry-running
func (*Waiter) SetTimeout ¶
SetTimeout is a no-op; we don't wait in this implementation
func (*Waiter) WaitForAPI ¶
WaitForAPI just returns a dummy nil, to indicate that the program should just proceed
func (*Waiter) WaitForControlPlaneComponents ¶ added in v1.30.0
func (w *Waiter) WaitForControlPlaneComponents(cfg *kubeadmapi.ClusterConfiguration, apiServerAddress string) error
WaitForControlPlaneComponents just returns a dummy nil, to indicate that the program should just proceed
func (*Waiter) WaitForKubelet ¶ added in v1.30.0
WaitForKubelet blocks until the kubelet /healthz endpoint returns 'ok'
func (*Waiter) WaitForPodsWithLabel ¶
WaitForPodsWithLabel just returns a dummy nil, to indicate that the program should just proceed
func (*Waiter) WaitForStaticPodControlPlaneHashes ¶
WaitForStaticPodControlPlaneHashes returns an empty hash for all control plane images;
func (*Waiter) WaitForStaticPodHashChange ¶ added in v1.10.2
WaitForStaticPodHashChange returns a dummy nil error in order for the flow to just continue as we're dryrunning