appvia / krane

Kubernetes RBAC static analysis & visualisation tool

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] Krane is not compatible with Kubernetes 1.27, 1.25

krol3 opened this issue · comments

Short issue description

Krane version:
OS (Linux/Mac/Windows..): Linux
Kubernetes version: 1.27.1, 1.25.8
Kubernetes distribution (e.g. GKE, EKS, ...): local cluster kind

Krane works for me with this version v1.24.15, the upper version is the same error reported here

How can we reproduce the issue?

Similar to this another issue: #297

Install krane inside Kubernetes-1.27 kind create cluster and run krane report --incluster inside the krane pod.

$ k -n krane exec -ti krane-76d95cc76-mfhxj -- bash
bash-5.1$ krane report --incluster
INFO: This may take several seconds to complete...
INFO: ERR Invalid graph operation on empty key. Graph `rbac-default` will be created.
error: HTTP status code 404, the server could not find the requested resource for GET https://kubernetes.default.svc/apis/policy/v1beta1.
bash-5.1$

Suggestions on how to fix the issue (OPTIONAL)

Thank for reporting the issue @krol3. Can you confirm whether you've installed krane using helm chart?
The issue above has been already addressed (#298), however, I can see that the release containing that fix hasn't been cut yet but should go out shortly. I'm going to close the issue for now.