Skip to content

Commit fcf7073

Browse files
committed
Fixing install script
1 parent 7e79990 commit fcf7073

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

deployment/scripts/install-dependencies.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,25 @@ install_component() {
100100

101101
# Inline handler for Kuadrant (installed via Helm)
102102
if [[ "$component" == "kuadrant" ]]; then
103+
# Ensure kuadrant-system namespace exists
104+
kubectl create namespace kuadrant-system 2>/dev/null || echo "✅ Namespace kuadrant-system already exists"
105+
106+
107+
echo "🚀 Creating Kuadrant OperatorGroup..."
108+
kubectl apply -f - <<EOF
109+
apiVersion: operators.coreos.com/v1
110+
kind: OperatorGroup
111+
metadata:
112+
name: kuadrant-operator-group
113+
namespace: kuadrant-system
114+
spec: {}
115+
EOF
116+
103117
# Check if the CatalogSource already exists before applying
104118
if kubectl get catalogsource kuadrant-operator-catalog -n kuadrant-system &>/dev/null; then
105119
echo "✅ Kuadrant CatalogSource already exists in namespace kuadrant-system, skipping creation."
106120
else
121+
echo "🚀 Creating Kuadrant CatalogSource..."
107122
kubectl apply -f - <<EOF
108123
apiVersion: operators.coreos.com/v1alpha1
109124
kind: CatalogSource

0 commit comments

Comments
 (0)