Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
postgres-operator
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitHub Mirror
zalando
postgres-operator
Commits
35b2d917
Commit
35b2d917
authored
7 years ago
by
Sergey Dudoladov
Browse files
Options
Downloads
Patches
Plain Diff
Minor log improvements
parent
8f08bef6
No related branches found
Tags
v0.24.1
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
pkg/cluster/cluster.go
+1
-1
1 addition, 1 deletion
pkg/cluster/cluster.go
pkg/cluster/pod.go
+1
-1
1 addition, 1 deletion
pkg/cluster/pod.go
with
2 additions
and
2 deletions
pkg/cluster/cluster.go
+
1
−
1
View file @
35b2d917
...
@@ -293,7 +293,7 @@ func (c *Cluster) Create() error {
...
@@ -293,7 +293,7 @@ func (c *Cluster) Create() error {
if
err
=
c
.
createPodServiceAccounts
();
err
!=
nil
{
if
err
=
c
.
createPodServiceAccounts
();
err
!=
nil
{
return
fmt
.
Errorf
(
"could not create pod service account %v : %v"
,
c
.
OpConfig
.
PodServiceAccountName
,
err
)
return
fmt
.
Errorf
(
"could not create pod service account %v : %v"
,
c
.
OpConfig
.
PodServiceAccountName
,
err
)
}
}
c
.
logger
.
Infof
(
"pod service accounts have been successfully
sync
ed"
)
c
.
logger
.
Infof
(
"pod service accounts have been successfully
found/creat
ed"
)
if
c
.
Statefulset
!=
nil
{
if
c
.
Statefulset
!=
nil
{
return
fmt
.
Errorf
(
"statefulset already exists in the cluster"
)
return
fmt
.
Errorf
(
"statefulset already exists in the cluster"
)
...
...
This diff is collapsed.
Click to expand it.
pkg/cluster/pod.go
+
1
−
1
View file @
35b2d917
...
@@ -155,7 +155,7 @@ func (c *Cluster) masterCandidate(oldNodeName string) (*v1.Pod, error) {
...
@@ -155,7 +155,7 @@ func (c *Cluster) masterCandidate(oldNodeName string) (*v1.Pod, error) {
}
}
if
len
(
replicas
)
==
0
{
if
len
(
replicas
)
==
0
{
c
.
logger
.
Warningf
(
"single master pod for cluster %q, migration will cause disruption of the service"
)
c
.
logger
.
Warningf
(
"single master pod for cluster %q, migration will cause disruption of the service"
,
c
.
Name
)
return
nil
,
nil
return
nil
,
nil
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment