Documentation ¶
Index ¶
- func CheckKubernetes(skipCleanup bool) error
- type DeploymentResponse
- type KubeOutput
- func RunGetDeployment(name string) KubeOutput
- func RunGetNamespace(name string) KubeOutput
- func RunGetNodes() KubeOutput
- func RunGetPodByImage(name string) KubeOutput
- func RunGetService(svcName string) KubeOutput
- func RunKubectl(args ...string) KubeOutput
- func RunPod(name string, image string, count int64) KubeOutput
- type NamespaceResponse
- type NodeResponse
- type PodsResponse
- type ServiceResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckKubernetes ¶
CheckKubernetes runs checks against a cluster. It expects to find a configured `kubectl` binary in the path.
Types ¶
type DeploymentResponse ¶
type DeploymentResponse struct { Status struct { AvaiableReplicas int64 `json:"availableReplicas"` } `json:"status"` }
type KubeOutput ¶
func RunGetDeployment ¶
func RunGetDeployment(name string) KubeOutput
func RunGetNamespace ¶
func RunGetNamespace(name string) KubeOutput
func RunGetNodes ¶
func RunGetNodes() KubeOutput
func RunGetPodByImage ¶
func RunGetPodByImage(name string) KubeOutput
func RunGetService ¶
func RunGetService(svcName string) KubeOutput
func RunKubectl ¶
func RunKubectl(args ...string) KubeOutput
func (KubeOutput) FirstPodName ¶
func (ko KubeOutput) FirstPodName() string
func (KubeOutput) NamespaceStatus ¶
func (ko KubeOutput) NamespaceStatus() string
func (KubeOutput) NodeCount ¶
func (ko KubeOutput) NodeCount() int
func (KubeOutput) ObservedReplicaCount ¶
func (ko KubeOutput) ObservedReplicaCount() int64
func (KubeOutput) PodIPs ¶
func (ko KubeOutput) PodIPs() []string
func (KubeOutput) ServiceCluserIP ¶
func (ko KubeOutput) ServiceCluserIP() string
type NamespaceResponse ¶
type NamespaceResponse struct { Status struct { Phase string `json:"phase"` } `json:"status"` }
type NodeResponse ¶
type NodeResponse struct { Items []struct { Spec struct { Unschedulable bool `json:"unschedulable,omitempty"` } `json:"spec"` } `json:"items"` }
type PodsResponse ¶
type ServiceResponse ¶
type ServiceResponse struct { Spec struct { ClusterIP string `json:"clusterIP"` } `json:"spec"` }
Click to show internal directories.
Click to hide internal directories.