Skip to content

Commit bb7ea39

Browse files
authored
chore(operator): Fix the lint (#500)
Signed-off-by: Shubham Chaudhary <shubham.chaudhary@harness.io>
1 parent e96a7ee commit bb7ea39

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

controllers/chaosengine_controller_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1621,7 +1621,7 @@ func TestReconcileForCreationAndRunning(t *testing.T) {
16211621

16221622
func CreateFakeClient(t *testing.T) *ChaosEngineReconciler {
16231623

1624-
fakeClient := litmusFakeClientset.NewFakeClient()
1624+
fakeClient := litmusFakeClientset.NewClientBuilder().WithRuntimeObjects().Build()
16251625
if fakeClient == nil {
16261626
fmt.Println("litmusClient is not created")
16271627
}

pkg/utils/volumeUtils.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,6 @@ import (
66
corev1 "k8s.io/api/core/v1"
77
)
88

9-
var (
10-
// hostpathTypeFile represents the hostpath type
11-
hostpathTypeFile = corev1.HostPathFile
12-
)
13-
149
// CreateVolumeBuilders build Volume needed in execution of experiments
1510
func CreateVolumeBuilders(configMaps []v1alpha1.ConfigMap, secrets []v1alpha1.Secret) []*volume.Builder {
1611
volumeBuilderList := []*volume.Builder{}

0 commit comments

Comments
 (0)