We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 646ad95 commit 4d945afCopy full SHA for 4d945af
internal/k8s/client.go
@@ -4,6 +4,7 @@ import (
4
"context"
5
"encoding/json"
6
"fmt"
7
+ "log/slog"
8
"path"
9
10
"k8s.io/client-go/kubernetes"
@@ -42,6 +43,7 @@ func NewClient(configPath string) (*Client, error) {
42
43
func (c *Client) GetRawResource(ctx context.Context, relativePath string) (map[string]any, error) {
44
body, err := c.client.RESTClient().Get().AbsPath(path.Join("apis", relativePath)).DoRaw(ctx)
45
if err != nil {
46
+ slog.Warn("failed to fetch resource", slog.Any("error", err))
47
return nil, err
48
}
49
0 commit comments