fix: sent token to get entities request

Signed-off-by: Camila Belo <camilaibs@gmail.com>
This commit is contained in:
Camila Belo
2024-03-05 10:39:24 +01:00
parent 6e0a8e5227
commit 69d0217cba
10 changed files with 115 additions and 24 deletions
+4 -1
View File
@@ -13,6 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { BackstageCredentials } from '@backstage/backend-plugin-api';
import { Entity } from '@backstage/catalog-model';
import {
CustomResourceMatcher,
@@ -134,7 +135,9 @@ export interface KubernetesClustersSupplier {
* Implementations _should_ cache the clusters and refresh them periodically,
* as getClusters is called whenever the list of clusters is needed.
*/
getClusters(): Promise<ClusterDetails[]>;
getClusters(options?: {
credentials: BackstageCredentials;
}): Promise<ClusterDetails[]>;
}
/**