Fix invalid service names for Kubernetes (#1234)

closes #1232
This commit is contained in:
Anbraten 2022-10-05 13:39:48 +02:00 committed by GitHub
parent da997fa34a
commit f1339412eb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View file

@ -32,7 +32,7 @@ type OomError struct {
Code int Code int
} }
// Error reteurns the error message in string format. // Error returns the error message in string format.
func (e *OomError) Error() string { func (e *OomError) Error() string {
return fmt.Sprintf("%s : received oom kill", e.Name) return fmt.Sprintf("%s : received oom kill", e.Name)
} }

View file

@ -66,7 +66,7 @@ type (
// UnmarshalYAML implements the Unmarshaler interface. // UnmarshalYAML implements the Unmarshaler interface.
func (c *Containers) UnmarshalYAML(value *yaml.Node) error { func (c *Containers) UnmarshalYAML(value *yaml.Node) error {
switch value.Kind { switch value.Kind {
// We support mapps ... // We support maps ...
case yaml.MappingNode: case yaml.MappingNode:
c.Containers = make([]*Container, 0, len(value.Content)/2+1) c.Containers = make([]*Container, 0, len(value.Content)/2+1)
// We cannot use decode on specific values // We cannot use decode on specific values

View file

@ -273,7 +273,7 @@ func (b *ProcBuilder) toInternalRepresentation(parsed *yaml.Config, environ map[
compiler.WithSecret(secrets...), compiler.WithSecret(secrets...),
compiler.WithPrefix( compiler.WithPrefix(
fmt.Sprintf( fmt.Sprintf(
"%d_%d", "wp_%d_%d",
procID, procID,
rand.Int(), rand.Int(),
), ),