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
@@ -4,6 +4,7 @@
```ts
import { AuthenticationStrategy as AuthenticationStrategy_2 } from '@backstage/plugin-kubernetes-node';
import { BackstageCredentials } from '@backstage/backend-plugin-api';
import { ClusterDetails as ClusterDetails_2 } from '@backstage/plugin-kubernetes-node';
import { CustomResourceMatcher } from '@backstage/plugin-kubernetes-common';
import { Entity } from '@backstage/catalog-model';
@@ -87,7 +88,9 @@ export const kubernetesAuthStrategyExtensionPoint: ExtensionPoint<KubernetesAuth
// @public
export interface KubernetesClustersSupplier {
getClusters(): Promise<ClusterDetails[]>;
getClusters(options?: {
credentials: BackstageCredentials;
}): Promise<ClusterDetails[]>;
}
// @public
+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[]>;
}
/**