Skip to content

Commit 4f81f91

Browse files
csviriCopilot
andauthored
Update observability/install-observability.sh
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent e0a45f3 commit 4f81f91

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

observability/install-observability.sh

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -66,15 +66,11 @@ echo -e "\n${YELLOW}All resources will be applied first, then we'll wait for the
6666

6767
# Install cert-manager (required for OpenTelemetry Operator)
6868
echo -e "\n${YELLOW}Installing cert-manager...${NC}"
69-
if kubectl get namespace cert-manager > /dev/null 2>&1; then
70-
echo -e "${YELLOW}cert-manager namespace already exists, skipping...${NC}"
71-
else
72-
kubectl create namespace cert-manager
73-
helm install cert-manager jetstack/cert-manager \
74-
--namespace cert-manager \
75-
--set crds.enabled=true
76-
echo -e "${GREEN}✓ cert-manager installation started${NC}"
77-
fi
69+
helm upgrade --install cert-manager jetstack/cert-manager \
70+
--namespace cert-manager \
71+
--create-namespace \
72+
--set crds.enabled=true
73+
echo -e "${GREEN}✓ cert-manager installation or upgrade started${NC}"
7874

7975
# Create observability namespace
8076
echo -e "\n${YELLOW}Creating observability namespace...${NC}"

0 commit comments

Comments
 (0)