https://github.com/loafoe/busybox-wget-with-retries
A busybox with a modified wget command that allows injecting retries
https://github.com/loafoe/busybox-wget-with-retries
busybox helm helm-test retries wget
Last synced: 3 months ago
JSON representation
A busybox with a modified wget command that allows injecting retries
- Host: GitHub
- URL: https://github.com/loafoe/busybox-wget-with-retries
- Owner: loafoe
- License: mit
- Created: 2022-10-06T11:10:30.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-09-05T10:46:33.000Z (about 2 years ago)
- Last Synced: 2025-07-03T11:03:06.689Z (3 months ago)
- Topics: busybox, helm, helm-test, retries, wget
- Language: Shell
- Homepage:
- Size: 33.2 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# busybox-wget-with-retries
A busybox Docker image containing a wget wrapper script that adds a configurable `-t` (retries) option with the ability to override using `WGET_TRIES` environment
## Why?
As a dirty hack to let the [fluent-bit](https://github.com/fluent/helm-charts/blob/main/charts/fluent-bit/templates/tests/test-connection.yaml) Helm charts pass its test since it assumes the `test-connection` test will always find `fluent-bit` running within a second or two ¯\\_(ツ)_/¯
```yaml
apiVersion: v1
kind: Pod
metadata:
name: "{{ include "fluent-bit.fullname" . }}-test-connection"
labels:
{{- include "fluent-bit.labels" . | nindent 4 }}
annotations:
"helm.sh/hook": test-success
spec:
containers:
- name: wget
image: "{{ .Values.testFramework.image.repository }}:{{ .Values.testFramework.image.tag }}"
imagePullPolicy: {{ .Values.testFramework.image.pullPolicy }}
command: ['wget']
args: ['{{ include "fluent-bit.fullname" . }}:{{ .Values.service.port }}']
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 4 }}
{{- end }}
restartPolicy: Never
```## License
License is MIT