Compare commits
1
Commits
1.0.1
..
6373cd99da
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6373cd99da
|
@@ -15,7 +15,7 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
generate-parameters:
|
generate-parameters:
|
||||||
container:
|
container:
|
||||||
image: docker.io/library/node:26.10.0-alpine
|
image: docker.io/library/node:26.9.0-alpine
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Install tooling
|
- name: Install tooling
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
markdown-link-checker:
|
markdown-link-checker:
|
||||||
container:
|
container:
|
||||||
image: docker.io/library/node:26.10.0-alpine
|
image: docker.io/library/node:26.9.0-alpine
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Install tooling
|
- name: Install tooling
|
||||||
@@ -30,7 +30,7 @@ jobs:
|
|||||||
|
|
||||||
markdown-lint:
|
markdown-lint:
|
||||||
container:
|
container:
|
||||||
image: docker.io/library/node:26.10.0-alpine
|
image: docker.io/library/node:26.9.0-alpine
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Install tooling
|
- name: Install tooling
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
publish-chart:
|
publish-chart:
|
||||||
container:
|
container:
|
||||||
image: docker.io/volkerraschek/helm:3.19.2
|
image: docker.io/volkerraschek/helm:4.3.0
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Install packages via apk
|
- name: Install packages via apk
|
||||||
|
|||||||
@@ -271,7 +271,7 @@ spec:
|
|||||||
### Deployment
|
### Deployment
|
||||||
|
|
||||||
| Name | Description | Value |
|
| Name | Description | Value |
|
||||||
| ------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ------------------------------------------- |
|
| -------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ------------------------------------------- |
|
||||||
| `deployment.annotations` | Additional deployment annotations. | `{}` |
|
| `deployment.annotations` | Additional deployment annotations. | `{}` |
|
||||||
| `deployment.labels` | Additional deployment labels. | `{}` |
|
| `deployment.labels` | Additional deployment labels. | `{}` |
|
||||||
| `deployment.additionalContainers` | List of additional containers. | `[]` |
|
| `deployment.additionalContainers` | List of additional containers. | `[]` |
|
||||||
@@ -300,8 +300,6 @@ spec:
|
|||||||
| `deployment.pluginContainer.image.repository` | Image repository, eg. `curlimages/curl`. | `curlimages/curl` |
|
| `deployment.pluginContainer.image.repository` | Image repository, eg. `curlimages/curl`. | `curlimages/curl` |
|
||||||
| `deployment.pluginContainer.image.tag` | Custom image tag, eg. `0.1.0`. | `8.22.0` |
|
| `deployment.pluginContainer.image.tag` | Custom image tag, eg. `0.1.0`. | `8.22.0` |
|
||||||
| `deployment.pluginContainer.image.pullPolicy` | Image pull policy. | `IfNotPresent` |
|
| `deployment.pluginContainer.image.pullPolicy` | Image pull policy. | `IfNotPresent` |
|
||||||
| `deployment.pluginContainer.securityContext.runAsGroup` | Group id of the plugin container. | `977` |
|
|
||||||
| `deployment.pluginContainer.securityContext.runAsUser` | User id of the plugin container. | `977` |
|
|
||||||
| `deployment.priorityClassName` | PriorityClassName of the Reposilite deployment. | `""` |
|
| `deployment.priorityClassName` | PriorityClassName of the Reposilite deployment. | `""` |
|
||||||
| `deployment.replicas` | Number of replicas for the Reposilite deployment. | `1` |
|
| `deployment.replicas` | Number of replicas for the Reposilite deployment. | `1` |
|
||||||
| `deployment.restartPolicy` | Restart policy of the Reposilite deployment. | `""` |
|
| `deployment.restartPolicy` | Restart policy of the Reposilite deployment. | `""` |
|
||||||
|
|||||||
@@ -71,11 +71,7 @@
|
|||||||
{{- if eq (include "reposilite.plugins.prometheus.enabled" $) "true" }}
|
{{- if eq (include "reposilite.plugins.prometheus.enabled" $) "true" }}
|
||||||
{{- $fileName := splitList "/" (tpl .Values.config.plugins.prometheus.url $) | last }}
|
{{- $fileName := splitList "/" (tpl .Values.config.plugins.prometheus.url $) | last }}
|
||||||
{{- $individualArgs := concat $pluginContainerArgs (list "--output" $fileName (tpl .Values.config.plugins.prometheus.url $)) }}
|
{{- $individualArgs := concat $pluginContainerArgs (list "--output" $fileName (tpl .Values.config.plugins.prometheus.url $)) }}
|
||||||
{{- $pluginContainer := dict "args" $individualArgs "name" "download-prometheus-plugin" "image" $pluginContainerImage "volumeMounts" $pluginContainerVolumeMounts }}
|
{{- $initContainers = concat $initContainers (list (dict "args" $individualArgs "name" "download-prometheus-plugin" "image" $pluginContainerImage "volumeMounts" $pluginContainerVolumeMounts)) }}
|
||||||
{{- with .Values.deployment.pluginContainer.securityContext }}
|
|
||||||
{{- $_ := set $pluginContainer "securityContext" . }}
|
|
||||||
{{- end }}
|
|
||||||
{{- $initContainers = concat $initContainers (list $pluginContainer) }}
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{ toYaml (dict "initContainers" $initContainers) }}
|
{{ toYaml (dict "initContainers" $initContainers) }}
|
||||||
|
|||||||
@@ -30,9 +30,6 @@ tests:
|
|||||||
- https://reposilite.com/plugins/prometheus.jar
|
- https://reposilite.com/plugins/prometheus.jar
|
||||||
name: download-prometheus-plugin
|
name: download-prometheus-plugin
|
||||||
image: docker.io/curlimages/curl:0.1.0
|
image: docker.io/curlimages/curl:0.1.0
|
||||||
securityContext:
|
|
||||||
runAsGroup: 977
|
|
||||||
runAsUser: 977
|
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /app/data/plugins
|
- mountPath: /app/data/plugins
|
||||||
name: plugins
|
name: plugins
|
||||||
|
|||||||
@@ -178,15 +178,6 @@ deployment:
|
|||||||
tag: "8.22.0"
|
tag: "8.22.0"
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
|
|
||||||
## @param deployment.pluginContainer.securityContext.runAsGroup Group id of the plugin container.
|
|
||||||
## @param deployment.pluginContainer.securityContext.runAsUser User id of the plugin container.
|
|
||||||
# Reposilite chowns /app to 977:977 when its entrypoint starts as root. Downloading the plugin as a
|
|
||||||
# different user leaves behind a file the plugin container can no longer overwrite, which breaks every
|
|
||||||
# restart that reuses the emptyDir. Align this with PUID/PGID when those are overridden.
|
|
||||||
securityContext:
|
|
||||||
runAsGroup: 977
|
|
||||||
runAsUser: 977
|
|
||||||
|
|
||||||
## @param deployment.priorityClassName PriorityClassName of the Reposilite deployment.
|
## @param deployment.priorityClassName PriorityClassName of the Reposilite deployment.
|
||||||
priorityClassName: ""
|
priorityClassName: ""
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user