@backstage/plugin-kubernetes-node 0.1.7 → 0.1.8-next.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,25 +1,35 @@
1
1
  # @backstage/plugin-kubernetes-node
2
2
 
3
- ## 0.1.7
3
+ ## 0.1.8-next.2
4
4
 
5
5
  ### Patch Changes
6
6
 
7
7
  - Updated dependencies
8
- - @backstage/backend-plugin-api@0.6.13
8
+ - @backstage/backend-plugin-api@0.6.14-next.2
9
+ - @backstage/catalog-model@1.4.5-next.0
10
+ - @backstage/types@1.1.1
11
+ - @backstage/plugin-kubernetes-common@0.7.5-next.1
9
12
 
10
- ## 0.1.6
13
+ ## 0.1.8-next.1
11
14
 
12
15
  ### Patch Changes
13
16
 
17
+ - 69d0217: Accept auth credentials to get kubernetes clusters
14
18
  - Updated dependencies
15
- - @backstage/backend-plugin-api@0.6.12
19
+ - @backstage/backend-plugin-api@0.6.14-next.1
20
+ - @backstage/catalog-model@1.4.5-next.0
21
+ - @backstage/types@1.1.1
22
+ - @backstage/plugin-kubernetes-common@0.7.5-next.1
16
23
 
17
- ## 0.1.5
24
+ ## 0.1.7-next.0
18
25
 
19
26
  ### Patch Changes
20
27
 
21
28
  - Updated dependencies
22
- - @backstage/backend-plugin-api@0.6.11
29
+ - @backstage/backend-plugin-api@0.6.13-next.0
30
+ - @backstage/plugin-kubernetes-common@0.7.5-next.0
31
+ - @backstage/catalog-model@1.4.5-next.0
32
+ - @backstage/types@1.1.1
23
33
 
24
34
  ## 0.1.4
25
35
 
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import * as _backstage_backend_plugin_api from '@backstage/backend-plugin-api';
2
+ import { BackstageCredentials } from '@backstage/backend-plugin-api';
2
3
  import { KubernetesObjectsProvider as KubernetesObjectsProvider$1, KubernetesClustersSupplier as KubernetesClustersSupplier$1, AuthenticationStrategy as AuthenticationStrategy$1, KubernetesFetcher as KubernetesFetcher$1, KubernetesServiceLocator as KubernetesServiceLocator$1, ClusterDetails as ClusterDetails$1 } from '@backstage/plugin-kubernetes-node';
3
4
  import { Entity } from '@backstage/catalog-model';
4
5
  import { ObjectsByEntityResponse, KubernetesRequestAuth, CustomResourceMatcher, KubernetesFetchError, FetchResponse } from '@backstage/plugin-kubernetes-common';
@@ -176,7 +177,9 @@ interface KubernetesClustersSupplier {
176
177
  * Implementations _should_ cache the clusters and refresh them periodically,
177
178
  * as getClusters is called whenever the list of clusters is needed.
178
179
  */
179
- getClusters(): Promise<ClusterDetails[]>;
180
+ getClusters(options?: {
181
+ credentials: BackstageCredentials;
182
+ }): Promise<ClusterDetails[]>;
180
183
  }
181
184
  /**
182
185
  * Authentication data used to make a request to Kubernetes
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@backstage/plugin-kubernetes-node",
3
+ "version": "0.1.8-next.2",
3
4
  "description": "Node.js library for the kubernetes plugin",
4
- "version": "0.1.7",
5
- "main": "dist/index.cjs.js",
6
- "types": "dist/index.d.ts",
7
- "license": "Apache-2.0",
5
+ "backstage": {
6
+ "role": "node-library"
7
+ },
8
8
  "publishConfig": {
9
9
  "access": "public",
10
10
  "main": "dist/index.cjs.js",
@@ -15,36 +15,36 @@
15
15
  "url": "https://github.com/backstage/backstage",
16
16
  "directory": "plugins/kubernetes-node"
17
17
  },
18
- "backstage": {
19
- "role": "node-library"
20
- },
18
+ "license": "Apache-2.0",
19
+ "main": "dist/index.cjs.js",
20
+ "types": "dist/index.d.ts",
21
+ "files": [
22
+ "dist"
23
+ ],
21
24
  "scripts": {
22
25
  "build": "backstage-cli package build",
23
- "lint": "backstage-cli package lint",
24
- "test": "backstage-cli package test",
25
26
  "clean": "backstage-cli package clean",
27
+ "lint": "backstage-cli package lint",
26
28
  "prepack": "backstage-cli package prepack",
27
- "postpack": "backstage-cli package postpack"
28
- },
29
- "devDependencies": {
30
- "@backstage/backend-app-api": "^0.5.14",
31
- "@backstage/backend-common": "^0.21.3",
32
- "@backstage/backend-test-utils": "^0.3.3",
33
- "@backstage/cli": "^0.25.2",
34
- "@backstage/plugin-kubernetes-backend": "^0.15.3",
35
- "msw": "^1.3.1",
36
- "supertest": "^6.1.3"
29
+ "postpack": "backstage-cli package postpack",
30
+ "test": "backstage-cli package test"
37
31
  },
38
- "files": [
39
- "dist"
40
- ],
41
32
  "dependencies": {
42
- "@backstage/backend-plugin-api": "^0.6.13",
43
- "@backstage/catalog-model": "^1.4.4",
44
- "@backstage/plugin-kubernetes-common": "^0.7.4",
33
+ "@backstage/backend-plugin-api": "^0.6.14-next.2",
34
+ "@backstage/catalog-model": "^1.4.5-next.0",
35
+ "@backstage/plugin-kubernetes-common": "^0.7.5-next.1",
45
36
  "@backstage/types": "^1.1.1",
46
37
  "@kubernetes/client-node": "^0.20.0",
47
38
  "node-fetch": "^2.6.7",
48
39
  "winston": "^3.2.1"
40
+ },
41
+ "devDependencies": {
42
+ "@backstage/backend-app-api": "^0.6.0-next.2",
43
+ "@backstage/backend-common": "^0.21.4-next.2",
44
+ "@backstage/backend-test-utils": "^0.3.4-next.2",
45
+ "@backstage/cli": "^0.25.3-next.2",
46
+ "@backstage/plugin-kubernetes-backend": "^0.16.0-next.2",
47
+ "msw": "^1.3.1",
48
+ "supertest": "^6.1.3"
49
49
  }
50
50
  }