jitsi-contrib / jitsi-kubernetes-operator

Creative Commons Zero v1.0 Universal
40 stars 11 forks source link

autoscaling/v2beta2 API is deprecated and leads to an error #14

Open maylukas opened 3 months ago

maylukas commented 3 months ago

From the Kubernetes release notes:

`The autoscaling/v2beta2 API version of HorizontalPodAutoscaler is no longer served as of v1.26.

Migrate manifests and API clients to use the autoscaling/v2 API version, available since v1.23. All existing persisted objects are accessible via the new API v1.25`

Operator Error

2024-07-30T15:08:43Z ERROR unchanged {"controller": "jitsi", "controllerGroup": "apps.jit.si", "controllerKind": "Jitsi", "Jitsi": {"name":"jitsi-v2","namespace":"jitsi-meet-v2"}, "namespace": "jitsi-meet-v2", "name": "jitsi-v2", "reconcileID": "dd07c0a9-5347-4157-8a2f-406cbff2bbde", "syncer": "HorizontalPodAutoscaler", "key": {"name":"jitsi-v2-jvb","namespace":"jitsi-meet-v2"}, "kind": "autoscaling/v2beta2, Kind=HorizontalPodAutoscaler", "diff": ["<nil pointer> != &HorizontalPodAutoscaler{ObjectMeta:{jitsi-v2-jvb jitsi-meet-v2 0 0001-01-01 00:00:00 +0000 UTC <nil> <nil> map[] map[] [] [] []},Spec:HorizontalPodAutoscalerSpec{ScaleTargetRef:CrossVersionObjectReference{Kind:,Name:,APIVersion:,},MinReplicas:nil,MaxReplicas:0,Metrics:[]MetricSpec{},Behavior:nil,},Status:HorizontalPodAutoscalerStatus{ObservedGeneration:nil,LastScaleTime:<nil>,CurrentReplicas:0,DesiredReplicas:0,CurrentMetrics:[]MetricStatus{},Conditions:[]HorizontalPodAutoscalerCondition{},},}"], "error": "no matches for kind \"HorizontalPodAutoscaler\" in version \"autoscaling/v2beta2\""}