Skip to content

Commit

Permalink
scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
agouin committed Oct 18, 2023
1 parent 153cb45 commit 2d2d54a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion cmd/versioncheck.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,14 @@ func VersionCheckCmd() *cobra.Command {

cosmosFullNodeName := thisPod.Labels["app.kubernetes.io/name"]

kClient, err := client.New(config, client.Options{})
scheme, err := cosmosv1.SchemeBuilder.Build()
if err != nil {
panic(fmt.Errorf("failed to build scheme: %w", err))
}

kClient, err := client.New(config, client.Options{
Scheme: scheme,
})
if err != nil {
panic(fmt.Errorf("failed to create kube client: %w", err))
}
Expand Down

0 comments on commit 2d2d54a

Please sign in to comment.