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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
- (Feature) OPS CLI with Arango Task
- (Bugfix) Allow ArangoBackup Creation during Upload state
- (Hotfix) Fix `ArangoDeployment` SubResource in CRD auto-installer
- (Bugfix) Fix Operator Logger NPE

## [1.2.13](https://github.com/arangodb/kube-arangodb/tree/1.2.13) (2022-06-07)
- (Bugfix) Fix arangosync members state inspection
Expand Down
7 changes: 7 additions & 0 deletions pkg/operator/operator.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ const (
initRetryWaitTime = 30 * time.Second
)

var logger = logging.Global().RegisterAndGetLogger("operator", logging.Info)

type operatorV2type string

const (
Expand Down Expand Up @@ -129,6 +131,7 @@ func NewOperator(config Config, deps Dependencies) (*Operator, error) {
deploymentReplications: make(map[string]*replication.DeploymentReplication),
localStorages: make(map[string]*storage.LocalStorage),
}
o.log = logger.WrapObj(o)
return o, nil
}

Expand Down Expand Up @@ -311,3 +314,7 @@ func (o *Operator) onStartOperatorV2(operatorType operatorV2type, stop <-chan st

<-stop
}

func (o *Operator) WrapLogger(in *zerolog.Event) *zerolog.Event {
return in.Str("namespace", o.Namespace)
}