-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18524 from tnozicka/backport-dc-trigger-reconcili…
…ation-on-image-change-release-3.7 Automatic merge from submit-queue. [3.7] Backport dc trigger reconciliation on image change release - fixup import and variable names to avoid conflicts with backports - backport https://github.com/openshift/origin/pull/17539/commits - backport https://github.com/openshift/origin/pull/18118/commits /cc @mfojtik @ironcladlou
- Loading branch information
Showing
9 changed files
with
967 additions
and
599 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
258 changes: 129 additions & 129 deletions
258
pkg/apps/controller/deployer/deployer_controller_test.go
Large diffs are not rendered by default.
Oops, something went wrong.
266 changes: 138 additions & 128 deletions
266
pkg/apps/controller/deploymentconfig/deploymentconfig_controller.go
Large diffs are not rendered by default.
Oops, something went wrong.
243 changes: 135 additions & 108 deletions
243
pkg/apps/controller/deploymentconfig/deploymentconfig_controller_test.go
Large diffs are not rendered by default.
Oops, something went wrong.
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
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
59 changes: 28 additions & 31 deletions
59
test/extended/testdata/deployments/deployment-trigger.yaml
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 |
---|---|---|
@@ -1,32 +1,29 @@ | ||
apiVersion: v1 | ||
kind: List | ||
items: | ||
- apiVersion: v1 | ||
kind: DeploymentConfig | ||
metadata: | ||
labels: | ||
app: example | ||
name: example | ||
spec: | ||
replicas: 1 | ||
template: | ||
metadata: | ||
labels: | ||
app: example | ||
spec: | ||
containers: | ||
- imagePullPolicy: Always | ||
name: test | ||
command: | ||
- /bin/sleep | ||
- "100" | ||
test: false | ||
triggers: | ||
- imageChangeParams: | ||
automatic: true | ||
containerNames: | ||
- test | ||
from: | ||
kind: ImageStreamTag | ||
name: test:v1 | ||
type: ImageChange | ||
kind: DeploymentConfig | ||
metadata: | ||
labels: | ||
app: example | ||
name: example | ||
spec: | ||
replicas: 1 | ||
template: | ||
metadata: | ||
labels: | ||
app: example | ||
spec: | ||
containers: | ||
- imagePullPolicy: Always | ||
name: test | ||
command: | ||
- /bin/sleep | ||
- "100" | ||
test: false | ||
triggers: | ||
- imageChangeParams: | ||
automatic: true | ||
containerNames: | ||
- test | ||
from: | ||
kind: ImageStreamTag | ||
name: test:v1 | ||
type: ImageChange |