Skip to content

Commit

Permalink
Evacuation ctrl, recorder: Rename componentName
Browse files Browse the repository at this point in the history
Currently, the evacuation controller's recorder
has the `disruptionbudget-controller` componentName.

This makes events emitted by evacuation controller,
indistinguishable from events emitted by disruption budget controller.

Rename the recorder's componentName to `evacuation-controller`.

Signed-off-by: Orel Misan <[email protected]>
  • Loading branch information
orelmisan committed Feb 5, 2024
1 parent 0ad95ac commit 31a15e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/virt-controller/watch/application.go
Original file line number Diff line number Diff line change
Expand Up @@ -757,7 +757,7 @@ func (vca *VirtControllerApp) initWorkloadUpdaterController() {

func (vca *VirtControllerApp) initEvacuationController() {
var err error
recorder := vca.newRecorder(k8sv1.NamespaceAll, "disruptionbudget-controller")
recorder := vca.newRecorder(k8sv1.NamespaceAll, "evacuation-controller")
vca.evacuationController, err = evacuation.NewEvacuationController(
vca.vmiInformer,
vca.migrationInformer,
Expand Down

0 comments on commit 31a15e3

Please sign in to comment.