You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
setupLog.Error(err, "unable to create controller", "controller", "Captain")
os.Exit(1)
}
However, multiple controllers in the same project can have the same Kind if they are in different groups. The group should also be provided qas context to differentiate logs from two controllers from different groups but the same kind.
In v2. when multi-group is enabled, each controller is provided with a logger adding it's kind as context:
kubebuilder/testdata/project-v2-multigroup/main.go
Lines 85 to 92 in 5dc6055
However, multiple controllers in the same project can have the same Kind if they are in different groups. The group should also be provided qas context to differentiate logs from two controllers from different groups but the same kind.
Code to modify:
kubebuilder/pkg/scaffold/internal/templates/v2/main.go
Lines 108 to 119 in 5dc6055
/kind feature
The text was updated successfully, but these errors were encountered: