Skip to content

Commit

Permalink
feat: fix charts
Browse files Browse the repository at this point in the history
Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>
  • Loading branch information
vishal-chdhry committed Oct 30, 2024
1 parent 6dedb8b commit a3743a6
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 22 deletions.
3 changes: 3 additions & 0 deletions charts/reports-server/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ spec:
{{- end}}
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
volumeMounts:
- mountPath: /tmp
name: tmp-dir
image: "{{ .Values.image.registry }}/{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
ports:
Expand Down
20 changes: 10 additions & 10 deletions charts/reports-server/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,16 +59,16 @@ podSecurityContext:
# -- Container security context
# @default -- See [values.yaml](values.yaml)
securityContext:
# capabilities:
# drop:
# - ALL
readOnlyRootFilesystem: false
# runAsNonRoot: true
runAsUser: 0
privileged: true
allowPrivilegeEscalation: true
# seccompProfile:
# type: RuntimeDefault
capabilities:
drop:

Check failure on line 63 in charts/reports-server/values.yaml

View workflow job for this annotation

GitHub Actions / required

63:7 [indentation] wrong indentation: expected 4 but found 6
- ALL
readOnlyRootFilesystem: true
runAsNonRoot: true
runAsUser: 1000
privileged: false
allowPrivilegeEscalation: false
seccompProfile:
type: RuntimeDefault

# -- Liveness probe
livenessProbe:
Expand Down
23 changes: 17 additions & 6 deletions config/install-etcd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ metadata:
name: etcd
namespace: reports-server
labels:
app: etcd-reports-server
helm.sh/chart: reports-server-0.1.1
app.kubernetes.io/name: reports-server
app.kubernetes.io/instance: reports-server
Expand Down Expand Up @@ -259,10 +260,19 @@ spec:
- --secure-port=4443
- --authorization-always-allow-paths=/metrics
securityContext:
allowPrivilegeEscalation: true
privileged: true
readOnlyRootFilesystem: false
runAsUser: 0
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
privileged: false
readOnlyRootFilesystem: true
runAsNonRoot: true
runAsUser: 1000
seccompProfile:
type: RuntimeDefault
volumeMounts:
- mountPath: /tmp
name: tmp-dir
image: "ghcr.io/kyverno/reports-server:latest"
imagePullPolicy: IfNotPresent
ports:
Expand Down Expand Up @@ -298,6 +308,7 @@ metadata:
namespace: reports-server
name: etcd
labels:
app: etcd-reports-server
helm.sh/chart: reports-server-0.1.1
app.kubernetes.io/name: reports-server
app.kubernetes.io/instance: reports-server
Expand All @@ -311,7 +322,7 @@ spec:
type: RollingUpdate
selector:
matchLabels:
app: etcd
app: etcd-reports-server
template:
metadata:
labels:
Expand All @@ -329,7 +340,7 @@ spec:
- key: app
operator: In
values:
- etcd
- etcd-reports-server
topologyKey: "kubernetes.io/hostname"
containers:
- name: etcd
Expand Down
23 changes: 17 additions & 6 deletions config/install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ metadata:
name: etcd
namespace: reports-server
labels:
app: etcd-reports-server
helm.sh/chart: reports-server-0.1.1
app.kubernetes.io/name: reports-server
app.kubernetes.io/instance: reports-server
Expand Down Expand Up @@ -259,10 +260,19 @@ spec:
- --secure-port=4443
- --authorization-always-allow-paths=/metrics
securityContext:
allowPrivilegeEscalation: true
privileged: true
readOnlyRootFilesystem: false
runAsUser: 0
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
privileged: false
readOnlyRootFilesystem: true
runAsNonRoot: true
runAsUser: 1000
seccompProfile:
type: RuntimeDefault
volumeMounts:
- mountPath: /tmp
name: tmp-dir
image: "ghcr.io/kyverno/reports-server:latest"
imagePullPolicy: IfNotPresent
ports:
Expand Down Expand Up @@ -298,6 +308,7 @@ metadata:
namespace: reports-server
name: etcd
labels:
app: etcd-reports-server
helm.sh/chart: reports-server-0.1.1
app.kubernetes.io/name: reports-server
app.kubernetes.io/instance: reports-server
Expand All @@ -311,7 +322,7 @@ spec:
type: RollingUpdate
selector:
matchLabels:
app: etcd
app: etcd-reports-server
template:
metadata:
labels:
Expand All @@ -329,7 +340,7 @@ spec:
- key: app
operator: In
values:
- etcd
- etcd-reports-server
topologyKey: "kubernetes.io/hostname"
containers:
- name: etcd
Expand Down

0 comments on commit a3743a6

Please sign in to comment.