Skip to content

Commit

Permalink
Return nil if fleet membership is nil
Browse files Browse the repository at this point in the history
  • Loading branch information
willie-yao committed Nov 29, 2023
1 parent b354f65 commit 5283947
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions azure/scope/managedcontrolplane.go
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,9 @@ func (s *ManagedControlPlaneScope) VNetSpec() azure.ResourceSpecGetter {

// AzureFleetsMemberSpec returns the fleet spec.
func (s *ManagedControlPlaneScope) AzureFleetsMemberSpec() azure.ASOResourceSpecGetter[*asocontainerservicev1preview.FleetsMember] {
if s.AzureFleetMembership() == nil {
return nil
}
return &fleetsmember.AzureFleetsMemberSpec{
Name: s.AzureFleetMembership().Name,
Namespace: s.Cluster.Namespace,
Expand Down

0 comments on commit 5283947

Please sign in to comment.