You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Kagenti installer uses hardcoded operator version #171
The Kagenti installer currently uses a hardcoded version of the operator in kagenti/installer/app/config.py. Each time the operator version changes, the installer must be manually updated to reference the new version.
Below is a snippet from config.py showing current configuration:
One challenge to the detector is that when we run the installer we run from the kagenti git repo, while the tag in question applies to the kagenti-operator repo.
One issue with GH API - unless authenticating with a token, you may get HTTP error occurred: 403 Client Error: rate limit exceeded for url. I was thinking to experiment with something like https://github.com/kagenti/kagenti-operator/pull/66 to automate creating a file with latest version info on the repo itself
Below is an alternative way to fetch kagenti-operator's release tag. This code extracts the latest tag from a sorted list of releases.
...
url = "https://api.github.com/repos/kagenti/kagenti-operator/releases
response = requests.get(url, timeout=40)
if response.status.code == 200:
releases = response.json()
for release in releases:
tag = release["tag"].lstrip('v')
return tag
...
Activity
pdettori commentedon Sep 2, 2025
One challenge to the detector is that when we run the installer we run from the kagenti git repo, while the tag in question applies to the kagenti-operator repo.
cwiklik commentedon Sep 2, 2025
@pdettori good catch. I need to use a different approach, perhaps based on git API. Will investigate that.
pdettori commentedon Sep 2, 2025
One issue with GH API - unless authenticating with a token, you may get
HTTP error occurred: 403 Client Error: rate limit exceeded for url. I was thinking to experiment with something likehttps://github.com/kagenti/kagenti-operator/pull/66to automate creating a file with latest version info on the repo itselfcwiklik commentedon Sep 2, 2025
Below is an alternative way to fetch kagenti-operator's release tag. This code extracts the latest tag from a sorted list of releases.
cwiklik commentedon Sep 2, 2025
Ok, the limit is a concern. I played with git commands and found this to work:
So just exec the git command in python and extract the version from the first item in the list.
pdettori commentedon Sep 2, 2025
that seems to work as it should not hit the rate limit