Skip to content

Commit 56ca1a3

Browse files
authored
Merge pull request #1086 from k8up-io/fix/remove_bitnami
Remove bitnami image for `cleanup` jobs
2 parents c46592b + 4e0bed9 commit 56ca1a3

File tree

6 files changed

+23
-21
lines changed

6 files changed

+23
-21
lines changed

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ RUN apk add --update --no-cache \
2121
curl \
2222
fuse \
2323
openssh-client \
24-
tzdata
24+
tzdata \
25+
kubectl \
26+
jq
2527

2628
ENV RESTIC_BINARY=/usr/local/bin/restic
2729

charts/k8up/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ keywords:
66
- backup
77
- operator
88
- restic
9-
version: 4.8.5
9+
version: 4.8.6
1010
sources:
1111
- https://github.com/k8up-io/k8up
1212
maintainers:

charts/k8up/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# k8up
22

3-
![Version: 4.8.5](https://img.shields.io/badge/Version-4.8.5-informational?style=flat-square)
3+
![Version: 4.8.6](https://img.shields.io/badge/Version-4.8.6-informational?style=flat-square)
44

55
Kubernetes and OpenShift Backup Operator based on restic
66

@@ -13,7 +13,7 @@ helm repo add k8up-io https://k8up-io.github.io/k8up
1313
helm install k8up k8up-io/k8up
1414
```
1515
```bash
16-
kubectl apply -f https://github.com/k8up-io/k8up/releases/download/k8up-4.8.5/k8up-crd.yaml --server-side
16+
kubectl apply -f https://github.com/k8up-io/k8up/releases/download/k8up-4.8.6/k8up-crd.yaml --server-side
1717
```
1818

1919
<!---
@@ -41,14 +41,14 @@ Document your changes in values.yaml and let `make docs:helm` generate this sect
4141
| Key | Type | Default | Description |
4242
|-----|------|---------|-------------|
4343
| affinity | object | `{}` | |
44-
| cleanup.pullPolicy | string | `"IfNotPresent"` | Cleanup-job image pull policy |
45-
| cleanup.registry | string | `"docker.io"` | Cleanup-job image registry |
46-
| cleanup.repository | string | `"bitnami/kubectl"` | Cleanup-job image repository |
47-
| cleanup.tag | string | `"latest"` | Cleanup-job image tag (version) |
44+
| cleanup.pullPolicy | string | `""` | Cleanup-job image pull policy *deprecated*. Will default to image.pullPolicy |
45+
| cleanup.registry | string | `""` | Cleanup-job image registry *deprecated*. Will default to image.registry |
46+
| cleanup.repository | string | `""` | Cleanup-job image repository *deprecated*. Will default to image.repository |
47+
| cleanup.tag | string | `""` | Cleanup-job image tag (version) *deprecated*. Will default to image.tag |
4848
| image.pullPolicy | string | `"IfNotPresent"` | Operator image pull policy |
4949
| image.registry | string | `"ghcr.io"` | Operator image registry |
5050
| image.repository | string | `"k8up-io/k8up"` | Operator image repository |
51-
| image.tag | string | `"v2.13.0"` | Operator image tag (version) |
51+
| image.tag | string | `"v2.13.1"` | Operator image tag (version) |
5252
| imagePullSecrets | list | `[]` | |
5353
| k8up.backupImage.repository | string | `""` | The backup runner image repository. Defaults to `{image.registry}/{image.repository}`. Specify an image repository including registry, e.g. `example.com/repo/image` |
5454
| k8up.backupImage.tag | string | `""` | The backup runner image tag Defaults to `{image.tag}` |

charts/k8up/templates/_helpers.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,6 @@ Cleanup Image
8686
*/}}
8787
{{- define "cleanupImage" -}}
8888
{{- with .Values -}}
89-
{{ if .cleanup.registry }}{{ .cleanup.registry }}/{{ end }}{{ .cleanup.repository }}:{{ .cleanup.tag }}
89+
{{ if .cleanup.registry }}{{ .cleanup.registry }}{{ else }}{{ .image.registry }}{{ end }}/{{ if .cleanup.repository }}{{ .cleanup.repository }}{{ else }}{{ .image.repository }}{{ end }}:{{ if .cleanup.tag }}{{ .cleanup.tag }}{{ else }}{{ .image.tag }}{{ end }}
9090
{{- end -}}
9191
{{- end -}}

charts/k8up/templates/cleanup-hook.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,13 @@ spec:
8686
containers:
8787
- name: "{{ .Release.Name }}-cleanup"
8888
image: "{{ include "cleanupImage" . }}"
89-
imagePullPolicy: {{ .Values.cleanup.pullPolicy }}
89+
imagePullPolicy: {{ if .Values.cleanup.pullPolicy }}{{ .Values.cleanup.pullPolicy }}{{ else }}{{ .Values.image.pullPolicy }}{{ end }}
9090
command:
9191
- sh
9292
- -c
9393
args:
9494
- |
95-
#!/bin/bash
95+
set -eo pipefail
9696
9797
NAMESPACES=$(kubectl get namespace -ojson | jq -r '.items[].metadata.name')
9898

charts/k8up/values.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ image:
1010
# -- Operator image repository
1111
repository: k8up-io/k8up
1212
# -- Operator image tag (version)
13-
tag: v2.13.0
13+
tag: v2.13.1
1414

1515
imagePullSecrets: []
1616
serviceAccount:
@@ -151,11 +151,11 @@ resources:
151151
memory: 128Mi
152152

153153
cleanup:
154-
# -- Cleanup-job image pull policy
155-
pullPolicy: IfNotPresent
156-
# -- Cleanup-job image registry
157-
registry: docker.io
158-
# -- Cleanup-job image repository
159-
repository: bitnami/kubectl
160-
# -- Cleanup-job image tag (version)
161-
tag: latest
154+
# -- Cleanup-job image pull policy *deprecated*. Will default to image.pullPolicy
155+
pullPolicy: ""
156+
# -- Cleanup-job image registry *deprecated*. Will default to image.registry
157+
registry: ""
158+
# -- Cleanup-job image repository *deprecated*. Will default to image.repository
159+
repository: ""
160+
# -- Cleanup-job image tag (version) *deprecated*. Will default to image.tag
161+
tag: ""

0 commit comments

Comments
 (0)