Skip to content

Commit d5fc103

Browse files
Merge pull request #225 from lpiwowar/bugfix/fix-lint-issues
Fix lint issues
2 parents 4785f09 + e69586e commit d5fc103

File tree

2 files changed

+8
-16
lines changed

2 files changed

+8
-16
lines changed

api/v1beta1/common_webhook.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,19 @@ package v1beta1
33
const (
44
// ErrPrivilegedModeRequired
55
ErrPrivilegedModeRequired = "%s.Spec.Privileged is requied in order to successfully " +
6-
"execute tests with the provided configuration."
6+
"execute tests with the provided configuration."
77
)
88

99
const (
1010
// WarnPrivilegedModeOn
1111
WarnPrivilegedModeOn = "%s.Spec.Privileged is set to true. This means that test pods " +
12-
"are spawned with allowPrivilegedEscalation: true and default " +
13-
"capabilities on top of those required by the test operator " +
14-
"(NET_ADMIN, NET_RAW)."
12+
"are spawned with allowPrivilegedEscalation: true and default " +
13+
"capabilities on top of those required by the test operator " +
14+
"(NET_ADMIN, NET_RAW)."
1515

1616
// WarnPrivilegedModeOff
1717
WarnPrivilegedModeOff = "%[1]s.Spec.Privileged is set to false. Note, that a certain " +
18-
"set of tests might fail, as this configuration may be " +
19-
"required for the tests to run successfully. Before enabling" +
20-
"this parameter, consult documentation of the %[1]s CR."
18+
"set of tests might fail, as this configuration may be " +
19+
"required for the tests to run successfully. Before enabling" +
20+
"this parameter, consult documentation of the %[1]s CR."
2121
)

controllers/horizontest_controller.go

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,7 @@ func (r *HorizonTestReconciler) GetLogger(ctx context.Context) logr.Logger {
5757
//+kubebuilder:rbac:groups="",resources=pods,verbs=create;delete;get;list;patch;update;watch
5858
//+kubebuilder:rbac:groups="",resources=persistentvolumeclaims,verbs=get;list;create;update;watch;patch
5959

60-
// Reconcile is part of the main kubernetes reconciliation loop which aims to
61-
// move the current state of the cluster closer to the desired state.
62-
// TODO(user): Modify the Reconcile function to compare the state specified by
63-
// the HorizonTest object against the actual cluster state, and then
64-
// perform operations to make the cluster state reflect the state specified by
65-
// the user.
66-
//
67-
// For more details, check Reconcile and its Result here:
68-
// - https://pkg.go.dev/sigs.k8s.io/[email protected]/pkg/reconcile
60+
// Reconcile - HorizonTest
6961
func (r *HorizonTestReconciler) Reconcile(ctx context.Context, req ctrl.Request) (result ctrl.Result, _err error) {
7062
Log := r.GetLogger(ctx)
7163

0 commit comments

Comments
 (0)