Skip to content

Commit

Permalink
fix: add guard against null attribute access
Browse files Browse the repository at this point in the history
  • Loading branch information
omissis committed Nov 29, 2023
1 parent eb3f207 commit 8998158
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/apis/kfd/v1alpha2/eks/create/kubernetes.go
Original file line number Diff line number Diff line change
Expand Up @@ -1298,6 +1298,7 @@ func (k *Kubernetes) checkVPCConnection() error {

if k.furyctlConf.Spec.Kubernetes.ApiServer.PrivateAccess &&
!k.furyctlConf.Spec.Kubernetes.ApiServer.PublicAccess &&
k.furyctlConf.Spec.Infrastructure != nil &&
k.furyctlConf.Spec.Infrastructure.Vpn != nil {
return k.queryAWSDNSServer(cidr)
}
Expand Down

0 comments on commit 8998158

Please sign in to comment.