Skip to content

Commit

Permalink
Update.
Browse files Browse the repository at this point in the history
Signed-off-by: xuezhaojun <[email protected]>
  • Loading branch information
xuezhaojun committed Sep 24, 2024
1 parent ab6cd75 commit 04c7325
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions controllers/discoveredcluster_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
}
Expand All @@ -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,
Expand Down

0 comments on commit 04c7325

Please sign in to comment.