This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Mutate returns a new mutated pod according to lifespan tolerations rules | |
func (mpl containerResources) Mutate(pod *corev1.Pod) (*corev1.Pod, error) { | |
mpl.Logger = mpl.Logger.WithField("mutation", mpl.Name()) | |
mpod := pod.DeepCopy() | |
resources, err := parseResources() | |
if err != nil { | |
return &corev1.Pod{}, err | |
} |
OlderNewer