Skip to content

Commit 2e1a58a

Browse files
Merge pull request #3866 from MarcStorm/feat/readonlyfilesystem
[pdc-agent] feat: support for readOnlyRootFilesystem
2 parents fe3c981 + ec297af commit 2e1a58a

File tree

4 files changed

+16
-2
lines changed

4 files changed

+16
-2
lines changed

charts/pdc-agent/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: pdc-agent
33
description: PDC agent is an agent for connecting to Grafana Private Data source Connect
44
type: application
55
appVersion: "0.0.45"
6-
version: 0.0.1
6+
version: 0.0.2
77
home: https://grafana.com/docs/grafana-cloud/connect-externally-hosted/private-data-source-connect/
88
sources:
99
- https://github.com/grafana/pdc-agent

charts/pdc-agent/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# pdc-agent
22

3-
![Version: 0.0.1](https://img.shields.io/badge/Version-0.0.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.0.45](https://img.shields.io/badge/AppVersion-0.0.45-informational?style=flat-square)
3+
![Version: 0.0.2](https://img.shields.io/badge/Version-0.0.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.0.45](https://img.shields.io/badge/AppVersion-0.0.45-informational?style=flat-square)
44

55
PDC agent is an agent for connecting to Grafana Private Data source Connect
66

@@ -38,6 +38,7 @@ PDC agent is an agent for connecting to Grafana Private Data source Connect
3838
| securityContext.allowPrivilegeEscalation | bool | `false` | |
3939
| securityContext.capabilities.drop[0] | string | `"ALL"` | |
4040
| securityContext.privileged | bool | `false` | |
41+
| securityContext.readOnlyRootFilesystem | bool | `false` | Enable running in a read-only root filesystem. |
4142
| securityContext.runAsNonRoot | bool | `true` | |
4243
| tokenSecretName | string | `""` | secretName Expects a secret with key `token` which contains the Access Policy token you generated |
4344
| tolerations | list | `[]` | not required, but left in as a choice |

charts/pdc-agent/templates/deployment.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,17 @@ spec:
7575
{{- range .Values.extraArgs }}
7676
- {{ . }}
7777
{{- end }}
78+
{{- if .Values.securityContext.readOnlyRootFilesystem }}
79+
volumeMounts:
80+
- mountPath: /home/pdc/
81+
name: ssh-cache
82+
{{- end }}
83+
{{- if .Values.securityContext.readOnlyRootFilesystem }}
84+
volumes:
85+
- name: ssh-cache
86+
emptyDir:
87+
sizeLimit: 50Mi
88+
{{- end }}
7889
{{- with .Values.nodeSelector }}
7990
nodeSelector:
8091
{{- toYaml . | nindent 8 }}

charts/pdc-agent/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ securityContext:
3535
runAsNonRoot: true
3636
privileged: false
3737
allowPrivilegeEscalation: false
38+
# -- Enable running in a read-only root filesystem.
39+
readOnlyRootFilesystem: false
3840

3941
resources:
4042
requests:

0 commit comments

Comments
 (0)