Upgrade k8s package verison (#5358)

* upgrade k8s package version

Signed-off-by: hongzhouzi <hongzhouzi@kubesphere.io>

* Script upgrade and code formatting.

Signed-off-by: hongzhouzi <hongzhouzi@kubesphere.io>

Signed-off-by: hongzhouzi <hongzhouzi@kubesphere.io>
This commit is contained in:
hongzhouzi
2022-11-15 14:56:38 +08:00
committed by GitHub
parent 5f91c1663a
commit 44167aa47a
3106 changed files with 321340 additions and 172080 deletions

View File

@@ -136,7 +136,7 @@ func (r *ClusterRuleGroupReconciler) Reconcile(ctx context.Context, req reconcil
}
func (r *ClusterRuleGroupReconciler) SetupWithManager(mgr ctrl.Manager) error {
if r.Log == nil {
if r.Log.GetSink() == nil {
r.Log = mgr.GetLogger()
}
if r.Client == nil {

View File

@@ -132,7 +132,7 @@ func (r *GlobalRuleGroupReconciler) Reconcile(ctx context.Context, req reconcile
}
func (r *GlobalRuleGroupReconciler) SetupWithManager(mgr ctrl.Manager) error {
if r.Log == nil {
if r.Log.GetSink() == nil {
r.Log = mgr.GetLogger()
}
if r.Client == nil {

View File

@@ -165,7 +165,7 @@ func (r *RuleGroupReconciler) Reconcile(ctx context.Context, req reconcile.Reque
}
func (r *RuleGroupReconciler) SetupWithManager(mgr ctrl.Manager) error {
if r.Log == nil {
if r.Log.GetSink() == nil {
r.Log = mgr.GetLogger()
}
if r.Client == nil {