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 13, 2024
1 parent 27bf3c4 commit d13cd58
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 @@ -338,7 +338,7 @@ func addVolumes(p *v1.Pod, src []string, volume typeVolume) {
func addExtraMounts(p *v1.Pod, extraMounts []string) {

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

0 comments on commit d13cd58

Please sign in to comment.