Skip to content

Commit

Permalink
chore: updated pvc-data linting
Browse files Browse the repository at this point in the history
  • Loading branch information
matbmoser committed Feb 5, 2024
1 parent a9b14e5 commit 1569e10
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions deployment/local/storage/pv-data.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#
# SPDX-License-Identifier: Apache-2.0
#################################################################################

apiVersion: v1
kind: PersistentVolume
metadata:
Expand All @@ -33,6 +34,6 @@ spec:
storageClassName: standard
claimRef:
name: pvc-data
namespace: default
namespace: {{ .Values.namespace }}
hostPath:
path: "/mnt"
path: "/mnt"

Check warning

Code scanning / KICS

Non Kube System Pod With Host Mount Warning

PersistentVolume name 'pv-data' of kind 'PersistentVolume' in non kube-system namespace 'default' is mounting a host sensitive OS directory '/mnt' with hostPath
2 changes: 1 addition & 1 deletion deployment/local/storage/pvc-data.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ metadata:
name: pvc-data
labels:
{{- include "chart.labels" . | nindent 4 }}
namespace: default
namespace: {{ .Values.namespace }}
spec:
storageClassName: standard
accessModes:
Expand Down

0 comments on commit 1569e10

Please sign in to comment.