Skip to content

Commit

Permalink
Added the mounted path inside the container (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
g3rzi authored Aug 14, 2019
1 parent 322322a commit 5f757b9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions KubiScan.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,7 @@ def parse_pod_spec(pod_spec, container):
spec += ' host_path:\n'
spec += ' {0}: {1}\n'.format('path', volume_obj['host_path']['path'])
spec += ' {0}: {1}\n'.format('type', volume_obj['host_path']['type'])
spec += ' {0}: {1}\n'.format('container_path', volume_mount.mount_path)

spec += parse_security_context(pod_spec.security_context)
return spec
Expand Down

0 comments on commit 5f757b9

Please sign in to comment.