diff --git a/pipeline/error.go b/pipeline/error.go index fb251e0db..2e229fc3a 100644 --- a/pipeline/error.go +++ b/pipeline/error.go @@ -32,7 +32,7 @@ type OomError struct { Code int } -// Error reteurns the error message in string format. +// Error returns the error message in string format. func (e *OomError) Error() string { return fmt.Sprintf("%s : received oom kill", e.Name) } diff --git a/pipeline/frontend/yaml/container.go b/pipeline/frontend/yaml/container.go index 2e19537f6..247063aa8 100644 --- a/pipeline/frontend/yaml/container.go +++ b/pipeline/frontend/yaml/container.go @@ -66,7 +66,7 @@ type ( // UnmarshalYAML implements the Unmarshaler interface. func (c *Containers) UnmarshalYAML(value *yaml.Node) error { switch value.Kind { - // We support mapps ... + // We support maps ... case yaml.MappingNode: c.Containers = make([]*Container, 0, len(value.Content)/2+1) // We cannot use decode on specific values diff --git a/server/shared/procBuilder.go b/server/shared/procBuilder.go index e5dc9b8a4..ae43f3495 100644 --- a/server/shared/procBuilder.go +++ b/server/shared/procBuilder.go @@ -273,7 +273,7 @@ func (b *ProcBuilder) toInternalRepresentation(parsed *yaml.Config, environ map[ compiler.WithSecret(secrets...), compiler.WithPrefix( fmt.Sprintf( - "%d_%d", + "wp_%d_%d", procID, rand.Int(), ),