diff --git a/controllers/discoveredcluster_controller.go b/controllers/discoveredcluster_controller.go index 15ba1ce..2534a7c 100644 --- a/controllers/discoveredcluster_controller.go +++ b/controllers/discoveredcluster_controller.go @@ -160,8 +160,9 @@ func (r *DiscoveredClusterReconciler) CreateAutoImportSecretOfflineToken(nn type Namespace: nn.Namespace, }, StringData: map[string]string{ - "api_token": apiToken, - "cluster_id": clusterID, + "auth_method": "offline-token", + "api_token": apiToken, + "cluster_id": clusterID, }, Type: "auto-import/rosa", } @@ -182,6 +183,7 @@ func (r *DiscoveredClusterReconciler) CreateAutoImportSecretServiceAccount(nn ty Namespace: nn.Namespace, }, StringData: map[string]string{ + "auth_method": "service-account", "cluster_id": clusterID, "client_id": clientID, "client_secret": clientSecret,