Adress typos.
This commit is contained in:
		
							parent
							
								
									60cbd4ebbe
								
							
						
					
					
						commit
						24a2a62f12
					
				|  | @ -595,7 +595,7 @@ func (c *Cluster) enforceMinResourceLimits(spec *acidv1.PostgresSpec) error { | |||
| 			return fmt.Errorf("could not compare defined memory limit %s with configured minimum value %s: %v", memoryLimit, minMemoryLimit, err) | ||||
| 		} | ||||
| 		if isSmaller { | ||||
| 			c.logger.Warningf("defined memory limit %s is below required minimum %s and will be increase", memoryLimit, minMemoryLimit) | ||||
| 			c.logger.Warningf("defined memory limit %s is below required minimum %s and will be increased", memoryLimit, minMemoryLimit) | ||||
| 			c.eventRecorder.Eventf(c.GetReference(), v1.EventTypeWarning, "ResourceLimits", "defined memory limit %s is below required minimum %s and will be set to it", memoryLimit, minMemoryLimit) | ||||
| 			spec.Resources.ResourceLimits.Memory = minMemoryLimit | ||||
| 		} | ||||
|  |  | |||
|  | @ -176,7 +176,7 @@ func logNiceDiff(log *logrus.Entry, old, new interface{}) { | |||
| 	n, errn := json.MarshalIndent(new, "", "  ") | ||||
| 
 | ||||
| 	if erro != nil || errn != nil { | ||||
| 		panic("could not marschal API objects, should not happen") | ||||
| 		panic("could not marshal API objects, should not happen") | ||||
| 	} | ||||
| 
 | ||||
| 	nice := nicediff.Diff(string(o), string(n), true) | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue