Documentation ¶
Index ¶
- Constants
- func AddProxyConfigToCluster(ctx context.Context, sshRunner *ssh.Runner, ocConfig oc.Config, ...) error
- func ApproveCSRAndWaitForCertsRenewal(ctx context.Context, sshRunner *ssh.Runner, ocConfig oc.Config, ...) error
- func CheckCertsValidity(sshRunner *ssh.Runner) (map[string]bool, error)
- func CheckProxySettingsForOperator(ocConfig oc.Config, proxy *network.ProxyConfig, deployment, namespace string) (bool, error)
- func DeleteMCOLeaderLease(ctx context.Context, ocConfig oc.Config) error
- func DeleteOpenshiftAPIServerPods(ctx context.Context, ocConfig oc.Config) error
- func EnsureClusterIDIsNotEmpty(ctx context.Context, ocConfig oc.Config) error
- func EnsureGeneratedClientCAPresentInTheCluster(ctx context.Context, ocConfig oc.Config, sshRunner *ssh.Runner, ...) error
- func EnsurePullSecretPresentInTheCluster(ctx context.Context, ocConfig oc.Config, pullSec PullSecretLoader) error
- func EnsurePullSecretPresentOnInstanceDisk(sshRunner *ssh.Runner, pullSecret PullSecretLoader) error
- func EnsureSSHKeyPresentInTheCluster(ctx context.Context, ocConfig oc.Config, sshPublicKeyPath string) error
- func ForgetPullSecret() error
- func GenerateKubeAdminUserPassword() error
- func GenerateRandomPasswordHash(length int) (string, error)
- func GetKubeadminPassword() (string, error)
- func GetRootPartitionUsage(sshRunner *ssh.Runner) (int64, int64, error)
- func RemoveOldRenderedMachineConfig(ocConfig oc.Config) error
- func RemovePullSecretFromCluster(ctx context.Context, ocConfig oc.Config, sshRunner *ssh.Runner) error
- func StartMonitoring(ocConfig oc.Config) error
- func StoreInKeyring(pullSecret string) error
- func UpdateKubeAdminUserPassword(ctx context.Context, ocConfig oc.Config, newPassword string) error
- func WaitForAPIServer(ctx context.Context, ocConfig oc.Config) error
- func WaitForClusterStable(ctx context.Context, ip string, kubeconfigFilePath string, ...) error
- func WaitForOpenshiftResource(ctx context.Context, ocConfig oc.Config, resource string) error
- func WaitForPullSecretPresentOnInstanceDisk(ctx context.Context, sshRunner *ssh.Runner) error
- func WaitForRequestHeaderClientCaFile(ctx context.Context, sshRunner *ssh.Runner) error
- type PullSecretLoader
- type PullSecretMemoizer
- type Status
Constants ¶
View Source
const ( KubeletServerCert = "/var/lib/kubelet/pki/kubelet-server-current.pem" KubeletClientCert = "/var/lib/kubelet/pki/kubelet-client-current.pem" AggregatorClientCert = "/etc/kubernetes/static-pod-resources/kube-apiserver-certs/configmaps/aggregator-client-ca/ca-bundle.crt" )
Variables ¶
This section is empty.
Functions ¶
func AddProxyConfigToCluster ¶
func ApproveCSRAndWaitForCertsRenewal ¶ added in v1.20.0
func DeleteMCOLeaderLease ¶ added in v1.31.0
func DeleteOpenshiftAPIServerPods ¶ added in v1.14.0
func EnsureClusterIDIsNotEmpty ¶ added in v1.20.0
func EnsureGeneratedClientCAPresentInTheCluster ¶ added in v1.29.0
func EnsurePullSecretPresentInTheCluster ¶ added in v1.20.0
func EnsurePullSecretPresentOnInstanceDisk ¶ added in v1.20.0
func EnsurePullSecretPresentOnInstanceDisk(sshRunner *ssh.Runner, pullSecret PullSecretLoader) error
func EnsureSSHKeyPresentInTheCluster ¶ added in v1.29.0
func ForgetPullSecret ¶ added in v1.23.0
func ForgetPullSecret() error
func GenerateKubeAdminUserPassword ¶ added in v1.28.0
func GenerateKubeAdminUserPassword() error
GenerateKubeAdminUserPassword creates and put updated kubeadmin password to ~/.crc/machine/crc/kubeadmin-password
func GenerateRandomPasswordHash ¶ added in v1.24.0
generateRandomPasswordHash generates a hash of a random ASCII password 5char-5char-5char-5char Copied from openshift/installer https://github.com/openshift/installer/blob/master/pkg/asset/password/password.go
func GetKubeadminPassword ¶ added in v1.25.0
func GetRootPartitionUsage ¶
Return size of disk, used space in bytes and the mountpoint
func RemoveOldRenderedMachineConfig ¶ added in v1.30.0
func RemovePullSecretFromCluster ¶ added in v1.26.0
func StartMonitoring ¶ added in v1.21.0
func StoreInKeyring ¶ added in v1.28.0
func UpdateKubeAdminUserPassword ¶ added in v1.24.0
UpdateKubeAdminUserPassword updates the htpasswd secret
func WaitForAPIServer ¶ added in v1.21.0
func WaitForClusterStable ¶ added in v1.23.0
func WaitForClusterStable(ctx context.Context, ip string, kubeconfigFilePath string, proxy *network.ProxyConfig) error
WaitForClusterStable checks that the cluster is running a number of consecutive times
func WaitForOpenshiftResource ¶ added in v1.13.0
func WaitForPullSecretPresentOnInstanceDisk ¶ added in v1.30.0
Types ¶
type PullSecretLoader ¶ added in v1.23.0
func NewInteractivePullSecretLoader ¶ added in v1.23.0
func NewInteractivePullSecretLoader(config crcConfig.Storage) PullSecretLoader
func NewNonInteractivePullSecretLoader ¶ added in v1.23.0
func NewNonInteractivePullSecretLoader(config crcConfig.Storage, path string) PullSecretLoader
type PullSecretMemoizer ¶ added in v1.23.0
type PullSecretMemoizer struct { Getter PullSecretLoader // contains filtered or unexported fields }
func (*PullSecretMemoizer) Value ¶ added in v1.23.0
func (p *PullSecretMemoizer) Value() (string, error)
Click to show internal directories.
Click to hide internal directories.