costela / hcloud-ip-floater

k8s controller for Hetzner Cloud floating IPs
GNU General Public License v3.0
55 stars 10 forks source link

no matches for kind "ClusterRole" in version "rbac.authorization.k8s.io/v1beta1" #45

Closed michaelsstuff closed 2 years ago

michaelsstuff commented 2 years ago

Hi,

got an issue deplyoing it:

kubectl apply -k .
namespace/hcloud-ip-floater created
serviceaccount/hcloud-ip-floater created
secret/hcloud-ip-floater-secret-env-6c674bdb66 created
deployment.apps/hcloud-ip-floater created
unable to recognize ".": no matches for kind "ClusterRole" in version "rbac.authorization.k8s.io/v1beta1"
unable to recognize ".": no matches for kind "ClusterRoleBinding" in version "rbac.authorization.k8s.io/v1beta1"

kubectl version

Client Version: version.Info{Major:"1", Minor:"23", GitVersion:"v1.23.4", GitCommit:"e6c093d87ea4cbb530a7b2ae91e54c0842d8308a", GitTreeState:"clean", BuildDate:"2022-02-16T12:38:05Z", GoVersion:"go1.17.7", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"22", GitVersion:"v1.22.7+k3s1", GitCommit:"8432d7f239676dfe8f748c0c2a3fabf8cf40a826", GitTreeState:"clean", BuildDate:"2022-02-24T23:03:47Z", GoVersion:"go1.16.10", Compiler:"gc", Platform:"linux/amd64"}

kubectl api-versions

acid.zalan.do/v1
admissionregistration.k8s.io/v1
agent.k8s.elastic.co/v1alpha1
apiextensions.k8s.io/v1
apiregistration.k8s.io/v1
apm.k8s.elastic.co/v1
apm.k8s.elastic.co/v1beta1
apps/v1
authentication.k8s.io/v1
authorization.k8s.io/v1
autoscaling/v1
autoscaling/v2beta1
autoscaling/v2beta2
batch/v1
batch/v1beta1
beat.k8s.elastic.co/v1beta1
certificates.k8s.io/v1
coordination.k8s.io/v1
discovery.k8s.io/v1
discovery.k8s.io/v1beta1
elasticsearch.k8s.elastic.co/v1
elasticsearch.k8s.elastic.co/v1beta1
enterprisesearch.k8s.elastic.co/v1
enterprisesearch.k8s.elastic.co/v1beta1
events.k8s.io/v1
events.k8s.io/v1beta1
flowcontrol.apiserver.k8s.io/v1beta1
helm.cattle.io/v1
k3s.cattle.io/v1
kibana.k8s.elastic.co/v1
kibana.k8s.elastic.co/v1beta1
maps.k8s.elastic.co/v1alpha1
metrics.k8s.io/v1beta1
networking.k8s.io/v1
node.k8s.io/v1
node.k8s.io/v1beta1
policy/v1
policy/v1beta1
rabbitmq.com/v1beta1
rbac.authorization.k8s.io/v1
scheduling.k8s.io/v1
storage.k8s.io/v1
storage.k8s.io/v1beta1
traefik.containo.us/v1alpha1
upgrade.cattle.io/v1
v1

I did manage to deploy it, by changing rbac.authorization.k8s.io/v1beta1 to rbac.authorization.k8s.io/v1, but not so sure if that was healthy to do?

Cheers Michael

costela commented 2 years ago

Thanks for the heads-up: this has been fixed for a while, but there was no release with the fix. Fixed in v0.1.5.