Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*.lock
*.tgz
12 changes: 12 additions & 0 deletions modules/prerequisites/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,15 @@ apiVersion: v2
name: prerequisites
description: A Helm chart for installing OKDP prerequisites
version: 0.1.0
dependencies:
- name: reloader
version: "1.0.72"
repository: "https://stakater.github.io/stakater-charts"
- name: kubernetes-replicator
version: "2.9.2"
repository: "https://helm.mittwald.de"
alias: replicator
- name: kubernetes-secret-generator
version: "3.4.0"
repository: "https://helm.mittwald.de"
alias: secret-generator
9 changes: 7 additions & 2 deletions modules/prerequisites/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,16 @@ A Helm chart for installing OKDP prerequisites.
To install the chart with the release name `prerequisites`:

```sh
$ helm install prerequisites modules/prerequisites
helm dependency update modules/prerequisites/
helm install prerequisites modules/prerequisites \
-f modules/prerequisites/values/sandbox.yaml \
-n okdp-prerequisites \
--create-namespace
```

## Uninstalling the chart `prerequisites`

```sh
$ helm uninstall prerequisites
helm uninstall prerequisites -n okdp-prerequisites
kubectl delete namespace okdp-prerequisites
```
24 changes: 24 additions & 0 deletions modules/prerequisites/values.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"reloader": {
"type": "object",
"properties": {
"enabled": { "type": "boolean", "default": true }
}
},
"replicator": {
"type": "object",
"properties": {
"enabled": { "type": "boolean", "default": true }
}
},
"secret-generator": {
"type": "object",
"properties": {
"enabled": { "type": "boolean", "default": true }
}
}
}
}
15 changes: 0 additions & 15 deletions modules/prerequisites/values.yaml

This file was deleted.

68 changes: 68 additions & 0 deletions modules/prerequisites/values/sandbox.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
#
# Copyright 2026 The OKDP Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
reloader:
enabled: true
reloader:
deployment:
containerSecurityContext:
# Restricts privileges at the container process level.
allowPrivilegeEscalation: false
# Set to true if you have a pod security policy that enforces readOnlyRootFilesystem.
readOnlyRootFilesystem: true

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

capabilities:

@alexismarie8314 alexismarie8314 Jun 8, 2026

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

capabilities parameter
drop

# Removes all default Linux kernel capabilities: it removes all system
# "superpowers" (the app cannot control the underlying system).
drop: ["ALL"]

replicator:
enabled: true
# Configures security settings at the entire Pod level.
podSecurityContext:

@alexismarie8314 alexismarie8314 Jun 16, 2026

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we use fsGroup:2000 as in secret-generator ?

# Uses the container runtime's default system call filter.
seccompProfile: { type: RuntimeDefault }
# Configures security settings specifically for the container.
securityContext:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
runAsNonRoot: true
runAsUser: 1000
capabilities:
# Removes all default Linux kernel capabilities: it removes all system
# "superpowers" (the app cannot control the underlying system).
drop: ["ALL"]
# Sets the delay before checking if the container is alive and healthy.
livenessProbe: { initialDelaySeconds: 10 }
# Sets the delay before checking if the container is ready to accept traffic.
readinessProbe: { initialDelaySeconds: 10 }

secret-generator:
enabled: true
fullnameOverride: secret-generator
# Configures security settings at the entire Pod level.
podSecurityContext:
fsGroup: 2000
# Uses the container runtime's default system call filter.
seccompProfile: { type: RuntimeDefault }
# Configures security settings specifically for the container.
securityContext:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
runAsNonRoot: true
runAsUser: 1000
capabilities:
# Removes all default Linux kernel capabilities: it removes all system
# "superpowers" (the app cannot control the underlying system).
drop: ["ALL"]