Documentation ¶
Index ¶
- func AddProxyConfigToCluster(ocConfig oc.OcConfig, proxy *network.ProxyConfig) error
- func AddProxyToKubeletAndCriO(sshRunner *ssh.SSHRunner, proxy *network.ProxyConfig) error
- func AddPullSecret(sshRunner *ssh.SSHRunner, ocConfig oc.OcConfig, pullSec string) error
- func ApproveNodeCSR(ocConfig oc.OcConfig) error
- func CheckProxySettingsForOperator(ocConfig oc.OcConfig, proxy *network.ProxyConfig, deployment, namespace string) (bool, error)
- func DeleteOpenshiftApiServerPods(ocConfig oc.OcConfig) error
- func GetRootPartitionUsage(sshRunner *ssh.SSHRunner) (int64, int64, error)
- func RegenerateCertificates(sshRunner *ssh.SSHRunner, ocConfig oc.OcConfig) error
- func UpdateClusterID(ocConfig oc.OcConfig) error
- func WaitForOpenshiftResource(ocConfig oc.OcConfig, resource string) error
- func WaitForSsh(sshRunner *ssh.SSHRunner) error
- func WaitforRequestHeaderClientCaFile(ocConfig oc.OcConfig) error
- type CertExpiryState
- type ClusterStatus
- type K8sResource
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddProxyConfigToCluster ¶
func AddProxyConfigToCluster(ocConfig 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 ApproveNodeCSR ¶ added in v1.13.0
ApproveNodeCSR approves the certificate for the node.
func GetRootPartitionUsage ¶
Return size of disk, used space in bytes and the mountpoint
func RegenerateCertificates ¶ added in v1.13.0
func UpdateClusterID ¶
func WaitForOpenshiftResource ¶ added in v1.13.0
func WaitForSsh ¶
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
type ClusterStatus ¶ added in v1.13.0
func GetClusterOperatorStatus ¶ added in v1.13.0
func GetClusterOperatorStatus(ocConfig oc.OcConfig) (*ClusterStatus, error)
type K8sResource ¶ added in v1.13.0
type K8sResource struct { Items []struct { Metadata struct { Name string `json:"name"` } `json:"metadata"` Status struct { Conditions []struct { LastTransitionTime time.Time `json:"lastTransitionTime"` Reason string `json:"reason"` Status string `json:"status"` Type string `json:"type"` } `json:"conditions"` } `json:"status,omitempty"` } `json:"items"` }
Click to show internal directories.
Click to hide internal directories.