Skip to content

Commit

Permalink
dirty hack
Browse files Browse the repository at this point in the history
  • Loading branch information
mkabilov committed Nov 2, 2017
1 parent 5dff071 commit d111de2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/cluster/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,8 @@ func (c *Cluster) Update(oldSpec, newSpec *spec.Postgresql) error {

if oldSpec.Spec.PgVersion != newSpec.Spec.PgVersion { // PG versions comparison
c.logger.Warningf("postgresql version change(%q -> %q) is not allowed", oldSpec.Spec.PgVersion, newSpec.Spec.PgVersion)
return nil
//we need that hack to generate statefulset with the old version
newSpec.Spec.PgVersion = oldSpec.Spec.PgVersion
}

// Service
Expand Down

0 comments on commit d111de2

Please sign in to comment.