Documentation
¶
Index ¶
- func CompareContainerID(containerIDBefore [9]string, podDetails chaosTypes.PodDetails, ...) (bool, error)
- func CompareContainerRestartCount(containerDetailsBefore map[string][]interface{}, containerName string, ...) (bool, error)
- func CompareDeploymentResourceVersion(resourceVersionSumBefore int, podDetails chaosTypes.PodDetails, ...) (int, error)
- func ComparePodIP(podIpBefore [3]string, podDetails chaosTypes.PodDetails, ...) (bool, error)
- func ComparePodName(podNameBefore [3]string, podDetails chaosTypes.PodDetails, ...) (bool, error)
- func ComparePodResourceVersion(resourceVersionSumBefore int, podDetails chaosTypes.PodDetails, ...) (int, error)
- func ComparePodStartTime(startTimeBefore [3]*metav1.Time, podDetails chaosTypes.PodDetails, ...) (bool, error)
- func CompareStartedAt(startedAtBefore [9]metav1.Time, podDetails chaosTypes.PodDetails, ...) (bool, error)
- func GetTotalChaosDurationFromEngine(engineName string, expName string, ...) (string, error)
- func GetTotalChaosDurationFromExperiment(expName string, Clientset *chaosClient.LitmuschaosV1alpha1Client) (string, error)
- func InstallRbac(rbacPath string, rbacNamespace string, experimentName string, ...) (int, error)
- func JobLogs(experimentName string, jobNamespace string, engineName string, ...) (int, error)
- func RunnerPodStatus(runnerNamespace string, engineName string, client *kubernetes.Clientset) (int, error)
- func UpdateResultTable(experimentName string, testVerdict string, engineName string, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareContainerID ¶
func CompareContainerID(containerIDBefore [9]string, podDetails chaosTypes.PodDetails, client *kubernetes.Clientset) (bool, error)
CompareContainerID here we are comparing the containerIDs before chaos and after chaos ContainerID before chaos has to be recorded in the BDD only and passed here as an argument In this function we are getting containerID after chaos and checking if it changed or not. If the containerID will change then it will return true else false value.
func CompareContainerRestartCount ¶
func CompareContainerRestartCount(containerDetailsBefore map[string][]interface{}, containerName string, podDetails chaosTypes.PodDetails, client *kubernetes.Clientset) (bool, error)
In this function we are comparing the containerRestartCount before chaos and after chaos ContainerRestartCount before chaos has to be recorded in the form of map in BDD only and Passed as an argument here along with the container name.In this function we are getting containerRestartCount after chaos and checking if it is changed or not. If the restart count of given container is changed it will return false value.
func CompareDeploymentResourceVersion ¶
func CompareDeploymentResourceVersion(resourceVersionSumBefore int, podDetails chaosTypes.PodDetails, client *kubernetes.Clientset) (int, error)
In this function we are comparing the Resourse Version of pods before chaos and after chaos The sum of Resource Version before chaos has been recorded in the BDD only and passed here as an argument. In this function we are getting the sum of Resourse Version of the pod after chaos and checking if the different is 0 or not. If the difference of sum of resource version before chaos and after chaos is not equal to 0 then the resource version is changed.
func ComparePodIP ¶
func ComparePodIP(podIpBefore [3]string, podDetails chaosTypes.PodDetails, client *kubernetes.Clientset) (bool, error)
In this function we are comparing the PodIPs before chaos and after chaos PodIPs before chaos has to be recorded in the BDD only and passed here as an argument. In this function we are getting podIP after chaos and checking if it is changed or not. If it is changed then retun true else return false.
func ComparePodName ¶
func ComparePodName(podNameBefore [3]string, podDetails chaosTypes.PodDetails, client *kubernetes.Clientset) (bool, error)
In this function we are comparing the PodNames before chaos and after chaos PodNames before chaos has to be recorded in the BDD only and passed here as an argument. In this function we are getting podNames after chaos and checking if it is changed or not. If it is changed then retun true else return false.
func ComparePodResourceVersion ¶
func ComparePodResourceVersion(resourceVersionSumBefore int, podDetails chaosTypes.PodDetails, client *kubernetes.Clientset) (int, error)
In this function we are comparing the Resourse Version of containers before chaos and after chaos The sum of Resource Version before chaos has been recorded in the BDD only and passed here as an argument. In this function we are getting the sum of Resourse Version of the containers after chaos and checking if the different is 0 or not. If the difference of sum of resource version before chaos and after chaos is not equal to 0 then the resource version is changed.
func ComparePodStartTime ¶
func ComparePodStartTime(startTimeBefore [3]*metav1.Time, podDetails chaosTypes.PodDetails, client *kubernetes.Clientset) (bool, error)
In this function we are comparing the Pod Start Time's before chaos and after chaos Pod Start Time's before chaos has to be recorded in the BDD only and passed here as an argument. In this function we are getting pod Start Time after chaos and checking if it is changed or not. If it is changed then retun true else return false.
func CompareStartedAt ¶
func CompareStartedAt(startedAtBefore [9]metav1.Time, podDetails chaosTypes.PodDetails, client *kubernetes.Clientset) (bool, error)
In this function we are comparing the container Started At time's before chaos and after chaos container Start At Time before chaos has to be recorded in the BDD only and passed here as an argument. In this function we are getting container Start At Time after chaos and checking if it is changed or not. If it is changed then retun true else return false.
func GetTotalChaosDurationFromEngine ¶
func GetTotalChaosDurationFromEngine(engineName string, expName string, Clientset *chaosClient.LitmuschaosV1alpha1Client) (string, error)
Get the value of total chaos duration from the engine
func GetTotalChaosDurationFromExperiment ¶
func GetTotalChaosDurationFromExperiment(expName string, Clientset *chaosClient.LitmuschaosV1alpha1Client) (string, error)
Get the total chaos duration from experiment
func InstallRbac ¶
func InstallRbac(rbacPath string, rbacNamespace string, experimentName string, client *kubernetes.Clientset) (int, error)
InstallRbac function is for the Rbac Creation for indivisual experiments. we need to pass the address (From the chaos chart) of the Rbac file and the name of experiment and it will create the Rbac for the file.
func JobLogs ¶
func JobLogs(experimentName string, jobNamespace string, engineName string, client *kubernetes.Clientset) (int, error)
JobLogs The feature of the function is to wait for the job to get completed and then print the logs of the Job Pod.
func RunnerPodStatus ¶
func RunnerPodStatus(runnerNamespace string, engineName string, client *kubernetes.Clientset) (int, error)
RunnerPodStatus will check the status of runner pod and waits for it to come in running state
func UpdateResultTable ¶
func UpdateResultTable(experimentName string, testVerdict string, engineName string, clientSet *chaosClient.LitmuschaosV1alpha1Client) error
UpdateResultTable will update the result of pipelines in a table on github using python update script
Types ¶
This section is empty.