-
Notifications
You must be signed in to change notification settings - Fork 196
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
containerapp: Wait for revision to be ready (#3879)
For container app deployments, we now wait for revision to be `Running` before proceeding with the rest of the deployment. To promote interactivity, we log the progress of the revision in terms of replicas running / ready. When an error occurs, we provide a generic error message to help with troubleshooting. Fixes #2398
- Loading branch information
1 parent
d9bd37a
commit e4a70d0
Showing
14 changed files
with
2,700 additions
and
1,310 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
//go:build !record | ||
|
||
package httputil | ||
|
||
import ( | ||
"net/http" | ||
) | ||
|
||
// By default, PollHeader is a no-op function that returns nil. | ||
// This function is overridden in the record mode to return header for polling fast-forwarding. | ||
func PollHeader() http.Header { | ||
return nil | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
//go:build record | ||
|
||
package httputil | ||
|
||
import ( | ||
"math/rand" | ||
"net/http" | ||
"strconv" | ||
) | ||
|
||
// Provider headers for polling fast-forwarding. | ||
func PollHeader() http.Header { | ||
return map[string][]string{ | ||
//nolint:gosec | ||
//See usage in poll_discard.go | ||
"Recording-Poll-Id": {strconv.Itoa(rand.Int())}, | ||
} | ||
} |
Oops, something went wrong.