Skip to content

Commit 1e6c1b2

Browse files
committed
fix(lint): Skip linter for deprecated events API usage
The events API shape changes in the new version, so the change will be more elaborate. Not now. Revisit later.
1 parent 290f1e8 commit 1e6c1b2

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

agent/main.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,12 +208,13 @@ func main() {
208208
if skipInstallation {
209209
logger.Info("skip-installation flag set, skipping installer initialisation")
210210
}
211+
211212
hostReconciler := &reconciler.HostReconciler{
212213
Client: k8sClient,
213214
CmdRunner: cloudinit.CmdRunner{},
214215
FileWriter: cloudinit.FileWriter{},
215216
TemplateParser: setupTemplateParser(),
216-
Recorder: mgr.GetEventRecorderFor("hostagent-controller"),
217+
Recorder: mgr.GetEventRecorderFor("hostagent-controller"), //nolint:staticcheck,SA1019
217218
SkipK8sInstallation: skipInstallation,
218219
DownloadPath: downloadpath,
219220
}

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ func main() {
9898
Client: mgr.GetClient(),
9999
Scheme: mgr.GetScheme(),
100100
Tracker: tracker,
101-
Recorder: mgr.GetEventRecorderFor("byomachine-controller"),
101+
Recorder: mgr.GetEventRecorderFor("byomachine-controller"), //nolint:staticcheck,SA1019
102102
}).SetupWithManager(context.TODO(), mgr); err != nil {
103103
setupLog.Error(err, "unable to create controller", "controller", "ByoMachine")
104104
os.Exit(1)

0 commit comments

Comments
 (0)