Skip to content

Commit 60530b4

Browse files
oktalzGopher Bot
authored andcommitted
BUG/MINOR: properly save info if GWAPI is installed
1 parent bceaa03 commit 60530b4

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
@@ -58,3 +58,4 @@ allowed:
5858
- backports
5959
- alpn
6060
- SNI
61+
- gwapi

pkg/k8s/main.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ type k8s struct {
8787
initialSyncPeriod time.Duration
8888
cacheResyncPeriod time.Duration
8989
disableSvcExternalName bool // CVE-2021-25740
90-
gatewayAPIInstalled bool
9190
}
9291

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

363362
func (k k8s) IsGatewayAPIInstalled(gatewayControllerName string) (installed bool) {
364363
installed = true
365-
defer func() {
366-
k.gatewayAPIInstalled = installed
367-
}()
368364
gatewayCrd, err := k.crdClient.ApiextensionsV1().CustomResourceDefinitions().Get(context.Background(), "gateways.gateway.networking.k8s.io", metav1.GetOptions{})
369365
if err != nil {
370366
var errStatus *errGw.StatusError

0 commit comments

Comments
 (0)