Skip to content
Closed
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
8 changes: 8 additions & 0 deletions helm/holmes/templates/holmesgpt-service-account.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,14 @@ rules:
- get
- list

- apiGroups:
- "apiextensions.k8s.io"
resources:
- "customresourcedefinitions"
verbs:
- "list"
- "get"

- apiGroups:
- networking.k8s.io
resources:
Expand Down
2 changes: 1 addition & 1 deletion holmes/main.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# ruff: noqa: E402
import os

from holmes.utils.cert_utils import add_custom_certificate

ADDITIONAL_CERTIFICATE: str = os.environ.get("CERTIFICATE", "")
Expand All @@ -10,6 +9,7 @@
# DO NOT ADD ANY IMPORTS OR CODE ABOVE THIS LINE
# IMPORTING ABOVE MIGHT INITIALIZE AN HTTPS CLIENT THAT DOESN'T TRUST THE CUSTOM CERTIFICATE
import sys
from holmes.utils.colors import USER_COLOR
import json
import logging
import socket
Expand Down
8 changes: 7 additions & 1 deletion server.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# ruff: noqa: E402
import os

from holmes.utils.cert_utils import add_custom_certificate

ADDITIONAL_CERTIFICATE: str = os.environ.get("CERTIFICATE", "")
Expand All @@ -9,6 +8,13 @@

# DO NOT ADD ANY IMPORTS OR CODE ABOVE THIS LINE
# IMPORTING ABOVE MIGHT INITIALIZE AN HTTPS CLIENT THAT DOESN'T TRUST THE CUSTOM CERTIFICATE
import json
from typing import List, Optional

import litellm
import sentry_sdk
from holmes import get_version, is_official_release

from holmes.core import investigation
from holmes.utils.holmes_status import update_holmes_status_in_db
import logging
Expand Down
Loading