Skip to content

Commit

Permalink
Merge pull request #53 from microsoft/eedorenko/managed-cluster
Browse files Browse the repository at this point in the history
Managed clusters (AKS) support
  • Loading branch information
eedorenko committed Aug 26, 2024
2 parents e338866 + ba0d939 commit 89655fa
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions controllers/azureresourcegraph_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -331,10 +331,12 @@ func (r *AzureResourceGraphReconciler) createReconciler(status string, statusMes
func (r *AzureResourceGraphReconciler) getReconcilersDataFromChildKalypsoObjects(ctx context.Context, storageClient grpcClient.ObservabilityStorageGrpcClient, resourceGroup string, clusterName string, fluxConfigName string, fluxConfigClient *armkubernetesconfiguration.FluxConfigurationsClient, fluxConfigs []interface{}, logger logr.Logger) ([]hubv1alpha1.ReconcilerSpec, error) {
var reconcilerData []hubv1alpha1.ReconcilerSpec

// TODO: identify cluster type (AKS vs conect cluster)
res, err := fluxConfigClient.Get(ctx, resourceGroup, "Microsoft.Kubernetes", "connectedClusters", clusterName, fluxConfigName, nil)
if err != nil {
return nil, err
res, err = fluxConfigClient.Get(ctx, resourceGroup, "Microsoft.ContainerService", "managedClusters", clusterName, fluxConfigName, nil)
if err != nil {
return nil, err
}
}

fluxConfigurationDetal := res.FluxConfiguration
Expand Down

0 comments on commit 89655fa

Please sign in to comment.