NAS-122269 / 23.10 / Adds a script that can be run locally to update common on all apps (only new common) (#1250)

* Add script to update common

* update common in apps

* remove redundant empty line
This commit is contained in:
Stavros Kois
2023-06-10 23:57:33 +03:00
committed by GitHub
parent db7e48d838
commit f131c4847a
79 changed files with 202 additions and 106 deletions

1
.gitignore vendored
View File

@@ -37,3 +37,4 @@ tests/test-report.xml
__snapshot__/
library/common-test/Chart.lock
library/common-test/charts
yq

View File

@@ -2,12 +2,14 @@
VERSION="v4.31.1"
BINARY="yq_linux_amd64"
YQ_PATH="/tmp/yq"
YQ_PATH="$(pwd)/yq"
BASE_PATH="library/ix-dev"
if [[ ! -f "$YQ_PATH" ]]; then
wget -q "https://github.com/mikefarah/yq/releases/download/${VERSION}/${BINARY}" -O "$YQ_PATH" && \
chmod +x "$YQ_PATH"
echo "Downloading yq..."
wget -q "https://github.com/mikefarah/yq/releases/download/${VERSION}/${BINARY}" -O "$YQ_PATH" && \
chmod +x "$YQ_PATH"
echo "Done"
fi
function check_args(){

View File

@@ -1,6 +1,6 @@
dependencies:
- name: common
repository: file://../../../common
version: 1.0.7
digest: sha256:919bcf42446fc1748a1b77001ec0161bb7a72a198381794b716a6ebb459ac31b
generated: "2023-05-10T19:44:31.823392975+03:00"
version: 1.0.8
digest: sha256:254efaa1285f634b7a80b7baadeadbd20a680f7fee49d1d9d3c4618aa0d657ad
generated: "2023-06-08T17:20:48.507907125+03:00"

View File

@@ -1,10 +1,9 @@
name: elastic-search
description: Elasticsearch is the distributed, RESTful search and analytics engine
at the heart of the Elastic Stack.
description: Elasticsearch is the distributed, RESTful search and analytics engine at the heart of the Elastic Stack.
annotations:
title: Elastic Search
type: application
version: 1.0.8
version: 1.0.9
apiVersion: v2
appVersion: 8.8.0
kubeVersion: '>=1.16.0-0'
@@ -15,7 +14,7 @@ maintainers:
dependencies:
- name: common
repository: file://../../../common
version: 1.0.7
version: 1.0.8
home: https://www.elastic.co
icon: https://images.contentstack.io/v3/assets/bltefdd0b53724fa2ce/blt280217a63b82a734/6202d3378b1f312528798412/elastic-logo.svg
sources:

View File

@@ -1,6 +1,6 @@
dependencies:
- name: common
repository: file://../../../common
version: 1.0.7
digest: sha256:919bcf42446fc1748a1b77001ec0161bb7a72a198381794b716a6ebb459ac31b
generated: "2023-05-10T19:44:24.800830545+03:00"
version: 1.0.8
digest: sha256:254efaa1285f634b7a80b7baadeadbd20a680f7fee49d1d9d3c4618aa0d657ad
generated: "2023-06-08T17:20:53.283350983+03:00"

View File

@@ -3,7 +3,7 @@ description: The Prometheus monitoring system and time series database.
annotations:
title: Prometheus
type: application
version: 1.0.8
version: 1.0.9
apiVersion: v2
appVersion: v2.44.0
kubeVersion: '>=1.16.0-0'
@@ -14,7 +14,7 @@ maintainers:
dependencies:
- name: common
repository: file://../../../common
version: 1.0.7
version: 1.0.8
home: https://prometheus.io
icon: https://avatars.githubusercontent.com/u/3380462
sources:

View File

@@ -1,6 +1,6 @@
dependencies:
- name: common
repository: file://../../../common
version: 1.0.7
digest: sha256:919bcf42446fc1748a1b77001ec0161bb7a72a198381794b716a6ebb459ac31b
generated: "2023-05-10T19:51:01.476545078+03:00"
version: 1.0.8
digest: sha256:254efaa1285f634b7a80b7baadeadbd20a680f7fee49d1d9d3c4618aa0d657ad
generated: "2023-06-08T17:20:57.732388118+03:00"

View File

@@ -1,10 +1,9 @@
name: chia
description: Chia is a modern cryptocurrency built from scratch, designed to be efficient,
decentralized, and secure.
description: Chia is a modern cryptocurrency built from scratch, designed to be efficient, decentralized, and secure.
annotations:
title: Chia
type: application
version: 1.0.10
version: 1.0.11
apiVersion: v2
appVersion: 1.8.1
kubeVersion: '>=1.16.0-0'
@@ -15,7 +14,7 @@ maintainers:
dependencies:
- name: common
repository: file://../../../common
version: 1.0.7
version: 1.0.8
home: https://www.chia.net/
icon: https://www.chia.net/wp-content/uploads/2022/09/chia-logo.svg
sources:

Binary file not shown.

View File

@@ -1,6 +1,6 @@
dependencies:
- name: common
repository: file://../../../common
version: 1.0.7
digest: sha256:919bcf42446fc1748a1b77001ec0161bb7a72a198381794b716a6ebb459ac31b
generated: "2023-05-10T19:51:45.192486134+03:00"
version: 1.0.8
digest: sha256:254efaa1285f634b7a80b7baadeadbd20a680f7fee49d1d9d3c4618aa0d657ad
generated: "2023-06-08T17:21:03.350429342+03:00"

View File

@@ -3,7 +3,7 @@ description: ClamAV is an open source (GPLv2) anti-virus toolkit.
annotations:
title: Clam AV
type: application
version: 1.0.2
version: 1.0.3
apiVersion: v2
appVersion: '1.0.1'
kubeVersion: '>=1.16.0-0'
@@ -14,7 +14,7 @@ maintainers:
dependencies:
- name: common
repository: file://../../../common
version: 1.0.7
version: 1.0.8
home: https://www.clamav.net/
icon: https://raw.githubusercontent.com/micahsnyder/clamav-documentation/main/src/images/logo.png
sources:

View File

@@ -1,6 +1,6 @@
dependencies:
- name: common
repository: file://../../../common
version: 1.0.7
digest: sha256:919bcf42446fc1748a1b77001ec0161bb7a72a198381794b716a6ebb459ac31b
generated: "2023-05-10T19:53:22.671643678+03:00"
version: 1.0.8
digest: sha256:254efaa1285f634b7a80b7baadeadbd20a680f7fee49d1d9d3c4618aa0d657ad
generated: "2023-06-08T17:21:08.023793089+03:00"

View File

@@ -3,7 +3,7 @@ description: Gitea - Git with a cup of tea
annotations:
title: Gitea
type: application
version: 1.0.6
version: 1.0.7
apiVersion: v2
appVersion: '1.19.0'
kubeVersion: '>=1.16.0-0'
@@ -14,7 +14,7 @@ maintainers:
dependencies:
- name: common
repository: file://../../../common
version: 1.0.7
version: 1.0.8
home: https://gitea.io/en-us
icon: https://gitea.com/assets/img/logo.svg
sources:

Binary file not shown.

View File

@@ -1,6 +1,6 @@
dependencies:
- name: common
repository: file://../../../common
version: 1.0.7
digest: sha256:919bcf42446fc1748a1b77001ec0161bb7a72a198381794b716a6ebb459ac31b
generated: "2023-05-10T16:11:14.326920901+03:00"
version: 1.0.8
digest: sha256:254efaa1285f634b7a80b7baadeadbd20a680f7fee49d1d9d3c4618aa0d657ad
generated: "2023-06-08T17:21:13.066837982+03:00"

View File

@@ -1,10 +1,9 @@
name: ipfs
description: Interplanetary Filesystem - the Web3 standard for content-addressing,
interoperable with HTTP
description: Interplanetary Filesystem - the Web3 standard for content-addressing, interoperable with HTTP
annotations:
title: IPFS
type: application
version: 1.0.11
version: 1.0.12
apiVersion: v2
appVersion: v0.20.0
kubeVersion: '>=1.16.0-0'
@@ -15,7 +14,7 @@ maintainers:
dependencies:
- name: common
repository: file://../../../common
version: 1.0.7
version: 1.0.8
home: https://ipfs.tech/
icon: https://avatars.githubusercontent.com/u/10536621
sources:

Binary file not shown.

View File

@@ -1,6 +1,6 @@
dependencies:
- name: common
repository: file://../../../common
version: 1.0.7
digest: sha256:919bcf42446fc1748a1b77001ec0161bb7a72a198381794b716a6ebb459ac31b
generated: "2023-05-10T19:54:51.99344665+03:00"
version: 1.0.8
digest: sha256:254efaa1285f634b7a80b7baadeadbd20a680f7fee49d1d9d3c4618aa0d657ad
generated: "2023-06-08T17:21:17.736127647+03:00"

View File

@@ -3,7 +3,7 @@ description: Jellyfin is a Free Software Media System that puts you in control o
annotations:
title: Jellyfin
type: application
version: 1.0.4
version: 1.0.5
apiVersion: v2
appVersion: '10.8.10'
kubeVersion: '>=1.16.0-0'
@@ -14,7 +14,7 @@ maintainers:
dependencies:
- name: common
repository: file://../../../common
version: 1.0.7
version: 1.0.8
home: https://jellyfin.org/
icon: https://jellyfin.org/images/logo.svg
sources:

View File

@@ -1,6 +1,6 @@
dependencies:
- name: common
repository: file://../../../common
version: 1.0.7
digest: sha256:919bcf42446fc1748a1b77001ec0161bb7a72a198381794b716a6ebb459ac31b
generated: "2023-05-10T19:55:28.336995701+03:00"
version: 1.0.8
digest: sha256:254efaa1285f634b7a80b7baadeadbd20a680f7fee49d1d9d3c4618aa0d657ad
generated: "2023-06-08T17:21:21.02822465+03:00"

View File

@@ -3,7 +3,7 @@ description: Lidarr is a music collection manager for Usenet and BitTorrent user
annotations:
title: Lidarr
type: application
version: 1.0.8
version: 1.0.9
apiVersion: v2
appVersion: '1.1.3.2982'
kubeVersion: '>=1.16.0-0'
@@ -14,7 +14,7 @@ maintainers:
dependencies:
- name: common
repository: file://../../../common
version: 1.0.7
version: 1.0.8
home: https://github.com/Lidarr/Lidarr
icon: https://raw.githubusercontent.com/Lidarr/Lidarr/develop/Logo/256.png
sources:

View File

@@ -1,6 +1,6 @@
dependencies:
- name: common
repository: file://../../../common
version: 1.0.7
digest: sha256:919bcf42446fc1748a1b77001ec0161bb7a72a198381794b716a6ebb459ac31b
generated: "2023-05-10T19:56:31.736475104+03:00"
version: 1.0.8
digest: sha256:254efaa1285f634b7a80b7baadeadbd20a680f7fee49d1d9d3c4618aa0d657ad
generated: "2023-06-08T17:21:24.274638083+03:00"

View File

@@ -3,7 +3,7 @@ description: Minecraft is a sandbox game
annotations:
title: Minecraft
type: application
version: 1.0.2
version: 1.0.3
apiVersion: v2
appVersion: '2023.3.0'
kubeVersion: '>=1.16.0-0'
@@ -14,7 +14,7 @@ maintainers:
dependencies:
- name: common
repository: file://../../../common
version: 1.0.7
version: 1.0.8
home: https://www.minecraft.net/en-us
icon: https://www.minecraft.net/content/dam/games/minecraft/logos/logo-minecraft.svg
sources:

View File

@@ -1,6 +1,6 @@
dependencies:
- name: common
repository: file://../../../common
version: 1.0.7
digest: sha256:919bcf42446fc1748a1b77001ec0161bb7a72a198381794b716a6ebb459ac31b
generated: "2023-05-10T19:59:17.84571804+03:00"
version: 1.0.8
digest: sha256:254efaa1285f634b7a80b7baadeadbd20a680f7fee49d1d9d3c4618aa0d657ad
generated: "2023-06-08T17:21:27.607216109+03:00"

View File

@@ -3,7 +3,7 @@ description: Expose your services easily and securely
annotations:
title: Nginx Proxy Manager
type: application
version: 1.0.7
version: 1.0.8
apiVersion: v2
appVersion: 2.10.3
kubeVersion: '>=1.16.0-0'
@@ -14,7 +14,7 @@ maintainers:
dependencies:
- name: common
repository: file://../../../common
version: 1.0.7
version: 1.0.8
home: https://nginxproxymanager.com/
icon: https://nginxproxymanager.com/logo.png
sources:

View File

@@ -1,6 +1,6 @@
dependencies:
- name: common
repository: file://../../../common
version: 1.0.7
digest: sha256:919bcf42446fc1748a1b77001ec0161bb7a72a198381794b716a6ebb459ac31b
generated: "2023-05-10T19:59:26.059192275+03:00"
version: 1.0.8
digest: sha256:254efaa1285f634b7a80b7baadeadbd20a680f7fee49d1d9d3c4618aa0d657ad
generated: "2023-06-08T17:21:31.007764388+03:00"

View File

@@ -3,7 +3,7 @@ description: Overseerr is a free and open source software application for managi
annotations:
title: Overseerr
type: application
version: 1.0.3
version: 1.0.4
apiVersion: v2
appVersion: '1.32.5'
kubeVersion: '>=1.16.0-0'
@@ -14,7 +14,7 @@ maintainers:
dependencies:
- name: common
repository: file://../../../common
version: 1.0.7
version: 1.0.8
home: https://github.com/sct/overseerr
icon: https://raw.githubusercontent.com/sct/overseerr/develop/public/os_icon.svg
sources:

View File

@@ -1,6 +1,6 @@
dependencies:
- name: common
repository: file://../../../common
version: 1.0.7
digest: sha256:919bcf42446fc1748a1b77001ec0161bb7a72a198381794b716a6ebb459ac31b
generated: "2023-05-10T20:02:20.565634837+03:00"
version: 1.0.8
digest: sha256:254efaa1285f634b7a80b7baadeadbd20a680f7fee49d1d9d3c4618aa0d657ad
generated: "2023-06-08T17:21:35.14050064+03:00"

View File

@@ -3,7 +3,7 @@ description: Radarr is a movie collection manager for Usenet and BitTorrent user
annotations:
title: Radarr
type: application
version: 1.0.11
version: 1.0.12
apiVersion: v2
appVersion: 4.5.2.7388
kubeVersion: '>=1.16.0-0'
@@ -14,7 +14,7 @@ maintainers:
dependencies:
- name: common
repository: file://../../../common
version: 1.0.7
version: 1.0.8
home: https://github.com/Radarr/Radarr
icon: https://raw.githubusercontent.com/Radarr/Radarr/develop/Logo/256.png
sources:

View File

@@ -1,6 +1,6 @@
dependencies:
- name: common
repository: file://../../../common
version: 1.0.7
digest: sha256:919bcf42446fc1748a1b77001ec0161bb7a72a198381794b716a6ebb459ac31b
generated: "2023-05-10T20:03:04.592747255+03:00"
version: 1.0.8
digest: sha256:254efaa1285f634b7a80b7baadeadbd20a680f7fee49d1d9d3c4618aa0d657ad
generated: "2023-06-08T17:21:38.528238119+03:00"

View File

@@ -3,7 +3,7 @@ description: Sonarr is a PVR for Usenet and BitTorrent users.
annotations:
title: Sonarr
type: application
version: 1.0.8
version: 1.0.9
apiVersion: v2
appVersion: '3.0.10.1567'
kubeVersion: '>=1.16.0-0'
@@ -14,7 +14,7 @@ maintainers:
dependencies:
- name: common
repository: file://../../../common
version: 1.0.7
version: 1.0.8
home: https://github.com/Sonarr/Sonarr
icon: https://raw.githubusercontent.com/Sonarr/Sonarr/develop/Logo/256.png
sources:

View File

@@ -1,6 +1,6 @@
dependencies:
- name: common
repository: file://../../../common
version: 1.0.7
digest: sha256:919bcf42446fc1748a1b77001ec0161bb7a72a198381794b716a6ebb459ac31b
generated: "2023-05-10T20:03:14.093790927+03:00"
version: 1.0.8
digest: sha256:254efaa1285f634b7a80b7baadeadbd20a680f7fee49d1d9d3c4618aa0d657ad
generated: "2023-06-08T17:21:41.878540809+03:00"

View File

@@ -3,7 +3,7 @@ description: Secure remote access to shared resources
annotations:
title: Tailscale
type: application
version: 1.0.4
version: 1.0.5
apiVersion: v2
appVersion: 'v1.42.0'
kubeVersion: '>=1.16.0-0'
@@ -14,7 +14,7 @@ maintainers:
dependencies:
- name: common
repository: file://../../../common
version: 1.0.7
version: 1.0.8
home: https://tailscale.com/
icon: https://avatars.githubusercontent.com/u/48932923
sources:

View File

@@ -1,6 +1,6 @@
dependencies:
- name: common
repository: file://../../../common
version: 1.0.7
digest: sha256:919bcf42446fc1748a1b77001ec0161bb7a72a198381794b716a6ebb459ac31b
generated: "2023-05-10T20:04:03.466527194+03:00"
version: 1.0.8
digest: sha256:254efaa1285f634b7a80b7baadeadbd20a680f7fee49d1d9d3c4618aa0d657ad
generated: "2023-06-08T17:21:46.297884693+03:00"

View File

@@ -3,7 +3,7 @@ description: Tdarr is a Distributed Transcoding System
annotations:
title: Tdarr
type: application
version: 1.0.6
version: 1.0.7
apiVersion: v2
appVersion: '2.00.20.1'
kubeVersion: '>=1.16.0-0'
@@ -14,7 +14,7 @@ maintainers:
dependencies:
- name: common
repository: file://../../../common
version: 1.0.7
version: 1.0.8
home: https://home.tdarr.io/
icon: https://home.tdarr.io/static/media/logo3-min.246d6df4.png
sources:

Binary file not shown.

View File

@@ -1,6 +1,6 @@
dependencies:
- name: common
repository: file://../../../common
version: 1.0.7
digest: sha256:919bcf42446fc1748a1b77001ec0161bb7a72a198381794b716a6ebb459ac31b
generated: "2023-05-10T20:05:39.145721186+03:00"
version: 1.0.8
digest: sha256:254efaa1285f634b7a80b7baadeadbd20a680f7fee49d1d9d3c4618aa0d657ad
generated: "2023-06-08T17:21:49.622867914+03:00"

View File

@@ -3,7 +3,7 @@ description: Terraria is a land of adventure! A land of mystery! A land that's y
annotations:
title: Terraria
type: application
version: 1.0.2
version: 1.0.3
apiVersion: v2
appVersion: '1.4.4.9'
kubeVersion: '>=1.16.0-0'
@@ -14,7 +14,7 @@ maintainers:
dependencies:
- name: common
repository: file://../../../common
version: 1.0.7
version: 1.0.8
home: https://terraria.org/
icon: https://static.wikia.nocookie.net/terraria_gamepedia/images/a/a4/NewPromoLogo.png/revision/latest
sources:

View File

@@ -1,6 +1,6 @@
dependencies:
- name: common
repository: file://../../../common
version: 1.0.7
digest: sha256:919bcf42446fc1748a1b77001ec0161bb7a72a198381794b716a6ebb459ac31b
generated: "2023-05-10T20:05:33.665874823+03:00"
version: 1.0.8
digest: sha256:254efaa1285f634b7a80b7baadeadbd20a680f7fee49d1d9d3c4618aa0d657ad
generated: "2023-06-08T17:21:52.882550165+03:00"

View File

@@ -1,10 +1,9 @@
name: vaultwarden
description: Alternative implementation of the Bitwarden server API written in Rust
and compatible with upstream Bitwarden clients.
description: Alternative implementation of the Bitwarden server API written in Rust and compatible with upstream Bitwarden clients.
annotations:
title: Vaultwarden
type: application
version: 1.0.10
version: 1.0.11
apiVersion: v2
appVersion: '1.28.1'
kubeVersion: '>=1.16.0-0'
@@ -15,7 +14,7 @@ maintainers:
dependencies:
- name: common
repository: file://../../../common
version: 1.0.7
version: 1.0.8
home: https://github.com/dani-garcia/vaultwarden
icon: https://raw.githubusercontent.com/dani-garcia/vaultwarden/main/src/static/images/vaultwarden-icon.png
sources:

View File

@@ -1,6 +1,6 @@
dependencies:
- name: common
repository: file://../../../common
version: 1.0.7
digest: sha256:919bcf42446fc1748a1b77001ec0161bb7a72a198381794b716a6ebb459ac31b
generated: "2023-05-09T17:09:32.735505559+03:00"
version: 1.0.8
digest: sha256:254efaa1285f634b7a80b7baadeadbd20a680f7fee49d1d9d3c4618aa0d657ad
generated: "2023-06-08T17:21:56.146742836+03:00"

View File

@@ -3,7 +3,7 @@ description: WebDAV is a set of extensions to the HTTP protocol which allows use
annotations:
title: WebDAv
type: application
version: 1.0.0
version: 1.0.1
apiVersion: v2
appVersion: '1.1.3.2982'
kubeVersion: '>=1.16.0-0'
@@ -14,7 +14,7 @@ maintainers:
dependencies:
- name: common
repository: file://../../../common
version: 1.0.7
version: 1.0.8
home: http://www.webdav.org/
icon: http://www.webdav.org/images/webdav-logo.jpg
sources:

View File

@@ -1,6 +1,6 @@
dependencies:
- name: common
repository: file://../../../common
version: 1.0.7
digest: sha256:919bcf42446fc1748a1b77001ec0161bb7a72a198381794b716a6ebb459ac31b
generated: "2023-05-10T20:05:45.462051649+03:00"
version: 1.0.8
digest: sha256:254efaa1285f634b7a80b7baadeadbd20a680f7fee49d1d9d3c4618aa0d657ad
generated: "2023-06-08T17:21:59.310628337+03:00"

View File

@@ -3,7 +3,7 @@ description: Securely connect any device, anywhere.
annotations:
title: Zerotier
type: application
version: 1.0.1
version: 1.0.2
apiVersion: v2
appVersion: '1.10.6'
kubeVersion: '>=1.16.0-0'
@@ -14,7 +14,7 @@ maintainers:
dependencies:
- name: common
repository: file://../../../common
version: 1.0.7
version: 1.0.8
home: https://www.zerotier.com
icon: https://avatars.githubusercontent.com/u/4173285
sources:

97
update_common.sh Executable file
View File

@@ -0,0 +1,97 @@
#!/bin/bash
VERSION="v4.31.1"
BINARY="yq_linux_amd64"
YQ_PATH="$(pwd)/yq"
BASE_PATH="library/ix-dev"
if [[ ! -d "$BASE_PATH" ]]; then
echo "Error: [$BASE_PATH] does not exist"
exit 1
fi
if [[ ! -f "$YQ_PATH" ]]; then
echo "Downloading yq..."
wget -q "https://github.com/mikefarah/yq/releases/download/${VERSION}/${BINARY}" -O "$YQ_PATH" && \
chmod +x "$YQ_PATH"
echo "Done"
fi
REPO="file://../../../common"
LATEST_COMMON_VERSION=$("$YQ_PATH" '.version' library/common/Chart.yaml)
trains=("charts" "community" "enterprise")
for train in "${trains[@]}"; do
echo "🚂 Checking [$train]..."
for app in "$BASE_PATH/$train"/*; do
echo "===================================================================================================="
echo "👀 Checking [$app]"
if [[ ! -d "$app" ]]; then
echo "🚫 Not a directory. Skipping..."
continue
fi
if [[ ! -f "$app/Chart.yaml" ]]; then
echo "🚫 No Chart.yaml found. Skipping..."
continue
fi
deps=$("$YQ_PATH" '.dependencies[].name' "$app/Chart.yaml")
for dep in $deps; do
if [[ "$dep" != "common" ]]; then
continue
fi
common_version=$("$YQ_PATH" '.dependencies[] | select(.name == "common") | .version' "$app/Chart.yaml")
common_repo=$("$YQ_PATH" '.dependencies[] | select(.name == "common") | .repository' "$app/Chart.yaml")
if [[ ! $(echo "$common_repo" | grep -e "^$REPO$") ]]; then
echo "🚫 Common dependency is not from [$REPO] repo. Skipping..."
continue
fi
echo "🔍 Found common dependency with version [$common_version] from repo [$common_repo]"
if [[ -z "$common_version" ]]; then
echo "🚫 Common dependency version is empty. Skipping..."
continue
fi
if [[ "$common_version" == "$LATEST_COMMON_VERSION" ]]; then
echo "✅ Common dependency is up to date"
continue
fi
if [[ "$common_version" != "$LATEST_COMMON_VERSION" ]]; then
echo "🔨 Updating common dependency to [$LATEST_COMMON_VERSION] from [$REPO]"
"$YQ_PATH" --inplace '(.dependencies[] | select(.name == "common") | .version) = "'"$LATEST_COMMON_VERSION"'"' "$app/Chart.yaml"
echo "🔨 Running helm dependency update for [$app]"
helm dependency update "$app"
curr_version=$("$YQ_PATH" '.version' "$app/Chart.yaml")
# Split the version string into components
IFS='.' read -r -a version_array <<< "$curr_version"
# Extract the individual version components
major="${version_array[0]}"
minor="${version_array[1]}"
patch="${version_array[2]}"
# Increment the patch version
patch=$((patch + 1))
# Construct the updated version string
next_version="$major.$minor.$patch"
echo "🔨 Bumping Chart Version from [$curr_version] to [$next_version]"
"$YQ_PATH" --inplace '(.version ) = "'"$next_version"'"' "$app/Chart.yaml"
echo "✅ Done!"
fi
echo "===================================================================================================="
echo ""
done
done
done