mirror of
https://github.com/kerberos-io/deployment.git
synced 2026-11-06 20:20:26 +00:00
Replace default MinIO operator installation with pinned non-root Garage, generated persistent credentials and authenticated S3 tests. Keep MinIO manifests intact for existing installations, add failure diagnostics and optional Slack handling, and align Kustomize chart pins. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
17 lines
459 B
Bash
17 lines
459 B
Bash
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
if [[ $# != 1 ]]; then
|
|
echo "Usage: bash scripts/notify-slack.sh MESSAGE" >&2
|
|
exit 1
|
|
fi
|
|
|
|
if [[ -z "${SLACK_WEBHOOK_URL:-}" ]]; then
|
|
echo "::warning::SLACK_WEBHOOK_URL is not configured; skipping optional Slack notification."
|
|
exit 0
|
|
fi
|
|
|
|
jq -n --arg text "$1" '{text: $text}' |
|
|
curl --fail-with-body --silent --show-error --retry 3 \
|
|
-H 'Content-Type: application/json' --data-binary @- "$SLACK_WEBHOOK_URL"
|