Skip to content

Commit b8a4d01

Browse files
authored
cluster: remove xdg runtime warning message (#6461)
playing around with this a bit, i'm not sure it's really actionable. Signed-off-by: Nick Santos <[email protected]>
1 parent 9622112 commit b8a4d01

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

internal/controllers/core/cluster/reconciler.go

-10
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import (
55
"fmt"
66
"os"
77
"path/filepath"
8-
"sync"
98
"time"
109

1110
"github.com/docker/docker/client"
@@ -40,8 +39,6 @@ import (
4039

4140
const ArchUnknown string = "unknown"
4241

43-
var runtimeDirWarning = sync.Once{}
44-
4542
const (
4643
clientInitBackoff = 30 * time.Second
4744
clientHealthPollInterval = 15 * time.Second
@@ -402,13 +399,6 @@ func (r *Reconciler) openFrozenKubeConfigFile(ctx context.Context, nn types.Name
402399
}
403400
}
404401

405-
// From the spec: emit a warning if the runtime dir isn't available.
406-
// https://specifications.freedesktop.org/basedir-spec/latest/
407-
runtimeDirWarning.Do(func() {
408-
logger.Get(ctx).Warnf(
409-
"XDG Runtime directory not available. Storing temp kubeconfigs in: %s. Error: %v", path, err)
410-
})
411-
412402
path, err = r.base.StateFile(
413403
filepath.Join(string(r.apiServerName), "cluster", fmt.Sprintf("%s.yml", nn.Name)))
414404
if err != nil {

0 commit comments

Comments
 (0)