Skip to content
This repository has been archived by the owner on Mar 16, 2024. It is now read-only.

Commit

Permalink
fix: replace / with - in anonymous ephemeral volume names (manager-sp…
Browse files Browse the repository at this point in the history
…ecific)

Signed-off-by: Thorsten Klein <[email protected]>
  • Loading branch information
iwilltry42 committed Nov 23, 2023
1 parent 62927ea commit 26a25b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/apis/internal.acorn.io/v1/unmarshal.go
Original file line number Diff line number Diff line change
Expand Up @@ -1396,7 +1396,7 @@ func parseVolumeDefinition(anonName, s string) (VolumeBinding, error) {
if u.Scheme == "ephemeral" {
result.Class = u.Scheme
if result.Volume == "" {
result.Volume = anonName
result.Volume = strings.ReplaceAll(anonName, "/", "-") // While a path-style name is OK in runtime, it breaks as resource name in manager
}
}

Expand Down

0 comments on commit 26a25b8

Please sign in to comment.