-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use NFS PersistentVolume for asset-manager clamav for compliance with…
… PSS restricted Description: - PSS restricted doesn't allow volume types of `nfs` (see [here](https://kubernetes.io/docs/concepts/security/pod-security-standards/#restricted)) but does allow us to use a `PersistentVolume` of type NFS - Add some additional annotations onto Licensify `PersistentVolume` and `PersistentVolumeClaim` - As part of #1883
- Loading branch information
Showing
10 changed files
with
52 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{{- define "asset-manager.freshclam.podspec" }} | ||
{{- $fullName := include "asset-manager.fullname" . }} | ||
apiVersion: v1 | ||
kind: PersistentVolume | ||
metadata: | ||
name: {{ $fullName }}-freshclam-db | ||
labels: | ||
{{- include "asset-manager.labels" . | nindent 4 }} | ||
app: {{ .Values.fullName }} | ||
app.kubernetes.io/name: {{ .Values.fullName }}-freshclam-db | ||
app.kubernetes.io/component: {{ .Values.fullName }}-freshclam-db #V Verify this | ||
spec: | ||
capacity: | ||
storage: {{ .Values.nfs.storage }} | ||
accessModes: | ||
- ReadWriteOnce | ||
persistentVolumeReclaimPolicy: Retain | ||
nfs: | ||
server: "{{ .Values.assetManagerNFS }}" | ||
path: /clamav-db | ||
readOnly: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{{- define "asset-manager.freshclam.podspec" }} | ||
{{- $fullName := include "asset-manager.fullname" . }} | ||
apiVersion: v1 | ||
kind: PersistentVolumeClaim | ||
metadata: | ||
name: {{ $fullName }}-freshclam-db | ||
labels: | ||
{{- include "asset-manager.labels" . | nindent 4 }} | ||
app: {{ $fullName }}-freshclam | ||
app.kubernetes.io/name: {{ $fullName }}-freshclam-db # Verify this | ||
app.kubernetes.io/component: {{ $fullName }}-freshclam-db # Verify this | ||
spec: | ||
storageClassName: "" | ||
accessModes: | ||
- ReadWriteOnce | ||
resources: | ||
requests: | ||
storage: {{ .Values.nfs.storage }} | ||
selector: | ||
matchLabels: | ||
{{- include "asset-manager.selectorLabels" . | nindent 6 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters