Skip to content

Commit d8d35c4

Browse files
committed
fix event types mismatch
Signed-off-by: Bruno Clermont <bruno@robotinfra.com>
1 parent 53dfe8b commit d8d35c4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pkg/controller/init_container.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ func (c *StashController) handleInitContainerInjectionSuccess(ref *core.ObjectRe
170170
c.kubeClient,
171171
eventer.EventSourceWorkloadController,
172172
ref,
173-
core.EventTypeWarning,
173+
core.EventTypeNormal,
174174
eventer.EventReasonInitContainerInjectionSucceeded,
175175
fmt.Sprintf("Successfully injected stash init-container into %s %s/%s.", ref.Kind, ref.Namespace, ref.Name),
176176
)
@@ -188,7 +188,7 @@ func (c *StashController) handleInitContainerDeletionSuccess(ref *core.ObjectRef
188188
c.kubeClient,
189189
eventer.EventSourceWorkloadController,
190190
ref,
191-
core.EventTypeWarning,
191+
core.EventTypeNormal,
192192
eventer.EventReasonInitContainerDeletionSucceeded,
193193
fmt.Sprintf("Successfully stash init-container from %s %s/%s.", ref.Kind, ref.Namespace, ref.Name),
194194
)

pkg/controller/sidecar.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ func (c *StashController) handleSidecarInjectionSuccess(w *wapi.Workload) error
341341
c.kubeClient,
342342
eventer.EventSourceWorkloadController,
343343
w.Object,
344-
core.EventTypeWarning,
344+
core.EventTypeNormal,
345345
eventer.EventReasonSidecarInjectionSucceeded,
346346
fmt.Sprintf("Successfully injected stash sidecar into %s %s/%s.", w.Kind, w.Namespace, w.Name),
347347
)
@@ -356,7 +356,7 @@ func (c *StashController) handleSidecarDeletionSuccess(w *wapi.Workload) error {
356356
c.kubeClient,
357357
eventer.EventSourceWorkloadController,
358358
w.Object,
359-
core.EventTypeWarning,
359+
core.EventTypeNormal,
360360
eventer.EventReasonSidecarDeletionSucceeded,
361361
fmt.Sprintf("Successfully removed stash sidecar from %s %s/%s.", w.Kind, w.Namespace, w.Name),
362362
)

0 commit comments

Comments
 (0)