Skip to content

Commit

Permalink
Do not generate proxy env secret for non private clusters.
Browse files Browse the repository at this point in the history
  • Loading branch information
whites11 committed Feb 14, 2024
1 parent 7538cdd commit ae7ea53
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions service/controller/resource/clustersecret/desired.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,13 @@ func (r *Resource) GetDesiredState(ctx context.Context, obj interface{}) ([]*cor
return nil, microerror.Mask(err)
}

// CAPV all clusters are private if the MC is private.
privateCluster = !reflect.ValueOf(r.proxy).IsZero()
case infra.VSphereClusterKind:
// CAPV all clusters are private if the MC is private.
privateCluster = !reflect.ValueOf(r.proxy).IsZero()
}

}
}

Expand Down

0 comments on commit ae7ea53

Please sign in to comment.