Skip to content

Commit

Permalink
Merge pull request #1093 from robotinfra/master
Browse files Browse the repository at this point in the history
  • Loading branch information
tamalsaha authored May 1, 2020
2 parents 53dfe8b + ef2d57e commit 9fc4665
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions pkg/controller/init_container.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ func (c *StashController) handleInitContainerInjectionSuccess(ref *core.ObjectRe
c.kubeClient,
eventer.EventSourceWorkloadController,
ref,
core.EventTypeWarning,
core.EventTypeNormal,
eventer.EventReasonInitContainerInjectionSucceeded,
fmt.Sprintf("Successfully injected stash init-container into %s %s/%s.", ref.Kind, ref.Namespace, ref.Name),
)
Expand All @@ -188,7 +188,7 @@ func (c *StashController) handleInitContainerDeletionSuccess(ref *core.ObjectRef
c.kubeClient,
eventer.EventSourceWorkloadController,
ref,
core.EventTypeWarning,
core.EventTypeNormal,
eventer.EventReasonInitContainerDeletionSucceeded,
fmt.Sprintf("Successfully stash init-container from %s %s/%s.", ref.Kind, ref.Namespace, ref.Name),
)
Expand Down
4 changes: 2 additions & 2 deletions pkg/controller/restore_session.go
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ func (c *StashController) setRestoreSessionRunning(restoreSession *api_v1beta1.R
restoreSession,
core.EventTypeNormal,
eventer.EventReasonRestoreJobCreated,
fmt.Sprintf("restore job has been created succesfully for RestoreSession %s/%s", restoreSession.Namespace, restoreSession.Name),
fmt.Sprintf("restore job has been created successfully for RestoreSession %s/%s", restoreSession.Namespace, restoreSession.Name),
)

return err
Expand Down Expand Up @@ -582,7 +582,7 @@ func (c *StashController) setRestoreSessionSucceeded(restoreSession *api_v1beta1
restoreSession,
core.EventTypeNormal,
eventer.EventReasonRestoreSessionSucceeded,
fmt.Sprintf("restore has been completed succesfully for RestoreSession %s/%s", restoreSession.Namespace, restoreSession.Name),
fmt.Sprintf("restore has been completed successfully for RestoreSession %s/%s", restoreSession.Namespace, restoreSession.Name),
)
if err != nil {
log.Errorf("failed to write event in RestoreSession %s/%s. Reason: %v", restoreSession.Namespace, restoreSession.Name, err)
Expand Down
4 changes: 2 additions & 2 deletions pkg/controller/sidecar.go
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ func (c *StashController) handleSidecarInjectionSuccess(w *wapi.Workload) error
c.kubeClient,
eventer.EventSourceWorkloadController,
w.Object,
core.EventTypeWarning,
core.EventTypeNormal,
eventer.EventReasonSidecarInjectionSucceeded,
fmt.Sprintf("Successfully injected stash sidecar into %s %s/%s.", w.Kind, w.Namespace, w.Name),
)
Expand All @@ -356,7 +356,7 @@ func (c *StashController) handleSidecarDeletionSuccess(w *wapi.Workload) error {
c.kubeClient,
eventer.EventSourceWorkloadController,
w.Object,
core.EventTypeWarning,
core.EventTypeNormal,
eventer.EventReasonSidecarDeletionSucceeded,
fmt.Sprintf("Successfully removed stash sidecar from %s %s/%s.", w.Kind, w.Namespace, w.Name),
)
Expand Down

0 comments on commit 9fc4665

Please sign in to comment.