Skip to content

Commit

Permalink
fix-extramount-type
Browse files Browse the repository at this point in the history
  • Loading branch information
skanakal committed Dec 12, 2024
1 parent 3c629f4 commit 27bf3c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/staticpod/staticpod.go
Original file line number Diff line number Diff line change
Expand Up @@ -336,9 +336,9 @@ func addVolumes(p *v1.Pod, src []string, volume typeVolume) {
}

func addExtraMounts(p *v1.Pod, extraMounts []string) {
var sourceType v1.HostPathType

for i, rawMount := range extraMounts {
var sourceType v1.HostPathType = v1.HostPathUnset // Reset sourceType for each mount
mount := strings.Split(rawMount, ":")
var ro bool
switch len(mount) {
Expand Down

0 comments on commit 27bf3c4

Please sign in to comment.