Skip to content

Commit

Permalink
Merge pull request #326 from spolti/RHPAM-2401-1
Browse files Browse the repository at this point in the history
[RHPAM-2401-1] - QE review, db is not ba component
  • Loading branch information
openshift-merge-robot authored Dec 19, 2019
2 parents ea0466e + bb942f5 commit 9c9d8fa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
5 changes: 1 addition & 4 deletions config/7.6.0/dbs/postgresql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,7 @@ servers:
service: "[[.KieName]]-postgresql"
spec:
strategy:
rollingParams:
maxSurge: 100%
maxUnavailable: 0
type: Rolling
type: Recreate
triggers:
- type: ImageChange
imageChangeParams:
Expand Down
5 changes: 1 addition & 4 deletions config/7.6.1/dbs/postgresql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,7 @@ servers:
service: "[[.KieName]]-postgresql"
spec:
strategy:
rollingParams:
maxSurge: 100%
maxUnavailable: 0
type: Rolling
type: Recreate
triggers:
- type: ImageChange
imageChangeParams:
Expand Down
3 changes: 1 addition & 2 deletions pkg/controller/kieapp/defaults/merge_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,7 @@ func TestMergeServerDeploymentConfigs(t *testing.T) {
var dbEnv api.Environment
err := getParsedTemplate("dbs/postgresql.yaml", "prod", &dbEnv)
assert.Nil(t, err, "Error: %v", err)
assert.Equal(t, appsv1.DeploymentStrategyTypeRolling, dbEnv.Servers[0].DeploymentConfigs[1].Spec.Strategy.Type)
assert.Equal(t, &intstr.IntOrString{Type: 1, IntVal: 0, StrVal: "100%"}, dbEnv.Servers[0].DeploymentConfigs[1].Spec.Strategy.RollingParams.MaxSurge)
assert.Equal(t, appsv1.DeploymentStrategyTypeRecreate, dbEnv.Servers[0].DeploymentConfigs[1].Spec.Strategy.Type)

var prodEnv api.Environment
err = getParsedTemplate("envs/rhpam-production.yaml", "prod", &prodEnv)
Expand Down

0 comments on commit 9c9d8fa

Please sign in to comment.