Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(operator): Fix the lint for the unused fields #500

Merged
merged 1 commit into from
Jul 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion controllers/chaosengine_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1621,7 +1621,7 @@ func TestReconcileForCreationAndRunning(t *testing.T) {

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

fakeClient := litmusFakeClientset.NewFakeClient()
fakeClient := litmusFakeClientset.NewClientBuilder().WithRuntimeObjects().Build()
if fakeClient == nil {
fmt.Println("litmusClient is not created")
}
Expand Down
5 changes: 0 additions & 5 deletions pkg/utils/volumeUtils.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@ import (
corev1 "k8s.io/api/core/v1"
)

var (
// hostpathTypeFile represents the hostpath type
hostpathTypeFile = corev1.HostPathFile
)

// CreateVolumeBuilders build Volume needed in execution of experiments
func CreateVolumeBuilders(configMaps []v1alpha1.ConfigMap, secrets []v1alpha1.Secret) []*volume.Builder {
volumeBuilderList := []*volume.Builder{}
Expand Down
Loading