Skip to content

Commit

Permalink
Make new linter happy
Browse files Browse the repository at this point in the history
  • Loading branch information
David Kowalski committed May 21, 2020
1 parent 4305780 commit d4c538e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/manager/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ func init() {
Cmd.Flags().Bool(
operator.EnableAutodiscoverRBACSetup,
true,
fmt.Sprintf("Determines whether the operator should set up role, binding and service account for Beats autodiscover feature"),
"Determines whether the operator should set up role, binding and service account for Beats autodiscover feature",
)

// enable using dashed notation in flags and underscores in env
Expand Down
3 changes: 1 addition & 2 deletions pkg/apis/beat/v1beta1/webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ package v1beta1

import (
"errors"
"fmt"

"github.com/elastic/cloud-on-k8s/pkg/utils/stringsutil"
apierrors "k8s.io/apimachinery/pkg/api/errors"
Expand Down Expand Up @@ -108,7 +107,7 @@ func checkSupportedVersion(b *Beat) field.ErrorList {

func checkAtMostOneDeploymentOption(b *Beat) field.ErrorList {
if b.Spec.DaemonSet != nil && b.Spec.Deployment != nil {
msg := fmt.Sprintf("Specify either daemonSet or deployment, not both")
msg := "Specify either daemonSet or deployment, not both"
return field.ErrorList{
field.Forbidden(field.NewPath("spec").Child("daemonSet"), msg),
field.Forbidden(field.NewPath("spec").Child("deployment"), msg),
Expand Down

0 comments on commit d4c538e

Please sign in to comment.