Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into rabbitmq-networkpolicy
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Foster <[email protected]>
  • Loading branch information
bpfoster committed May 20, 2024
2 parents 3925080 + 6ce2aa9 commit 8431079
Show file tree
Hide file tree
Showing 333 changed files with 21,218 additions and 18,089 deletions.
43 changes: 20 additions & 23 deletions .github/workflows/cd-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
chart: ${{ steps.get-chart.outputs.chart }}
result: ${{ steps.get-chart.outputs.result }}
steps:
- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29
with:
path: charts
fetch-depth: 2 # to be able to obtain files changed in the latest commit
Expand Down Expand Up @@ -71,7 +71,7 @@ jobs:
CSP_API_TOKEN: ${{ secrets.CSP_API_TOKEN }}
VIB_PUBLIC_URL: https://cp.bromelia.vmware.com
steps:
- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29
name: Checkout Repository
with:
path: charts
Expand All @@ -95,7 +95,7 @@ jobs:
with:
path: ~/artifacts
# If we perform a checkout of the main branch, we will find conflicts with the submodules
- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29
with:
ref: 'index'
path: index
Expand All @@ -105,6 +105,8 @@ jobs:
run: |
HELM_TARBALL="helm-v3.8.1-linux-amd64.tar.gz"
curl -SsLfO "https://get.helm.sh/${HELM_TARBALL}" && sudo tar xf "$HELM_TARBALL" --strip-components 1 -C /usr/local/bin
# Install file plugin
helm plugin add https://github.com/zoobab/helm_file_repo
- id: update-index
name: Fetch chart and update index
env:
Expand Down Expand Up @@ -132,35 +134,30 @@ jobs:
is_index_updated=0
while [[ $attempts -lt $max_attempts && $is_index_updated -eq 0 ]]; do
attempts=$((attempts + 1))
git fetch origin index
git reset --hard origin/index
# Rebuild index
helm repo index --url https://charts.bitnami.com/bitnami --merge bitnami/index.yaml ../download
cp ../download/index.yaml bitnami/index.yaml
# Push changes
git add bitnami/index.yaml && git commit -m "${chart_name}-${chart_version}: Update index.yaml" -s
git push && is_index_updated=1 || echo "Failed to push during attempt $attempts"
done
# Temporary code to confirm index is not broken
attempts=0
is_index_test_updated=0
while [[ $attempts -lt $max_attempts && $is_index_test_updated -eq 0 ]]; do
attempts=$((attempts + 1))
# Pull changes from remote
git fetch origin index-test
current_commit_id=$(git rev-parse origin/index-test)
git reset --hard $(git commit-tree origin/index-test^{tree} -m "Update index.yaml")
git fetch origin index
current_commit_id=$(git rev-parse origin/index)
git reset --hard $(git commit-tree origin/index^{tree} -m "Update index.yaml")
# Rebuild index
helm repo index --url https://charts.bitnami.com/bitnami --merge bitnami/index.yaml ../download
# Compare size of files
if [[ $(stat -c%s bitnami/index.yaml) -gt $(stat -c%s ../download/index.yaml) ]]; then
echo "New index.yaml file is shorter than the current one"
exit 1
fi
# Adding tmp file as a helm repo
if ! helm repo add cache file://../download/ ; then
echo "New index.yaml file can't be indexed"
exit 1
fi
cp ../download/index.yaml bitnami/index.yaml
# Push changes
git add bitnami/index.yaml && git commit --signoff --amend --no-edit
git push origin index:index-test --force-with-lease=index-test:${current_commit_id} && is_index_test_updated=1 || echo "Failed to push during attempt $attempts"
git push origin index --force-with-lease=index:${current_commit_id} && is_index_updated=1 || echo "Failed to push during attempt $attempts"
done
if [[ $is_index_updated -ne 1 ]]; then
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ jobs:
if: needs.get-chart.outputs.result == 'ok'
steps:
- name: Checkout bitnami/charts
uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29
with:
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}
Expand Down Expand Up @@ -270,7 +270,7 @@ jobs:
)
name: VIB Verify
steps:
- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29
name: Checkout Repository
with:
ref: ${{ github.event.pull_request.head.ref }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/license-headers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
contents: read
pull-requests: write
steps:
- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29
name: Checkout Repository
with:
ref: ${{ github.event.pull_request.head.ref }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/markdown-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Install mardownlint
run: npm install -g [email protected]
- name: Checkout project
uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29
- name: Execute markdownlint
env:
DIFF_URL: "${{github.event.pull_request.diff_url}}"
Expand Down
8 changes: 4 additions & 4 deletions bitnami/airflow/Chart.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
dependencies:
- name: redis
repository: oci://registry-1.docker.io/bitnamicharts
version: 19.3.1
version: 19.3.2
- name: postgresql
repository: oci://registry-1.docker.io/bitnamicharts
version: 15.3.1
version: 15.3.2
- name: common
repository: oci://registry-1.docker.io/bitnamicharts
version: 2.19.2
digest: sha256:fabff0ead749d34e71b1d91c0a88b7df583a2e678070b920fbf256b313dbc5c0
generated: "2024-05-13T16:19:43.191158676Z"
digest: sha256:141d5a1d20c29e9489a7681a919419731608135a9fc5af912c304ff1a7bed64f
generated: "2024-05-17T13:20:55.345544+02:00"
2 changes: 1 addition & 1 deletion bitnami/airflow/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ maintainers:
name: airflow
sources:
- https://github.com/bitnami/charts/tree/main/bitnami/airflow
version: 18.0.10
version: 18.1.0
6 changes: 6 additions & 0 deletions bitnami/airflow/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,12 @@ The Bitnami Airflow chart relies on the PostgreSQL chart persistence. This means
| `scheduler.readinessProbe.timeoutSeconds` | Timeout seconds for readinessProbe | `15` |
| `scheduler.readinessProbe.failureThreshold` | Failure threshold for readinessProbe | `6` |
| `scheduler.readinessProbe.successThreshold` | Success threshold for readinessProbe | `1` |
| `scheduler.startupProbe.enabled` | Enable startupProbe on Airflow scheduler containers | `false` |
| `scheduler.startupProbe.initialDelaySeconds` | Initial delay seconds for startupProbe | `60` |
| `scheduler.startupProbe.periodSeconds` | Period seconds for startupProbe | `10` |
| `scheduler.startupProbe.timeoutSeconds` | Timeout seconds for startupProbe | `1` |
| `scheduler.startupProbe.failureThreshold` | Failure threshold for startupProbe | `15` |
| `scheduler.startupProbe.successThreshold` | Success threshold for startupProbe | `1` |
| `scheduler.customLivenessProbe` | Custom livenessProbe that overrides the default one | `{}` |
| `scheduler.customReadinessProbe` | Custom readinessProbe that overrides the default one | `{}` |
| `scheduler.customStartupProbe` | Custom startupProbe that overrides the default one | `{}` |
Expand Down
10 changes: 9 additions & 1 deletion bitnami/airflow/templates/scheduler/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ spec:
- /bin/bash
- -ec
- |
airflow jobs check --job-type SchedulerJob --local {{- if not .Values.diagnosticMode.enabled }} 2>/dev/null {{- end }}
CONNECTION_CHECK_MAX_COUNT=0 airflow jobs check --job-type SchedulerJob --local {{- if not .Values.diagnosticMode.enabled }} 2>/dev/null {{- end }}
{{- end }}
{{- if .Values.scheduler.customReadinessProbe }}
readinessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.scheduler.customReadinessProbe "context" $) | trim | nindent 12 }}
Expand All @@ -201,6 +201,14 @@ spec:
{{- end }}
{{- if .Values.scheduler.customStartupProbe }}
startupProbe: {{- include "common.tplvalues.render" (dict "value" .Values.scheduler.customStartupProbe "context" $) | nindent 12 }}
{{- else if .Values.scheduler.startupProbe.enabled }}
startupProbe: {{- include "common.tplvalues.render" (dict "value" (omit .Values.scheduler.livenessProbe "enabled") "context" $) | nindent 12 }}
exec:
command:
- /bin/bash
- -ec
- |
CONNECTION_CHECK_MAX_COUNT=0 airflow jobs check --job-type SchedulerJob --local {{- if not .Values.diagnosticMode.enabled }} 2>/dev/null {{- end }}
{{- end }}
{{- end }}
{{- if .Values.scheduler.lifecycleHooks }}
Expand Down
13 changes: 5 additions & 8 deletions bitnami/airflow/templates/web/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -235,14 +235,11 @@ spec:
livenessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.web.customLivenessProbe "context" $) | nindent 12 }}
{{- else if .Values.web.livenessProbe.enabled }}
livenessProbe: {{- include "common.tplvalues.render" (dict "value" (omit .Values.web.livenessProbe "enabled") "context" $) | nindent 12 }}
{{- if include "airflow.baseUrl" . }}
tcpSocket:
port: http
{{- else }}
httpGet:
path: /health
port: http
{{- end }}
exec:
command:
- pgrep
- -f
- airflow-webserver
{{- end }}
{{- if .Values.web.customReadinessProbe }}
readinessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.web.customReadinessProbe "context" $) | nindent 12 }}
Expand Down
9 changes: 7 additions & 2 deletions bitnami/airflow/templates/worker/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,13 @@ spec:
livenessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.worker.customLivenessProbe "context" $) | nindent 12 }}
{{- else if .Values.worker.livenessProbe.enabled }}
livenessProbe: {{- include "common.tplvalues.render" (dict "value" (omit .Values.worker.livenessProbe "enabled") "context" $) | nindent 12 }}
tcpSocket:
port: worker
exec:
command:
- sh
- -c
- |
source /opt/bitnami/airflow/venv/bin/activate && \
CONNECTION_CHECK_MAX_COUNT=0 python -m celery --app airflow.providers.celery.executors.celery_executor.app inspect ping -d celery@$(hostname)
{{- end }}
{{- if .Values.worker.customReadinessProbe }}
readinessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.worker.customReadinessProbe "context" $) | nindent 12 }}
Expand Down
14 changes: 14 additions & 0 deletions bitnami/airflow/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -607,6 +607,20 @@ scheduler:
timeoutSeconds: 15
failureThreshold: 6
successThreshold: 1
## @param scheduler.startupProbe.enabled Enable startupProbe on Airflow scheduler containers
## @param scheduler.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe
## @param scheduler.startupProbe.periodSeconds Period seconds for startupProbe
## @param scheduler.startupProbe.timeoutSeconds Timeout seconds for startupProbe
## @param scheduler.startupProbe.failureThreshold Failure threshold for startupProbe
## @param scheduler.startupProbe.successThreshold Success threshold for startupProbe
##
startupProbe:
enabled: false
initialDelaySeconds: 60
periodSeconds: 10
timeoutSeconds: 1
failureThreshold: 15
successThreshold: 1
## @param scheduler.customLivenessProbe Custom livenessProbe that overrides the default one
##
customLivenessProbe: {}
Expand Down
4 changes: 2 additions & 2 deletions bitnami/apache/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ annotations:
- name: apache-exporter
image: docker.io/bitnami/apache-exporter:1.0.7-debian-12-r8
- name: git
image: docker.io/bitnami/git:2.45.0-debian-12-r2
image: docker.io/bitnami/git:2.45.1-debian-12-r0
apiVersion: v2
appVersion: 2.4.59
dependencies:
Expand All @@ -35,4 +35,4 @@ maintainers:
name: apache
sources:
- https://github.com/bitnami/charts/tree/main/bitnami/apache
version: 11.0.4
version: 11.0.6
1 change: 0 additions & 1 deletion bitnami/apache/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,6 @@ As an alternative, you can use the preset configurations for pod affinity, pod
| `startupProbe.failureThreshold` | Failure threshold for startupProbe | `6` |
| `startupProbe.successThreshold` | Success threshold for startupProbe | `1` |
| `livenessProbe.enabled` | Enable liveness probe | `true` |
| `livenessProbe.path` | Path to access on the HTTP server | `/` |
| `livenessProbe.port` | Port for livenessProbe | `http` |
| `livenessProbe.initialDelaySeconds` | Initial delay seconds for livenessProbe | `180` |
| `livenessProbe.periodSeconds` | Period seconds for livenessProbe | `20` |
Expand Down
3 changes: 1 addition & 2 deletions bitnami/apache/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,7 @@ spec:
livenessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.customLivenessProbe "context" $) | nindent 12 }}
{{- else if .Values.livenessProbe.enabled }}
livenessProbe:
httpGet:
path: {{ .Values.livenessProbe.path }}
tcpSocket:
port: {{ .Values.livenessProbe.port }}
initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds }}
periodSeconds: {{ .Values.livenessProbe.periodSeconds }}
Expand Down
3 changes: 1 addition & 2 deletions bitnami/apache/templates/pdb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ Copyright Broadcom, Inc. All Rights Reserved.
SPDX-License-Identifier: APACHE-2.0
*/}}

{{- $replicaCount := int .Values.replicaCount }}
{{- if and .Values.pdb.create (or (gt $replicaCount 1) .Values.autoscaling.enabled) }}
{{- if .Values.pdb.create }}
apiVersion: {{ include "common.capabilities.policy.apiVersion" . }}
kind: PodDisruptionBudget
metadata:
Expand Down
4 changes: 1 addition & 3 deletions bitnami/apache/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ image:
git:
registry: docker.io
repository: bitnami/git
tag: 2.45.0-debian-12-r2
tag: 2.45.1-debian-12-r0
digest: ""
pullPolicy: IfNotPresent
## Optionally specify an array of imagePullSecrets.
Expand Down Expand Up @@ -319,7 +319,6 @@ startupProbe:
failureThreshold: 6
successThreshold: 1
## @param livenessProbe.enabled Enable liveness probe
## @param livenessProbe.path Path to access on the HTTP server
## @param livenessProbe.port Port for livenessProbe
## @param livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
## @param livenessProbe.periodSeconds Period seconds for livenessProbe
Expand All @@ -329,7 +328,6 @@ startupProbe:
##
livenessProbe:
enabled: true
path: "/"
port: http
initialDelaySeconds: 180
periodSeconds: 20
Expand Down
6 changes: 3 additions & 3 deletions bitnami/apisix/Chart.lock
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
dependencies:
- name: etcd
repository: oci://registry-1.docker.io/bitnamicharts
version: 10.0.7
version: 10.0.10
- name: common
repository: oci://registry-1.docker.io/bitnamicharts
version: 2.19.2
digest: sha256:13fe7681699d3911d977654994f33a1b528d043536086375ae2522a1f665f21b
generated: "2024-05-13T07:26:45.234443163Z"
digest: sha256:67be2c85795448f2ebc9c3fa18cf7a9c29910072878b114b7d1a59c87a7968b3
generated: "2024-05-17T23:34:18.905404117Z"
2 changes: 1 addition & 1 deletion bitnami/apisix/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ sources:
- https://github.com/bitnami/charts/tree/main/bitnami/apisix
- https://github.com/bitnami/charts/tree/main/bitnami/apisix-dashboard
- https://github.com/bitnami/charts/tree/main/bitnami/apisix-ingress-controller
version: 3.0.5
version: 3.0.6
Loading

0 comments on commit 8431079

Please sign in to comment.