-
Notifications
You must be signed in to change notification settings - Fork 330
Conversation
1. This scales the wait time back so that bad deploys fail much faster. Previously we had it hardcoded to 10 minutes, now it's dynamic. 2. When a deployment fails, print out non Info events from the pods to help the user diagonise what happened. 3. Provide some small grace period on pod cleanup to allow for the potential of debugging the failed pods directly. 4. Handle not being able to search for metric pods 5. Handle destroying an old deployment that didn't have autoscaling defined yet. 6. Setup the kubernetes service with the workspace name if the workspace is not the default workspace
ui terminal.UI, | ||
target *Deployment, | ||
dcr *component.DeclaredResourcesResp, | ||
) (*Release, error) { | ||
var result Release | ||
result.ServiceName = src.App | ||
|
||
if job.Workspace == "default" { |
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.
I think we should throw this in the labels too for the label selector.
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.
Not sure what ya mean....
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.
I've got a few minor requests and comments, but this looks great! ✨ 💯
dep, err := dc.Get(ctx, result.Name, metav1.GetOptions{}) | ||
if err != nil { | ||
return false, err | ||
} | ||
|
||
if time.Since(lastStatus) > 10*time.Second { | ||
step.Update(fmt.Sprintf( | ||
"Waiting on deployment to become available: %d/%d/%d", | ||
"Waiting on deployment to become available: requested=%d running=%d ready=%d", |
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.
I noticed this change in your demo and I like it! 👍🏻 ✨
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.
if ev.Type == "Normal" { | ||
continue | ||
} | ||
ui.Output(" %s: %s (%s)", ev.Type, ev.Message, ev.Reason) |
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.
I also noticed this change in your demo, excited for this! 😄
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.
Co-authored-by: Brian Cain <[email protected]>
Previously we had it hardcoded to 10 minutes, now it's dynamic.
help the user diagonise what happened.
potential of debugging the failed pods directly.
defined yet.
is not the default workspace