Skip to content

Commit

Permalink
bump postgres version
Browse files Browse the repository at this point in the history
  • Loading branch information
dimitraz committed Nov 27, 2019
1 parent 250f22a commit 9eefc1b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
5 changes: 3 additions & 2 deletions pkg/providers/openshift/provider_postgres.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ import (
"context"
"encoding/json"
"fmt"
types2 "github.com/integr8ly/cloud-resource-operator/pkg/apis/integreatly/v1alpha1/types"
"strings"
"time"

types2 "github.com/integr8ly/cloud-resource-operator/pkg/apis/integreatly/v1alpha1/types"

"k8s.io/client-go/kubernetes"

"k8s.io/apimachinery/pkg/types"
Expand Down Expand Up @@ -443,7 +444,7 @@ func buildDefaultPostgresPodContainers(ps *v1alpha1.Postgres) []v1.Container {
return []v1.Container{
{
Name: ps.Name,
Image: "registry.redhat.io/rhscl/postgresql-96-rhel7",
Image: "registry.redhat.io/rhscl/postgresql-10-rhel7",
Ports: []v1.ContainerPort{
{
ContainerPort: int32(defaultPostgresPort),
Expand Down
9 changes: 5 additions & 4 deletions pkg/providers/openshift/provider_redis.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ import (
"context"
"encoding/json"
"fmt"
types2 "github.com/integr8ly/cloud-resource-operator/pkg/apis/integreatly/v1alpha1/types"
"strings"
"time"

types2 "github.com/integr8ly/cloud-resource-operator/pkg/apis/integreatly/v1alpha1/types"

controllerruntime "sigs.k8s.io/controller-runtime"

"github.com/sirupsen/logrus"
Expand Down Expand Up @@ -329,7 +330,7 @@ func buildDefaultRedisDeployment(r *v1alpha1.Redis) *appsv1.Deployment {
},
ObjectMeta: metav1.ObjectMeta{
Labels: map[string]string{
"deployment": redisDCSelectorName,
"deployment": r.Name,
},
},
},
Expand All @@ -338,7 +339,7 @@ func buildDefaultRedisDeployment(r *v1alpha1.Redis) *appsv1.Deployment {
},
Selector: &metav1.LabelSelector{
MatchLabels: map[string]string{
"deployment": redisDCSelectorName,
"deployment": r.Name,
},
},
Replicas: int32Ptr(1),
Expand Down Expand Up @@ -457,7 +458,7 @@ func buildDefaultRedisService(r *v1alpha1.Redis) *apiv1.Service {
},
},
Selector: map[string]string{
"deployment": redisDCSelectorName,
"deployment": r.Name,
},
},
}
Expand Down

0 comments on commit 9eefc1b

Please sign in to comment.