-
Notifications
You must be signed in to change notification settings - Fork 899
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add event for cluster controller #749
Add event for cluster controller #749
Conversation
a16e329
to
812b147
Compare
812b147
to
810b2ba
Compare
810b2ba
to
bbed507
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for letting this sit so long, I missed it from my radar.
@@ -113,6 +115,7 @@ func (c *Controller) syncCluster(cluster *clusterv1alpha1.Cluster) (controllerru | |||
// create execution space | |||
err := c.createExecutionSpace(cluster) | |||
if err != nil { | |||
c.EventRecorder.Event(cluster, corev1.EventTypeWarning, fmt.Sprintf("Failed %s", eventTypeCreateExecutionNamespace), err.Error()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
c.EventRecorder.Event(cluster, corev1.EventTypeWarning, fmt.Sprintf("Failed %s", eventTypeCreateExecutionNamespace), err.Error()) | |
c.EventRecorder.Event(cluster, corev1.EventTypeWarning, eventReasonCreateExecutionNamespaceFailed, err.Error()) |
The reason might be proceeded by computer, so keep it short and clean.
cc @pigletfly |
/remove-kind cleanup |
Signed-off-by: pigletfly <[email protected]>
bbed507
to
3e1d447
Compare
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED Approval requirements bypassed by manually added approval. This pull-request has been approved by: RainbowMango The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Signed-off-by: pigletfly [email protected]
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
Which issue(s) this PR fixes:
part of ##398
Special notes for your reviewer:
Does this PR introduce a user-facing change?: