Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion internal/k8s/runtime.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func (r *runtimeAsync) Runtime(ctx context.Context) container.Runtime {
if isStatusErr {
status := statusErr.ErrStatus
if status.Code == http.StatusForbidden {
logger.Get(ctx).Warnf(
logger.Get(ctx).Debugf(
"Tilt could not read your node configuration\n"+
" Ask your Kubernetes admin for access to run `kubectl get nodes`.\n"+
" Detail: %v", err)
Expand Down
4 changes: 2 additions & 2 deletions internal/k8s/runtime_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
ktesting "k8s.io/client-go/testing"
)

func TestRuntimeForbidden(t *testing.T) {
func TestRuntimeReadNodeConfig(t *testing.T) {
cs := &fake.Clientset{}
cs.AddReactor("*", "*", func(action ktesting.Action) (handled bool, ret runtime.Object, err error) {
return true, nil, newForbiddenError()
Expand All @@ -24,7 +24,7 @@ func TestRuntimeForbidden(t *testing.T) {
runtimeAsync := newRuntimeAsync(core)

out := &bytes.Buffer{}
l := logger.NewLogger(logger.InfoLvl, out)
l := logger.NewLogger(logger.DebugLvl, out)
ctx := logger.WithLogger(context.Background(), l)
runtime := runtimeAsync.Runtime(ctx)
assert.Equal(t, container.RuntimeReadFailure, runtime)
Expand Down