Skip to content

Commit

Permalink
chore(deps): update helm release minio to v5.2.0 (main) (#7119)
Browse files Browse the repository at this point in the history
* chore(deps): update helm release minio to v5.2.0

* Update build with regenerated helm tests and docs

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <renovate[bot]@users.noreply.github.com>
  • Loading branch information
renovate[bot] and renovate[bot] authored Aug 23, 2024
1 parent 84cce74 commit ec55017
Show file tree
Hide file tree
Showing 163 changed files with 1,945 additions and 1,965 deletions.
6 changes: 3 additions & 3 deletions operations/helm/charts/mimir-distributed/Chart.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
dependencies:
- name: minio
repository: https://charts.min.io/
version: 5.0.14
version: 5.2.0
- name: grafana-agent-operator
repository: https://grafana.github.io/helm-charts
version: 0.4.1
- name: rollout-operator
repository: https://grafana.github.io/helm-charts
version: 0.16.0
digest: sha256:33a6495669844c9ad8267291176412654af09f06a065db3a254a5f9f170dd050
generated: "2024-08-05T06:39:45.824005102Z"
digest: sha256:399a73aea75bbbc711584c181308863fde65da18fe04bafcd4c0352d113f94c5
generated: "2024-08-23T05:38:22.662648712Z"
2 changes: 1 addition & 1 deletion operations/helm/charts/mimir-distributed/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ name: mimir-distributed
dependencies:
- name: minio
alias: minio
version: 5.0.14
version: 5.2.0
repository: https://charts.min.io/
condition: minio.enabled
- name: grafana-agent-operator
Expand Down
2 changes: 1 addition & 1 deletion operations/helm/charts/mimir-distributed/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Kubernetes: `^1.20.0-0`

| Repository | Name | Version |
|------------|------|---------|
| https://charts.min.io/ | minio(minio) | 5.0.14 |
| https://charts.min.io/ | minio(minio) | 5.2.0 |
| https://grafana.github.io/helm-charts | grafana-agent-operator(grafana-agent-operator) | 0.4.1 |
| https://grafana.github.io/helm-charts | rollout_operator(rollout-operator) | 0.16.0 |

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,112 +6,111 @@ metadata:
name: gateway-enterprise-values-minio
labels:
app: minio
chart: minio-5.0.14
chart: minio-5.2.0
release: gateway-enterprise-values
heritage: Helm
data:
initialize: |-
#!/bin/sh
set -e ; # Have script exit in the event of a failed command.
set -e # Have script exit in the event of a failed command.
MC_CONFIG_DIR="/tmp/minio/mc/"
MC="/usr/bin/mc --insecure --config-dir ${MC_CONFIG_DIR}"
# connectToMinio
# Use a check-sleep-check loop to wait for MinIO service to be available
connectToMinio() {
SCHEME=$1
ATTEMPTS=0 ; LIMIT=29 ; # Allow 30 attempts
set -e ; # fail if we can't read the keys.
ACCESS=$(cat /config/rootUser) ; SECRET=$(cat /config/rootPassword) ;
set +e ; # The connections to minio are allowed to fail.
echo "Connecting to MinIO server: $SCHEME://$MINIO_ENDPOINT:$MINIO_PORT" ;
MC_COMMAND="${MC} alias set myminio $SCHEME://$MINIO_ENDPOINT:$MINIO_PORT $ACCESS $SECRET" ;
$MC_COMMAND ;
STATUS=$? ;
until [ $STATUS = 0 ]
do
ATTEMPTS=`expr $ATTEMPTS + 1` ;
echo \"Failed attempts: $ATTEMPTS\" ;
if [ $ATTEMPTS -gt $LIMIT ]; then
exit 1 ;
fi ;
sleep 2 ; # 1 second intervals between attempts
$MC_COMMAND ;
STATUS=$? ;
done ;
set -e ; # reset `e` as active
return 0
SCHEME=$1
ATTEMPTS=0
LIMIT=29 # Allow 30 attempts
set -e # fail if we can't read the keys.
ACCESS=$(cat /config/rootUser)
SECRET=$(cat /config/rootPassword)
set +e # The connections to minio are allowed to fail.
echo "Connecting to MinIO server: $SCHEME://$MINIO_ENDPOINT:$MINIO_PORT"
MC_COMMAND="${MC} alias set myminio $SCHEME://$MINIO_ENDPOINT:$MINIO_PORT $ACCESS $SECRET"
$MC_COMMAND
STATUS=$?
until [ $STATUS = 0 ]; do
ATTEMPTS=$(expr $ATTEMPTS + 1)
echo \"Failed attempts: $ATTEMPTS\"
if [ $ATTEMPTS -gt $LIMIT ]; then
exit 1
fi
sleep 2 # 1 second intervals between attempts
$MC_COMMAND
STATUS=$?
done
set -e # reset `e` as active
return 0
}
# checkBucketExists ($bucket)
# Check if the bucket exists, by using the exit code of `mc ls`
checkBucketExists() {
BUCKET=$1
CMD=$(${MC} stat myminio/$BUCKET > /dev/null 2>&1)
return $?
BUCKET=$1
CMD=$(${MC} stat myminio/$BUCKET >/dev/null 2>&1)
return $?
}
# createBucket ($bucket, $policy, $purge)
# Ensure bucket exists, purging if asked to
createBucket() {
BUCKET=$1
POLICY=$2
PURGE=$3
VERSIONING=$4
OBJECTLOCKING=$5
# Purge the bucket, if set & exists
# Since PURGE is user input, check explicitly for `true`
if [ $PURGE = true ]; then
if checkBucketExists $BUCKET ; then
echo "Purging bucket '$BUCKET'."
set +e ; # don't exit if this fails
${MC} rm -r --force myminio/$BUCKET
set -e ; # reset `e` as active
else
echo "Bucket '$BUCKET' does not exist, skipping purge."
fi
fi
# Create the bucket if it does not exist and set objectlocking if enabled (NOTE: versioning will be not changed if OBJECTLOCKING is set because it enables versioning to the Buckets created)
if ! checkBucketExists $BUCKET ; then
if [ ! -z $OBJECTLOCKING ] ; then
if [ $OBJECTLOCKING = true ] ; then
echo "Creating bucket with OBJECTLOCKING '$BUCKET'"
${MC} mb --with-lock myminio/$BUCKET
elif [ $OBJECTLOCKING = false ] ; then
echo "Creating bucket '$BUCKET'"
${MC} mb myminio/$BUCKET
fi
elif [ -z $OBJECTLOCKING ] ; then
echo "Creating bucket '$BUCKET'"
${MC} mb myminio/$BUCKET
else
echo "Bucket '$BUCKET' already exists."
fi
fi
# set versioning for bucket if objectlocking is disabled or not set
if [ $OBJECTLOCKING = false ] ; then
if [ ! -z $VERSIONING ] ; then
if [ $VERSIONING = true ] ; then
echo "Enabling versioning for '$BUCKET'"
${MC} version enable myminio/$BUCKET
elif [ $VERSIONING = false ] ; then
echo "Suspending versioning for '$BUCKET'"
${MC} version suspend myminio/$BUCKET
fi
fi
else
echo "Bucket '$BUCKET' versioning unchanged."
fi
# At this point, the bucket should exist, skip checking for existence
# Set policy on the bucket
echo "Setting policy of bucket '$BUCKET' to '$POLICY'."
${MC} anonymous set $POLICY myminio/$BUCKET
BUCKET=$1
POLICY=$2
PURGE=$3
VERSIONING=$4
OBJECTLOCKING=$5
# Purge the bucket, if set & exists
# Since PURGE is user input, check explicitly for `true`
if [ $PURGE = true ]; then
if checkBucketExists $BUCKET; then
echo "Purging bucket '$BUCKET'."
set +e # don't exit if this fails
${MC} rm -r --force myminio/$BUCKET
set -e # reset `e` as active
else
echo "Bucket '$BUCKET' does not exist, skipping purge."
fi
fi
# Create the bucket if it does not exist and set objectlocking if enabled (NOTE: versioning will be not changed if OBJECTLOCKING is set because it enables versioning to the Buckets created)
if ! checkBucketExists $BUCKET; then
if [ ! -z $OBJECTLOCKING ]; then
if [ $OBJECTLOCKING = true ]; then
echo "Creating bucket with OBJECTLOCKING '$BUCKET'"
${MC} mb --with-lock myminio/$BUCKET
elif [ $OBJECTLOCKING = false ]; then
echo "Creating bucket '$BUCKET'"
${MC} mb myminio/$BUCKET
fi
elif [ -z $OBJECTLOCKING ]; then
echo "Creating bucket '$BUCKET'"
${MC} mb myminio/$BUCKET
else
echo "Bucket '$BUCKET' already exists."
fi
fi
# set versioning for bucket if objectlocking is disabled or not set
if [ $OBJECTLOCKING = false ]; then
if [ ! -z $VERSIONING ]; then
if [ $VERSIONING = true ]; then
echo "Enabling versioning for '$BUCKET'"
${MC} version enable myminio/$BUCKET
elif [ $VERSIONING = false ]; then
echo "Suspending versioning for '$BUCKET'"
${MC} version suspend myminio/$BUCKET
fi
fi
else
echo "Bucket '$BUCKET' versioning unchanged."
fi
# At this point, the bucket should exist, skip checking for existence
# Set policy on the bucket
echo "Setting policy of bucket '$BUCKET' to '$POLICY'."
${MC} anonymous set $POLICY myminio/$BUCKET
}
# Try connecting to MinIO instance
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
name: gateway-enterprise-values-minio-console
labels:
app: minio
chart: minio-5.0.14
chart: minio-5.2.0
release: gateway-enterprise-values
heritage: Helm
spec:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
name: gateway-enterprise-values-minio
labels:
app: minio
chart: minio-5.0.14
chart: minio-5.2.0
release: gateway-enterprise-values
heritage: Helm
spec:
Expand All @@ -27,8 +27,8 @@ spec:
app: minio
release: gateway-enterprise-values
annotations:
checksum/secrets: e4b52e15d614ff34251a0ff592f442e4106a23e5c58d765e10e9558aa5e68ed4
checksum/config: ad79cceb30d1a6dfaeeb4113b927d28a12a8823620024d72873ae1940c9d4b32
checksum/secrets: 4634e8fa4e88b28d0589ae2969f508011cb59399aa38602a36718dec4e6aee31
checksum/config: 17e9e037408100f3834c8e6c5773e6faf41c970f97beec11f7e82b65d41ed99a
spec:
securityContext:
runAsUser: 1000
Expand All @@ -39,7 +39,7 @@ spec:
serviceAccountName: minio-sa
containers:
- name: minio
image: "quay.io/minio/minio:RELEASE.2023-09-30T07-02-29Z"
image: "quay.io/minio/minio:RELEASE.2024-04-18T19-09-19Z"
imagePullPolicy: IfNotPresent
command:
- "/bin/sh"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
name: gateway-enterprise-values-minio-post-job
labels:
app: minio-post-job
chart: minio-5.0.14
chart: minio-5.2.0
release: gateway-enterprise-values
heritage: Helm
annotations:
Expand Down Expand Up @@ -35,7 +35,7 @@ spec:
serviceAccountName: minio-sa
containers:
- name: minio-make-bucket
image: "quay.io/minio/mc:RELEASE.2023-09-29T16-41-22Z"
image: "quay.io/minio/mc:RELEASE.2024-04-18T16-45-29Z"
imagePullPolicy: IfNotPresent
command: [ "/bin/sh", "/config/initialize" ]
env:
Expand All @@ -54,7 +54,7 @@ spec:
requests:
memory: 128Mi
- name: minio-make-user
image: "quay.io/minio/mc:RELEASE.2023-09-29T16-41-22Z"
image: "quay.io/minio/mc:RELEASE.2024-04-18T16-45-29Z"
imagePullPolicy: IfNotPresent
command: [ "/bin/sh", "/config/add-user" ]
env:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
name: gateway-enterprise-values-minio
labels:
app: minio
chart: minio-5.0.14
chart: minio-5.2.0
release: gateway-enterprise-values
heritage: Helm
spec:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
name: gateway-enterprise-values-minio
labels:
app: minio
chart: minio-5.0.14
chart: minio-5.2.0
release: gateway-enterprise-values
heritage: Helm
type: Opaque
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
name: gateway-enterprise-values-minio
labels:
app: minio
chart: minio-5.0.14
chart: minio-5.2.0
release: gateway-enterprise-values
heritage: Helm
monitoring: "true"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
apiVersion: batch/v1
kind: Job
metadata:
name: gateway-enterprise-values-mimir-make-minio-buckets-5.0.14
name: gateway-enterprise-values-mimir-make-minio-buckets-5.2.0
namespace: "citestns"
labels:
app: mimir-distributed-make-bucket-job
Expand All @@ -31,7 +31,7 @@ spec:
name: gateway-enterprise-values-minio
containers:
- name: minio-mc
image: "quay.io/minio/mc:RELEASE.2023-09-29T16-41-22Z"
image: "quay.io/minio/mc:RELEASE.2024-04-18T16-45-29Z"
imagePullPolicy: IfNotPresent
command: ["/bin/sh", "/config/initialize"]
env:
Expand Down
Loading

0 comments on commit ec55017

Please sign in to comment.