Skip to content

Commit 7eb13fb

Browse files
committed
Fix lint
1 parent f194608 commit 7eb13fb

3 files changed

Lines changed: 7 additions & 2 deletions

File tree

cmd/root.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@ var (
3333
var rootCmd = &cobra.Command{
3434
Use: "opslevel-agent",
3535
Short: "",
36-
Long: ``,
36+
Long: fmt.Sprintf(`
37+
38+
opslevel-agent commit: %s (%s)
39+
`, _commit, _date),
3740
Run: func(cmd *cobra.Command, args []string) {
3841
cluster := viper.GetString("cluster")
3942
integration := viper.GetString("integration")

controller/client.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ func NewClient() (*Client, error) {
2222
loadingRules := clientcmd.NewDefaultClientConfigLoadingRules()
2323
configOverrides := &clientcmd.ConfigOverrides{}
2424
config, err := clientcmd.NewNonInteractiveDeferredLoadingClientConfig(loadingRules, configOverrides).ClientConfig()
25+
if err != nil {
26+
return nil, fmt.Errorf("failed to load client config: %w", err)
27+
}
2528

2629
client, err := dynamic.NewForConfig(config)
2730
if err != nil {

workers/k8s.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ type K8SWorker struct {
1818
cluster string
1919
integration string
2020
client *opslevel.Client
21-
controller *controller.Controller
2221
}
2322

2423
func NewK8SWorker(ctx context.Context, wg *sync.WaitGroup, cluster string, integration string, selectors []controller.Selector, client *opslevel.Client, resync, flush time.Duration) {

0 commit comments

Comments
 (0)