From 254d1c060ace45f929334d24b4c2d0d614029027 Mon Sep 17 00:00:00 2001 From: Daniel Pacak Date: Tue, 12 Apr 2022 19:37:30 +0200 Subject: [PATCH] chore: fix Go code formatting (#1137) Signed-off-by: Daniel Pacak --- pkg/plugin/trivy/plugin.go | 8 ++++---- pkg/plugin/trivy/plugin_test.go | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pkg/plugin/trivy/plugin.go b/pkg/plugin/trivy/plugin.go index 045b0643f..ddf3ea196 100644 --- a/pkg/plugin/trivy/plugin.go +++ b/pkg/plugin/trivy/plugin.go @@ -247,10 +247,10 @@ func NewPlugin(clock ext.Clock, idGenerator ext.IDGenerator, client client.Clien func (p *plugin) Init(ctx starboard.PluginContext) error { return ctx.EnsureConfig(starboard.PluginConfig{ Data: map[string]string{ - keyTrivyImageRef: "docker.io/aquasec/trivy:0.25.2", - keyTrivySeverity: "UNKNOWN,LOW,MEDIUM,HIGH,CRITICAL", - keyTrivyMode: string(Standalone), - keyTrivyTimeout: "5m0s", + keyTrivyImageRef: "docker.io/aquasec/trivy:0.25.2", + keyTrivySeverity: "UNKNOWN,LOW,MEDIUM,HIGH,CRITICAL", + keyTrivyMode: string(Standalone), + keyTrivyTimeout: "5m0s", keyTrivyDBRepository: defaultDBRepository, keyResourcesRequestsCPU: "100m", diff --git a/pkg/plugin/trivy/plugin_test.go b/pkg/plugin/trivy/plugin_test.go index 6c3c50073..e17c7a344 100644 --- a/pkg/plugin/trivy/plugin_test.go +++ b/pkg/plugin/trivy/plugin_test.go @@ -584,8 +584,8 @@ func TestPlugin_GetScanJobSpec(t *testing.T) { { name: "Standalone mode without insecure registry", config: map[string]string{ - "trivy.imageRef": "docker.io/aquasec/trivy:0.14.0", - "trivy.mode": string(trivy.Standalone), + "trivy.imageRef": "docker.io/aquasec/trivy:0.14.0", + "trivy.mode": string(trivy.Standalone), "trivy.dbRepository": defaultDBRepository, "trivy.resources.requests.cpu": "100m", "trivy.resources.requests.memory": "100M",