Skip to content

Commit

Permalink
HPA is temporarily disabled
Browse files Browse the repository at this point in the history
Signed-off-by: frezes <[email protected]>
  • Loading branch information
frezes committed Oct 17, 2023
1 parent 4786eb3 commit a96e5dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/controllers/monitoring/resources/store/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,6 @@ func (r *Store) Reconcile() error {
var ress []resources.Resource
ress = append(ress, r.statefulSets()...)
ress = append(ress, r.services()...)
ress = append(ress, r.horizontalPodAutoscalers()...)
// ress = append(ress, r.horizontalPodAutoscalers()...)
return r.ReconcileResources(ress)
}
3 changes: 1 addition & 2 deletions pkg/controllers/monitoring/store_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ import (
"github.com/kubesphere/whizard/pkg/controllers/monitoring/resources/store"
"github.com/kubesphere/whizard/pkg/util"
appsv1 "k8s.io/api/apps/v1"
autoscalingv2beta2 "k8s.io/api/autoscaling/v2beta2"
corev1 "k8s.io/api/core/v1"
apierrors "k8s.io/apimachinery/pkg/api/errors"
"k8s.io/apimachinery/pkg/runtime"
Expand Down Expand Up @@ -112,7 +111,7 @@ func (r *StoreReconciler) SetupWithManager(mgr ctrl.Manager) error {
handler.EnqueueRequestsFromMapFunc(r.reconcileRequestFromStorage)).
Owns(&appsv1.StatefulSet{}).
Owns(&corev1.Service{}).
Owns(&autoscalingv2beta2.HorizontalPodAutoscaler{}).
// Owns(&autoscalingv2beta2.HorizontalPodAutoscaler{}).
Complete(r)
}

Expand Down

0 comments on commit a96e5dc

Please sign in to comment.