Skip to content

Commit 10b68bc

Browse files
committed
BUG/MINOR: properly save info if GWAPI is installed
1 parent 6e007b9 commit 10b68bc

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

.aspell.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,4 @@ allowed:
5050
- backports
5151
- alpn
5252
- SNI
53+
- gwapi

pkg/k8s/main.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@ type k8s struct {
100100
initialSyncPeriod time.Duration
101101
cacheResyncPeriod time.Duration
102102
disableSvcExternalName bool // CVE-2021-25740
103-
gatewayAPIInstalled bool
104103
}
105104

106105
func New(osArgs utils.OSArgs, whitelist map[string]struct{}, publishSvc *utils.NamespaceValue) K8s { //nolint:ireturn
@@ -408,9 +407,6 @@ func getWhitelistedNS(whitelist map[string]struct{}, cfgMapNS string) []string {
408407

409408
func (k k8s) IsGatewayAPIInstalled(gatewayControllerName string) (installed bool) {
410409
installed = true
411-
defer func() {
412-
k.gatewayAPIInstalled = installed
413-
}()
414410
gatewayCrd, err := k.crdClient.ApiextensionsV1().CustomResourceDefinitions().Get(context.Background(), "gateways.gateway.networking.k8s.io", metav1.GetOptions{})
415411
if err != nil {
416412
var errStatus *errGw.StatusError

0 commit comments

Comments
 (0)