[bitnami/influxdb] feat: improve tests stability (#35071)

This commit is contained in:
Juan Ariza Toledano
2025-07-16 08:55:00 +02:00
committed by GitHub
parent 6202afd718
commit efb2eb0140
6 changed files with 63 additions and 5 deletions

View File

@@ -1,8 +1,12 @@
# Changelog
## 7.1.8 (2025-07-09)
## 7.1.9 (2025-07-16)
* [bitnami/influxdb] :zap: :arrow_up: Update dependency references ([#34915](https://github.com/bitnami/charts/pull/34915))
* [bitnami/influxdb] feat: improve tests stability ([#35071](https://github.com/bitnami/charts/pull/35071))
## <small>7.1.8 (2025-07-09)</small>
* [bitnami/influxdb] :zap: :arrow_up: Update dependency references (#34915) ([7af0b6c](https://github.com/bitnami/charts/commit/7af0b6c665c12f4fce3b5e0e1b20800bd67fdb32)), closes [#34915](https://github.com/bitnami/charts/issues/34915)
## <small>7.1.7 (2025-07-03)</small>

View File

@@ -35,4 +35,4 @@ maintainers:
name: influxdb
sources:
- https://github.com/bitnami/charts/tree/main/bitnami/influxdb
version: 7.1.8
version: 7.1.9

View File

@@ -431,6 +431,8 @@ There are K8s distribution, such as OpenShift, where you can dynamically define
| `createAdminTokenJob.image.digest` | Kubectl image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag | `""` |
| `createAdminTokenJob.image.pullPolicy` | Kubectl image pull policy | `IfNotPresent` |
| `createAdminTokenJob.image.pullSecrets` | Kubectl image pull secrets | `[]` |
| `createAdminTokenJob.waitForS3.retryAttempts` | Number of attempts to retry waiting for S3 backend to be ready | `12` |
| `createAdminTokenJob.waitForS3.retryInterval` | Seconds to wait between attempts to retry waiting for S3 backend to be ready | `5` |
| `createAdminTokenJob.backoffLimit` | set backoff limit of the job | `10` |
| `createAdminTokenJob.containerSecurityContext.enabled` | Enable InfluxDB(TM) Core "create-admin-token" job's containers' Security Context | `true` |
| `createAdminTokenJob.containerSecurityContext.seLinuxOptions` | Set SELinux options in container | `{}` |

View File

@@ -91,14 +91,14 @@ spec:
{{- if eq .Values.objectStore "s3" }}
check_s3() {
if curl --max-time 5 -k "$AWS_ENDPOINT" | grep "RequestId"; then
if curl --max-time {{ sub (int .Values.createAdminTokenJob.waitForS3.retryInterval) 1 }} -k "$AWS_ENDPOINT" | grep "RequestId"; then
return 0
else
return 1
fi
}
info "Waiting for S3 to be ready..."
if ! retry_while check_s3; then
if ! retry_while check_s3 {{ int .Values.createAdminTokenJob.waitForS3.retryAttempts }} {{ int .Values.createAdminTokenJob.waitForS3.retryInterval }}; then
error "Error connecting to S3"
exit 1
fi

View File

@@ -946,6 +946,12 @@ createAdminTokenJob:
## - myRegistryKeySecretName
##
pullSecrets: []
## @param createAdminTokenJob.waitForS3.retryAttempts Number of attempts to retry waiting for S3 backend to be ready
## @param createAdminTokenJob.waitForS3.retryInterval Seconds to wait between attempts to retry waiting for S3 backend to be ready
##
waitForS3:
retryAttempts: 12
retryInterval: 5
## @param createAdminTokenJob.backoffLimit set backoff limit of the job
##
backoffLimit: 10