fixing gofmt check
Signed-off-by: Adarsh kumar <adarsh.kumar@harness.io>
This commit is contained in:
parent
852d1203d4
commit
ccd88854bd
|
|
@ -15,8 +15,8 @@ limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// Package v1alpha1 contains API Schema definitions for the litmuschaos.io v1alpha1 API group
|
// Package v1alpha1 contains API Schema definitions for the litmuschaos.io v1alpha1 API group
|
||||||
//+kubebuilder:object:generate=true
|
// +kubebuilder:object:generate=true
|
||||||
//+groupName=litmuschaos.io
|
// +groupName=litmuschaos.io
|
||||||
package v1alpha1
|
package v1alpha1
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|
|
||||||
|
|
@ -37,14 +37,14 @@ var localSchemeBuilder = runtime.SchemeBuilder{
|
||||||
// AddToScheme adds all types of this clientset into the given scheme. This allows composition
|
// AddToScheme adds all types of this clientset into the given scheme. This allows composition
|
||||||
// of clientsets, like in:
|
// of clientsets, like in:
|
||||||
//
|
//
|
||||||
// import (
|
// import (
|
||||||
// "k8s.io/client-go/kubernetes"
|
// "k8s.io/client-go/kubernetes"
|
||||||
// clientsetscheme "k8s.io/client-go/kubernetes/scheme"
|
// clientsetscheme "k8s.io/client-go/kubernetes/scheme"
|
||||||
// aggregatorclientsetscheme "k8s.io/kube-aggregator/pkg/client/clientset_generated/clientset/scheme"
|
// aggregatorclientsetscheme "k8s.io/kube-aggregator/pkg/client/clientset_generated/clientset/scheme"
|
||||||
// )
|
// )
|
||||||
//
|
//
|
||||||
// kclientset, _ := kubernetes.NewForConfig(c)
|
// kclientset, _ := kubernetes.NewForConfig(c)
|
||||||
// _ = aggregatorclientsetscheme.AddToScheme(clientsetscheme.Scheme)
|
// _ = aggregatorclientsetscheme.AddToScheme(clientsetscheme.Scheme)
|
||||||
//
|
//
|
||||||
// After this, RawExtensions in Kubernetes types will serialize kube-aggregator types
|
// After this, RawExtensions in Kubernetes types will serialize kube-aggregator types
|
||||||
// correctly.
|
// correctly.
|
||||||
|
|
|
||||||
|
|
@ -37,14 +37,14 @@ var localSchemeBuilder = runtime.SchemeBuilder{
|
||||||
// AddToScheme adds all types of this clientset into the given scheme. This allows composition
|
// AddToScheme adds all types of this clientset into the given scheme. This allows composition
|
||||||
// of clientsets, like in:
|
// of clientsets, like in:
|
||||||
//
|
//
|
||||||
// import (
|
// import (
|
||||||
// "k8s.io/client-go/kubernetes"
|
// "k8s.io/client-go/kubernetes"
|
||||||
// clientsetscheme "k8s.io/client-go/kubernetes/scheme"
|
// clientsetscheme "k8s.io/client-go/kubernetes/scheme"
|
||||||
// aggregatorclientsetscheme "k8s.io/kube-aggregator/pkg/client/clientset_generated/clientset/scheme"
|
// aggregatorclientsetscheme "k8s.io/kube-aggregator/pkg/client/clientset_generated/clientset/scheme"
|
||||||
// )
|
// )
|
||||||
//
|
//
|
||||||
// kclientset, _ := kubernetes.NewForConfig(c)
|
// kclientset, _ := kubernetes.NewForConfig(c)
|
||||||
// _ = aggregatorclientsetscheme.AddToScheme(clientsetscheme.Scheme)
|
// _ = aggregatorclientsetscheme.AddToScheme(clientsetscheme.Scheme)
|
||||||
//
|
//
|
||||||
// After this, RawExtensions in Kubernetes types will serialize kube-aggregator types
|
// After this, RawExtensions in Kubernetes types will serialize kube-aggregator types
|
||||||
// correctly.
|
// correctly.
|
||||||
|
|
|
||||||
|
|
@ -49,7 +49,7 @@ var (
|
||||||
ResultCRDName = "chaosresults.litmuschaos.io"
|
ResultCRDName = "chaosresults.litmuschaos.io"
|
||||||
)
|
)
|
||||||
|
|
||||||
//EngineInfo Related information
|
// EngineInfo Related information
|
||||||
type EngineInfo struct {
|
type EngineInfo struct {
|
||||||
Instance *litmuschaosv1alpha1.ChaosEngine
|
Instance *litmuschaosv1alpha1.ChaosEngine
|
||||||
AppInfo litmuschaosv1alpha1.ApplicationParams
|
AppInfo litmuschaosv1alpha1.ApplicationParams
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@ import (
|
||||||
corev1 "k8s.io/api/core/v1"
|
corev1 "k8s.io/api/core/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
//VolumeOpts is a strcuture for all volume related operations
|
// VolumeOpts is a strcuture for all volume related operations
|
||||||
type VolumeOpts struct {
|
type VolumeOpts struct {
|
||||||
VolumeMounts []corev1.VolumeMount
|
VolumeMounts []corev1.VolumeMount
|
||||||
VolumeBuilders []*volume.Builder
|
VolumeBuilders []*volume.Builder
|
||||||
|
|
|
||||||
|
|
@ -119,7 +119,7 @@ var _ = BeforeSuite(func() {
|
||||||
klog.Infoln("Chaos-Operator is in running state")
|
klog.Infoln("Chaos-Operator is in running state")
|
||||||
})
|
})
|
||||||
|
|
||||||
//BDD Tests to check secondary resources
|
// BDD Tests to check secondary resources
|
||||||
var _ = Describe("BDD on chaos-operator", func() {
|
var _ = Describe("BDD on chaos-operator", func() {
|
||||||
|
|
||||||
// BDD TEST CASE 1
|
// BDD TEST CASE 1
|
||||||
|
|
@ -505,7 +505,7 @@ var _ = Describe("BDD on chaos-operator", func() {
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
//Deleting all unused resources
|
// Deleting all unused resources
|
||||||
var _ = AfterSuite(func() {
|
var _ = AfterSuite(func() {
|
||||||
|
|
||||||
//Deleting Pod Delete sa
|
//Deleting Pod Delete sa
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue