cluster

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: May 4, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddProxyConfigToCluster

func AddProxyConfigToCluster(oc oc.OcConfig, proxy *network.ProxyConfig) error

func AddProxyToKubeletAndCriO

func AddProxyToKubeletAndCriO(sshRunner *ssh.SSHRunner, proxy *network.ProxyConfig) error

AddProxyToKubeletAndCriO adds the systemd drop-in proxy configuration file to the instance, both services (kubelet and crio) need to be restarted after this change. Since proxy operator is not able to make changes to in the kubelet/crio side, this is the job of machine config operator on the node and for crc this is not possible so we do need to put it here.

func AddPullSecret

func AddPullSecret(sshRunner *ssh.SSHRunner, oc oc.OcConfig, pullSec string) error

func CheckProxySettingsForOperator

func CheckProxySettingsForOperator(oc oc.OcConfig, proxy *network.ProxyConfig, deployment, namespace string) (bool, error)

func DeleteOpenshiftApiServerPods

func DeleteOpenshiftApiServerPods(oc oc.OcConfig) error

func GetRootPartitionUsage

func GetRootPartitionUsage(sshRunner *ssh.SSHRunner) (int64, int64, error)

Return size of disk, used space in bytes and the mountpoint

func UpdateClusterID

func UpdateClusterID(oc oc.OcConfig) error

func WaitForSsh

func WaitForSsh(sshRunner *ssh.SSHRunner) error

func WaitforRequestHeaderClientCaFile

func WaitforRequestHeaderClientCaFile(oc oc.OcConfig) error

Types

type CertExpiryState

type CertExpiryState int
const (
	Unknown CertExpiryState = iota
	CertNotExpired
	CertExpired
)

func CheckCertsValidity

func CheckCertsValidity(sshRunner *ssh.SSHRunner) (CertExpiryState, error)

CheckCertsValidity checks if the cluster certs have expired or going to expire in next 7 days

Jump to

Keyboard shortcuts

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