package
0.0.0-20190319231021-e6272b887b81
Repository: https://github.com/marun/kubernetes.git
Documentation: pkg.go.dev
# Functions
AssertError checks that the provided error matches the expected output.
AssertFileExists is a utility function for kubeadm testing that asserts if the given folder contains the given files.
AssertFilesCount is a utility function for kubeadm testing that asserts if the given folder contains count files.
GetDefaultInternalConfig returns a defaulted kubeadmapi.InitConfiguration.
SetupEmptyFiles is a utility function for kubeadm testing that creates one or more empty files (touch).
SetupInitConfigurationFile is a utility function for kubeadm testing that writes a master configuration file into /config subfolder of a given temporary directory.
SetupPkiDirWithCertificateAuthorithy is a utility function for kubeadm testing that creates a CertificateAuthorithy cert/key pair into /pki subfolder of a given temporary directory.
SetupTempDir is a utility function for kubeadm testing, that creates a temporary directory NB.