Skip to content

Commit

Permalink
Merge pull request #381 from frezes/release-0.9
Browse files Browse the repository at this point in the history
[release-0.9] HPA is temporarily disabled
  • Loading branch information
benjaminhuo authored Oct 17, 2023
2 parents 5108cc6 + 4e8cdce commit 795e8e7
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 795e8e7

Please sign in to comment.