Skip to content

Commit

Permalink
fix return type
Browse files Browse the repository at this point in the history
  • Loading branch information
mkabilov committed Oct 16, 2017
1 parent 857986a commit c37f78f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/cluster/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -345,8 +345,8 @@ func (c *Cluster) credentialSecretNameForCluster(username string, clusterName st
"tprgroup", constants.CRDGroup)
}

func (c *Cluster) podSpiloRole(pod *v1.Pod) string {
return pod.Labels[c.OpConfig.PodRoleLabel]
func (c *Cluster) podSpiloRole(pod *v1.Pod) PostgresRole {
return PostgresRole(pod.Labels[c.OpConfig.PodRoleLabel])
}

func masterCandidate(replicas []spec.NamespacedName) spec.NamespacedName {
Expand Down

0 comments on commit c37f78f

Please sign in to comment.