GitHub IDP watcher should not dial an address that has already been validated

This commit is contained in:
Joshua Casey
2024-07-22 23:47:45 -05:00
committed by Ryan Richard
parent 72745cd8fe
commit 288e092d2e
3 changed files with 257 additions and 63 deletions

View File

@@ -25,6 +25,7 @@ import (
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/runtime/schema"
"k8s.io/apimachinery/pkg/runtime/serializer"
"k8s.io/apimachinery/pkg/util/cache"
apimachineryversion "k8s.io/apimachinery/pkg/version"
genericapifilters "k8s.io/apiserver/pkg/endpoints/filters"
openapinamer "k8s.io/apiserver/pkg/endpoints/openapi"
@@ -341,6 +342,7 @@ func prepareControllers(
controllerlib.WithInformer,
clock.RealClock{},
tls.Dial,
cache.NewExpiring(),
),
singletonWorker).
WithController(