UNPKG

check-kubernetes-cluster-fixed

Version:
70 lines (69 loc) 2.42 kB
interface KubernetesObjectParams { context: string; namespace: string; kind: string; k8sObj: string; yaml: string; } interface DeploymentParams { context: string; namespace: string; k8sObj: string; } interface DeploymentPodParams { context: string; namespace: string; deployment: string; } interface DeploymentsWithLabelsParams { context: string; namespace: string; labels: string; instances: number; } interface StatefulSetParams { context: string; namespace: string; k8sObj: string; } interface DaemonSetParams { context: string; namespace: string; k8sObj: string; } interface K8sObjectIsPresentParams { context: string; namespace?: string; k8sType: string; k8sObj: string; } interface GenericCommandParams { command: string; responseContains?: string; } interface CommandOutputParams { command: string; } interface CurlInPodParams { curlCommand: string; podName: string; namespace: string; } interface CurlInDeploymentParams { curlCommand: string; deploymentName: string; namespace: string; context: string; } export declare function checkKubernetesObject({ context, namespace, kind, k8sObj, yaml }: KubernetesObjectParams): Promise<void>; export declare function checkDeployment({ context, namespace, k8sObj }: DeploymentParams): Promise<void>; export declare function checkDeploymentHasPod({ context, namespace, deployment }: DeploymentPodParams): Promise<void>; export declare function checkDeploymentsWithLabels({ context, namespace, labels, instances }: DeploymentsWithLabelsParams): Promise<void>; export declare function checkStatefulSet({ context, namespace, k8sObj }: StatefulSetParams): Promise<void>; export declare function checkDaemonSet({ context, namespace, k8sObj }: DaemonSetParams): Promise<void>; export declare function k8sObjectIsPresent({ context, namespace, k8sType, k8sObj }: K8sObjectIsPresentParams): void; export declare function genericCommand({ command, responseContains }: GenericCommandParams): Promise<void>; export declare function getOutputForCommand({ command }: CommandOutputParams): string; export declare function curlInPod({ curlCommand, podName, namespace }: CurlInPodParams): string; export declare function curlInDeployment({ curlCommand, deploymentName, namespace, context }: CurlInDeploymentParams): Promise<string>; export {};