-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
oc rollout support #8927
oc rollout support #8927
Conversation
@smarterclayton @fabianofranz thoughts on: |
The one thing I'm not clear on is triggers. Do we want to implement Pause On Wed, May 18, 2016 at 6:37 PM, Michail Kargakis [email protected]
|
@smarterclayton what is the difference between Pause and a config change trigger? |
Pause stops all processing (all triggers, and probably scaling behavior). Config change trigger just stops config change. |
We are working upstream on enabling this with proportional scaling (scaling isn't supported in the first version of paused). A paused deployment is still a running application and autoscalers should be able to continue working. |
cc: @fabianofranz @mfojtik @ironcladlou @smarterclayton
Sample output for
Outstanding issue with Separate pulls:
|
[test] |
Related: #4359 |
|
[test] |
case deployapi.DeploymentTriggerOnConfigChange: | ||
config.Status.Details.Message = "caused by a config change" | ||
case deployapi.DeploymentTriggerOnImageChange: | ||
config.Status.Details.Message = "caused by an image change" |
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.
Messages probably should be sentences (or be capitalized). It's fine for now but we should revisit
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 am merely consistent with our pre-existing messages surfaced by our annotations:
origin/pkg/deploy/api/types.go
Lines 262 to 265 in 16bcdd0
DeploymentCancelledByUser = "cancelled by the user" | |
DeploymentCancelledNewerDeploymentExists = "cancelled as a newer deployment was found running" | |
DeploymentFailedUnrelatedDeploymentExists = "unrelated pod with the same name as this deployment is already running" | |
DeploymentFailedDeployerPodNoLongerExists = "deployer pod no longer exists" |
Somebody needs to start reviewing this @mfojtik @fabianofranz @ironcladlou @smarterclayton |
} | ||
t.Spec.Paused = true | ||
_, err := oc.DeploymentConfigs(t.Namespace).Update(t) | ||
// TODO: Pause the deployer containers. |
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.
is there issue created to track 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.
Opened #9629
|
||
var _ kubectl.Rollbacker = &DeploymentConfigRollbacker{} | ||
|
||
func (r *DeploymentConfigRollbacker) Rollback(namespace, name string, updatedAnnotations map[string]string, toRevision int64, obj runtime.Object) (string, 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.
add godoc
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.
ok
LGTM |
Opened #9632 that will be needed once this is merged. |
[merge] |
ChangeCauseAnnotation is hardcoded in PrintRolloutHistory and it needs to be overriden since other resources that may need to be added in `kubectl rollout history` may not use it. Instead of adding one more method in the factory, refactor the existing HistoryViewer interface to accomodate the change.
Evaluated for origin test up to d362664 |
continuous-integration/openshift-jenkins/test FAILURE (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/5602/) |
conformance never run, [merge] |
Flaked on #9364. [merge] |
continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/5669/) (Image: devenv-rhel7_4500) |
#9512, [merge] |
Evaluated for origin merge up to d362664 |
TODO:
Fixes #6896
Part of https://trello.com/c/Mljldox7/643-5-deployments-downstream-support-for-upstream-features
@fabianofranz @ironcladlou @mfojtik @smarterclayton