Skip to content

Commit ea0c0b8

Browse files
committed
test flant#2
1 parent 7a30899 commit ea0c0b8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkg/hook/hook.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import (
2121
"github.com/flant/shell-operator/pkg/metric_storage/operation"
2222
. "github.com/flant/shell-operator/pkg/webhook/admission/types"
2323
"github.com/flant/shell-operator/pkg/webhook/conversion"
24+
utils "github.com/flant/shell-operator/pkg/utils/labels"
2425
)
2526

2627
type CommonHook interface {
@@ -162,7 +163,8 @@ func (h *Hook) Run(_ BindingType, context []BindingContext, logLabels map[string
162163
if err != nil {
163164
return result, fmt.Errorf("can't read object patch file: %s", err)
164165
}
165-
fmt.Println(result.KubernetesPatchBytes)
166+
logEntry := log.WithFields(utils.LabelsToLogFields(logLabels))
167+
logEntry.Infof("KubernetesPatchBytes %s", result.KubernetesPatchBytes)
166168

167169
return result, nil
168170
}

0 commit comments

Comments
 (0)