Skip to content

Commit

Permalink
Fix invalid service names for Kubernetes (#1234)
Browse files Browse the repository at this point in the history
closes #1232
  • Loading branch information
anbraten authored Oct 5, 2022
1 parent da997fa commit f133941
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pipeline/error.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
2 changes: 1 addition & 1 deletion pipeline/frontend/yaml/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion server/shared/procBuilder.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
),
Expand Down

0 comments on commit f133941

Please sign in to comment.