Minor log improvements
This commit is contained in:
		
							parent
							
								
									8f08bef67c
								
							
						
					
					
						commit
						35b2d917c9
					
				|  | @ -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 synced") | 	c.logger.Infof("pod service accounts have been successfully found/created") | ||||||
| 
 | 
 | ||||||
| 	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") | ||||||
|  |  | ||||||
|  | @ -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 | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue