[bitnami/redis] Fix replica-announce-ip wrong number of arguments whe… (#16234)

* [bitnami/redis] Fix replica-announce-ip wrong number of arguments when useExternalDNS enabled

Signed-off-by: Aleh Yarmalovich <yarmolmi@gmail.com>

* [bitnami/redis] Add retry limit

Signed-off-by: Aleh Yarmalovich <yarmolmi@gmail.com>

* [bitnami/redis] Updated default values in README

Signed-off-by: Aleh Yarmalovich <yarmolmi@gmail.com>

* [bitnami/redis] Fix metadata for keys

Signed-off-by: Aleh Yarmalovich <yarmolmi@gmail.com>

* [bitnami/redis] Rename variables

Signed-off-by: Aleh Yarmalovich <yarmolmi@gmail.com>

* Update README.md with readme-generator-for-helm

Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>

---------

Signed-off-by: Aleh Yarmalovich <yarmolmi@gmail.com>
Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>
Co-authored-by: Bitnami Containers <bitnami-bot@vmware.com>
This commit is contained in:
Aleh Yarmalovich
2023-05-05 11:09:25 +03:00
committed by GitHub
parent 79962ea931
commit b63df9d883
4 changed files with 76 additions and 23 deletions

View File

@@ -22,4 +22,4 @@ maintainers:
name: redis name: redis
sources: sources:
- https://github.com/bitnami/containers/tree/main/bitnami/redis - https://github.com/bitnami/containers/tree/main/bitnami/redis
version: 17.10.1 version: 17.10.2

View File

@@ -76,20 +76,22 @@ The command removes all the Kubernetes components associated with the chart and
### Common parameters ### Common parameters
| Name | Description | Value | | Name | Description | Value |
| ------------------------ | --------------------------------------------------------------------------------------- | --------------- | | ------------------------- | -------------------------------------------------------------------------------------------------------------- | --------------- |
| `kubeVersion` | Override Kubernetes version | `""` | | `kubeVersion` | Override Kubernetes version | `""` |
| `nameOverride` | String to partially override common.names.fullname | `""` | | `nameOverride` | String to partially override common.names.fullname | `""` |
| `fullnameOverride` | String to fully override common.names.fullname | `""` | | `fullnameOverride` | String to fully override common.names.fullname | `""` |
| `commonLabels` | Labels to add to all deployed objects | `{}` | | `commonLabels` | Labels to add to all deployed objects | `{}` |
| `commonAnnotations` | Annotations to add to all deployed objects | `{}` | | `commonAnnotations` | Annotations to add to all deployed objects | `{}` |
| `secretAnnotations` | Annotations to add to secret | `{}` | | `secretAnnotations` | Annotations to add to secret | `{}` |
| `clusterDomain` | Kubernetes cluster domain name | `cluster.local` | | `clusterDomain` | Kubernetes cluster domain name | `cluster.local` |
| `extraDeploy` | Array of extra objects to deploy with the release | `[]` | | `extraDeploy` | Array of extra objects to deploy with the release | `[]` |
| `useHostnames` | Use hostnames internally when announcing replication | `true` | | `useHostnames` | Use hostnames internally when announcing replication. If false, the hostname will be resolved to an IP address | `true` |
| `diagnosticMode.enabled` | Enable diagnostic mode (all probes will be disabled and the command will be overridden) | `false` | | `nameResolutionThreshold` | Failure threshold for internal hostnames resolution | `5` |
| `diagnosticMode.command` | Command to override all containers in the deployment | `["sleep"]` | | `nameResolutionTimeout` | Timeout seconds between probes for internal hostnames resolution | `5` |
| `diagnosticMode.args` | Args to override all containers in the deployment | `["infinity"]` | | `diagnosticMode.enabled` | Enable diagnostic mode (all probes will be disabled and the command will be overridden) | `false` |
| `diagnosticMode.command` | Command to override all containers in the deployment | `["sleep"]` |
| `diagnosticMode.args` | Args to override all containers in the deployment | `["infinity"]` |
### Redis&reg; Image parameters ### Redis&reg; Image parameters
@@ -946,4 +948,4 @@ Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS, distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.

View File

@@ -54,7 +54,16 @@ data:
{{- if .Values.useHostnames }} {{- if .Values.useHostnames }}
echo "${full_hostname}" echo "${full_hostname}"
{{- else }} {{- else }}
getent hosts "${full_hostname}" | awk '{ print $1 ; exit }' retry_count=0
until getent hosts "${full_hostname}" | awk '{ print $1; exit }' | grep .; do
if [[ $retry_count -lt {{ .Values.nameResolutionThreshold }} ]]; then
sleep {{ .Values.nameResolutionTimeout }}
else
error "IP address for ${full_hostname} not found"
exit 1
fi
((retry_count++))
done
{{- end }} {{- end }}
} }
@@ -278,7 +287,16 @@ data:
{{- if .Values.useHostnames }} {{- if .Values.useHostnames }}
echo "${full_hostname}" echo "${full_hostname}"
{{- else }} {{- else }}
getent hosts "${full_hostname}" | awk '{ print $1 ; exit }' retry_count=0
until getent hosts "${full_hostname}" | awk '{ print $1; exit }' | grep .; do
if [[ $retry_count -lt {{ .Values.nameResolutionThreshold }} ]]; then
sleep {{ .Values.nameResolutionTimeout }}
else
error "IP address for ${full_hostname} not found"
exit 1
fi
((retry_count++))
done
{{- end }} {{- end }}
} }
@@ -448,7 +466,16 @@ data:
{{- if .Values.useHostnames }} {{- if .Values.useHostnames }}
echo "${full_hostname}" echo "${full_hostname}"
{{- else }} {{- else }}
getent hosts "${full_hostname}" | awk '{ print $1 ; exit }' retry_count=0
until getent hosts "${full_hostname}" | awk '{ print $1; exit }' | grep .; do
if [[ $retry_count -lt {{ .Values.nameResolutionThreshold }} ]]; then
sleep {{ .Values.nameResolutionTimeout }}
else
error "IP address for ${full_hostname} not found"
exit 1
fi
((retry_count++))
done
{{- end }} {{- end }}
} }
@@ -521,7 +548,16 @@ data:
{{- if .Values.useHostnames }} {{- if .Values.useHostnames }}
echo "${full_hostname}" echo "${full_hostname}"
{{- else }} {{- else }}
getent hosts "${full_hostname}" | awk '{ print $1 ; exit }' retry_count=0
until getent hosts "${full_hostname}" | awk '{ print $1; exit }' | grep .; do
if [[ $retry_count -lt {{ .Values.nameResolutionThreshold }} ]]; then
sleep {{ .Values.nameResolutionTimeout }}
else
error "IP address for ${full_hostname} not found"
exit 1
fi
((retry_count++))
done
{{- end }} {{- end }}
} }
@@ -650,7 +686,16 @@ data:
{{- if .Values.useHostnames }} {{- if .Values.useHostnames }}
echo "${full_hostname}" echo "${full_hostname}"
{{- else }} {{- else }}
getent hosts "${full_hostname}" | awk '{ print $1 ; exit }' retry_count=0
until getent hosts "${full_hostname}" | awk '{ print $1; exit }' | grep .; do
if [[ $retry_count -lt {{ .Values.nameResolutionThreshold }} ]]; then
sleep {{ .Values.nameResolutionTimeout }}
else
error "IP address for ${full_hostname} not found"
exit 1
fi
((retry_count++))
done
{{- end }} {{- end }}
} }

View File

@@ -47,9 +47,15 @@ clusterDomain: cluster.local
## @param extraDeploy Array of extra objects to deploy with the release ## @param extraDeploy Array of extra objects to deploy with the release
## ##
extraDeploy: [] extraDeploy: []
## @param useHostnames Use hostnames internally when announcing replication ## @param useHostnames Use hostnames internally when announcing replication. If false, the hostname will be resolved to an IP address
### ##
useHostnames: true useHostnames: true
## @param nameResolutionThreshold Failure threshold for internal hostnames resolution
##
nameResolutionThreshold: 5
## @param nameResolutionTimeout Timeout seconds between probes for internal hostnames resolution
##
nameResolutionTimeout: 5
## Enable diagnostic mode in the deployment ## Enable diagnostic mode in the deployment
## ##