Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions charts/everest/Chart.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
dependencies:
- name: common
repository: file://charts/common
version: 0.0.14
version: 0.0.15
- name: everest-db-namespace
repository: file://charts/everest-db-namespace
version: 0.0.0
Expand All @@ -11,5 +11,5 @@ dependencies:
- name: victoria-metrics-operator
repository: https://victoriametrics.github.io/helm-charts
version: 0.37.0
digest: sha256:b219948462cc632aa1b2b1bd80e7831c9cbfd9aa22d38a1eaa6e61c70bfe563c
generated: "2024-12-18T15:46:21.983602+05:30"
digest: sha256:3a242a586daaa55b94ccfa604e715d829436d96028e6f1fd843cba2ae3f75020
generated: "2025-02-28T17:55:12.063904+05:30"
2 changes: 1 addition & 1 deletion charts/everest/charts/common/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: common
description: A library chart for Everest containing common resources.
type: library
version: 0.0.14
version: 0.0.15
appVersion: "0.0.3"
maintainers:
- name: mayankshah1607
Expand Down
2 changes: 1 addition & 1 deletion charts/everest/charts/common/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# common

![Version: 0.0.14](https://img.shields.io/badge/Version-0.0.14-informational?style=flat-square) ![Type: library](https://img.shields.io/badge/Type-library-informational?style=flat-square) ![AppVersion: 0.0.3](https://img.shields.io/badge/AppVersion-0.0.3-informational?style=flat-square)
![Version: 0.0.15](https://img.shields.io/badge/Version-0.0.15-informational?style=flat-square) ![Type: library](https://img.shields.io/badge/Type-library-informational?style=flat-square) ![AppVersion: 0.0.3](https://img.shields.io/badge/AppVersion-0.0.3-informational?style=flat-square)

A library chart for Everest containing common resources.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,32 +86,32 @@ spec:
- -c
- |
kubectl label namespace {{ .namespace }} app.kubernetes.io/managed-by=everest --overwrite
subs=$(kubectl -n {{ .namespace }} get subscription -o jsonpath='{.items[*].metadata.name}')
subs=$(kubectl -n {{ .namespace }} get subscriptions.operators.coreos.com -o jsonpath='{.items[*].metadata.name}')
for sub in $subs
do
# We do not want to touch already installed operators, otherwise bad things can happen.
installedCSV=$(kubectl -n {{ .namespace }} get sub $sub -o jsonpath='{.status.installedCSV}')
installedCSV=$(kubectl -n {{ .namespace }} get subscriptions.operators.coreos.com $sub -o jsonpath='{.status.installedCSV}')
if [ "$installedCSV" != "" ]; then
echo "Operator $sub already installed. Skip..."
continue
fi

echo "Waiting for InstallPlan to be created for Subscription $sub"
kubectl wait --for=jsonpath='.status.installplan.name' sub/$sub -n {{ .namespace }} --timeout=600s
kubectl wait --for=jsonpath='.status.installplan.name' subscriptions.operators.coreos.com/$sub -n {{ .namespace }} --timeout=600s

ip=$(kubectl -n {{ .namespace }} get sub $sub -o jsonpath='{.status.installplan.name}')
ip=$(kubectl -n {{ .namespace }} get subscriptions.operators.coreos.com $sub -o jsonpath='{.status.installplan.name}')
echo "InstallPlan $ip created for Subscription $sub"

echo "Approving InstallPlan $ip"
kubectl -n {{ .namespace }} patch installplan $ip --type='json' -p='[{"op": "replace", "path": "/spec/approved", "value": true}]'
kubectl -n {{ .namespace }} patch installplans.operators.coreos.com $ip --type='json' -p='[{"op": "replace", "path": "/spec/approved", "value": true}]'

echo "Waiting for InstallPlan to be complete $ip"
kubectl wait --for=jsonpath='.status.phase'=Complete installplan/$ip -n {{ .namespace }} --timeout=600s
kubectl wait --for=jsonpath='.status.phase'=Complete installplans.operators.coreos.com/$ip -n {{ .namespace }} --timeout=600s

csv=$(kubectl get sub $sub -n {{ .namespace }} -o jsonpath='{.status.installedCSV}')
csv=$(kubectl get subscriptions.operators.coreos.com $sub -n {{ .namespace }} -o jsonpath='{.status.installedCSV}')

echo "Waiting for CSV $csv to succeed"
kubectl wait --for=jsonpath='.status.phase'=Succeeded csv/$csv -n {{ .namespace }} --timeout=600s
kubectl wait --for=jsonpath='.status.phase'=Succeeded clusterserviceversions.operators.coreos.com/$csv -n {{ .namespace }} --timeout=600s
done
dnsPolicy: ClusterFirst
restartPolicy: OnFailure
Expand Down
6 changes: 3 additions & 3 deletions charts/everest/charts/everest-db-namespace/Chart.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
dependencies:
- name: common
repository: file://../common
version: 0.0.14
digest: sha256:61216b351bbcb7f96c3fe64d857053392bb347aa177b139c661f51673ba4954e
generated: "2024-12-18T15:46:26.617364+05:30"
version: 0.0.15
digest: sha256:707d2c42aa47e16a9ae8649184489d1ca7b5bfec62e2f08653ca7910ec860235
generated: "2025-02-28T17:55:16.967068+05:30"