File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
cmd/kube-controller-manager/app Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ import (
25
25
26
26
certificatesv1alpha1 "k8s.io/api/certificates/v1alpha1"
27
27
certificatesv1beta1 "k8s.io/api/certificates/v1beta1"
28
+ "k8s.io/apimachinery/pkg/api/errors"
28
29
"k8s.io/apimachinery/pkg/runtime/schema"
29
30
"k8s.io/apiserver/pkg/server/dynamiccertificates"
30
31
utilfeature "k8s.io/apiserver/pkg/util/feature"
@@ -291,6 +292,9 @@ func newKubeAPIServerSignerClusterTrustBundledPublisherController(ctx context.Co
291
292
292
293
func clusterTrustBundlesAvailable (client kubernetes.Interface , schemaVersion schema.GroupVersion ) (bool , error ) {
293
294
resList , err := client .Discovery ().ServerResourcesForGroupVersion (schemaVersion .String ())
295
+ if errors .IsNotFound (err ) {
296
+ return false , nil
297
+ }
294
298
295
299
if resList != nil {
296
300
// even in case of an error above there might be a partial list for APIs that
You can’t perform that action at this time.
0 commit comments