Skip to content

Commit

Permalink
feat: Allow to disable the data loader job
Browse files Browse the repository at this point in the history
This is mainly supporting development and testing where we need a way to deploy
only the UCR configmap and the failing Job would lead to issues when checking
the deployment health.
  • Loading branch information
Johannes Bornhold committed Dec 11, 2024
1 parent e87d16a commit 394403e
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
9 changes: 9 additions & 0 deletions helm/stack-data-ums/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,15 @@ true
</td>
<td>Disallow custom Seccomp profile by setting it to RuntimeDefault.</td>
</tr>
<tr>
<td>dataLoader.enabled</td>
<td>bool</td>
<td><pre lang="json">
true
</pre>
</td>
<td>Allows to disable the data loader Job.</td>
</tr>
<tr>
<td>environment</td>
<td>object</td>
Expand Down
2 changes: 2 additions & 0 deletions helm/stack-data-ums/templates/job-load-data-ums.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# SPDX-License-Identifier: AGPL-3.0-only
# SPDX-FileCopyrightText: 2023 Univention GmbH

{{- if .Values.dataLoader.enabled }}
---
apiVersion: "batch/v1"
kind: "Job"
Expand Down Expand Up @@ -165,3 +166,4 @@ spec:
emptyDir: {}

...
{{- end }}
5 changes: 5 additions & 0 deletions helm/stack-data-ums/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ global:
configUcr: {}


dataLoader:
# -- Allows to disable the data loader Job.
enabled: true


stackDataUms:

# -- The URL by which the UDM Rest API can be reached. Chart defaults to `http://udm-rest-api/udm/`. Nubus defaults to `http://$RELEASE_NAME-udm-rest-api/udm/`.
Expand Down

0 comments on commit 394403e

Please sign in to comment.