diff --git a/service/controller/resource/clustersecret/desired.go b/service/controller/resource/clustersecret/desired.go index 4f82498a..61be049f 100644 --- a/service/controller/resource/clustersecret/desired.go +++ b/service/controller/resource/clustersecret/desired.go @@ -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() } + } }