1
0
mirror of https://github.com/rancher/rke.git synced 2025-09-12 13:18:47 +00:00

bump the API used for api-server from v1alpha1 to v1

This commit is contained in:
Jiaqi Luo
2022-10-27 15:58:10 -07:00
parent 1857a48d4e
commit c4a521de08
5 changed files with 21 additions and 21 deletions

View File

@@ -14,7 +14,7 @@ import (
"github.com/rancher/rke/util"
"github.com/sirupsen/logrus"
"golang.org/x/sync/errgroup"
"k8s.io/apiserver/pkg/apis/apiserver/v1alpha1"
apiserverv1 "k8s.io/apiserver/pkg/apis/apiserver/v1"
"sigs.k8s.io/yaml"
)
@@ -148,9 +148,9 @@ func (c *Cluster) CalculateMaxUnavailable() (int, int, error) {
return maxUnavailableWorker, maxUnavailableControl, nil
}
func (c *Cluster) getConsolidatedAdmissionConfiguration() (*v1alpha1.AdmissionConfiguration, error) {
func (c *Cluster) getConsolidatedAdmissionConfiguration() (*apiserverv1.AdmissionConfiguration, error) {
var err error
var admissionConfig *v1alpha1.AdmissionConfiguration
var admissionConfig *apiserverv1.AdmissionConfiguration
if c.Services.KubeAPI.EventRateLimit == nil ||
!c.Services.KubeAPI.EventRateLimit.Enabled {