@backstage/plugin-catalog-backend-module-gcp 0.3.20-next.0 → 0.3.21-next.0
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 +16 -0
- package/config.schema.json +209 -0
- package/package.json +7 -7
- package/config.d.ts +0 -61
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @backstage/plugin-catalog-backend-module-gcp
|
|
2
2
|
|
|
3
|
+
## 0.3.21-next.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
- @backstage/backend-plugin-api@1.9.3-next.0
|
|
9
|
+
- @backstage/plugin-catalog-node@2.2.3-next.0
|
|
10
|
+
|
|
11
|
+
## 0.3.20
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
- @backstage/backend-plugin-api@1.9.2
|
|
17
|
+
- @backstage/plugin-catalog-node@2.2.2
|
|
18
|
+
|
|
3
19
|
## 0.3.20-next.0
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"catalog": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"providers": {
|
|
9
|
+
"type": "object",
|
|
10
|
+
"properties": {
|
|
11
|
+
"gcp": {
|
|
12
|
+
"type": "object",
|
|
13
|
+
"properties": {
|
|
14
|
+
"gke": {
|
|
15
|
+
"type": "object",
|
|
16
|
+
"properties": {
|
|
17
|
+
"parents": {
|
|
18
|
+
"type": "array",
|
|
19
|
+
"items": {
|
|
20
|
+
"type": "string"
|
|
21
|
+
},
|
|
22
|
+
"description": "Locations to list clusters from"
|
|
23
|
+
},
|
|
24
|
+
"schedule": {
|
|
25
|
+
"type": "object",
|
|
26
|
+
"properties": {
|
|
27
|
+
"frequency": {
|
|
28
|
+
"anyOf": [
|
|
29
|
+
{
|
|
30
|
+
"type": "object",
|
|
31
|
+
"properties": {
|
|
32
|
+
"cron": {
|
|
33
|
+
"type": "string",
|
|
34
|
+
"description": "A crontab style string."
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"required": [
|
|
38
|
+
"cron"
|
|
39
|
+
]
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"type": "string"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"type": "object",
|
|
46
|
+
"properties": {
|
|
47
|
+
"years": {
|
|
48
|
+
"type": "number"
|
|
49
|
+
},
|
|
50
|
+
"months": {
|
|
51
|
+
"type": "number"
|
|
52
|
+
},
|
|
53
|
+
"weeks": {
|
|
54
|
+
"type": "number"
|
|
55
|
+
},
|
|
56
|
+
"days": {
|
|
57
|
+
"type": "number"
|
|
58
|
+
},
|
|
59
|
+
"hours": {
|
|
60
|
+
"type": "number"
|
|
61
|
+
},
|
|
62
|
+
"minutes": {
|
|
63
|
+
"type": "number"
|
|
64
|
+
},
|
|
65
|
+
"seconds": {
|
|
66
|
+
"type": "number"
|
|
67
|
+
},
|
|
68
|
+
"milliseconds": {
|
|
69
|
+
"type": "number"
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"description": "Human friendly durations object."
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"type": "object",
|
|
76
|
+
"properties": {
|
|
77
|
+
"trigger": {
|
|
78
|
+
"type": "string",
|
|
79
|
+
"const": "manual"
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
"required": [
|
|
83
|
+
"trigger"
|
|
84
|
+
]
|
|
85
|
+
}
|
|
86
|
+
],
|
|
87
|
+
"description": "How often you want the task to run. The system does its best to avoid overlapping invocations."
|
|
88
|
+
},
|
|
89
|
+
"timeout": {
|
|
90
|
+
"anyOf": [
|
|
91
|
+
{
|
|
92
|
+
"type": "string"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"type": "object",
|
|
96
|
+
"properties": {
|
|
97
|
+
"years": {
|
|
98
|
+
"type": "number"
|
|
99
|
+
},
|
|
100
|
+
"months": {
|
|
101
|
+
"type": "number"
|
|
102
|
+
},
|
|
103
|
+
"weeks": {
|
|
104
|
+
"type": "number"
|
|
105
|
+
},
|
|
106
|
+
"days": {
|
|
107
|
+
"type": "number"
|
|
108
|
+
},
|
|
109
|
+
"hours": {
|
|
110
|
+
"type": "number"
|
|
111
|
+
},
|
|
112
|
+
"minutes": {
|
|
113
|
+
"type": "number"
|
|
114
|
+
},
|
|
115
|
+
"seconds": {
|
|
116
|
+
"type": "number"
|
|
117
|
+
},
|
|
118
|
+
"milliseconds": {
|
|
119
|
+
"type": "number"
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
"description": "Human friendly durations object."
|
|
123
|
+
}
|
|
124
|
+
],
|
|
125
|
+
"description": "The maximum amount of time that a single task invocation can take, before it's considered timed out and gets \"released\" such that a new invocation is permitted to take place (possibly, then, on a different worker)."
|
|
126
|
+
},
|
|
127
|
+
"initialDelay": {
|
|
128
|
+
"anyOf": [
|
|
129
|
+
{
|
|
130
|
+
"type": "string"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"type": "object",
|
|
134
|
+
"properties": {
|
|
135
|
+
"years": {
|
|
136
|
+
"type": "number"
|
|
137
|
+
},
|
|
138
|
+
"months": {
|
|
139
|
+
"type": "number"
|
|
140
|
+
},
|
|
141
|
+
"weeks": {
|
|
142
|
+
"type": "number"
|
|
143
|
+
},
|
|
144
|
+
"days": {
|
|
145
|
+
"type": "number"
|
|
146
|
+
},
|
|
147
|
+
"hours": {
|
|
148
|
+
"type": "number"
|
|
149
|
+
},
|
|
150
|
+
"minutes": {
|
|
151
|
+
"type": "number"
|
|
152
|
+
},
|
|
153
|
+
"seconds": {
|
|
154
|
+
"type": "number"
|
|
155
|
+
},
|
|
156
|
+
"milliseconds": {
|
|
157
|
+
"type": "number"
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
"description": "Human friendly durations object."
|
|
161
|
+
}
|
|
162
|
+
],
|
|
163
|
+
"description": "The amount of time that should pass before the first invocation happens."
|
|
164
|
+
},
|
|
165
|
+
"scope": {
|
|
166
|
+
"type": "string",
|
|
167
|
+
"enum": [
|
|
168
|
+
"global",
|
|
169
|
+
"local"
|
|
170
|
+
],
|
|
171
|
+
"description": "Sets the scope of concurrency control / locking to apply for invocations of this task."
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
"required": [
|
|
175
|
+
"frequency",
|
|
176
|
+
"timeout"
|
|
177
|
+
],
|
|
178
|
+
"description": "(Optional) TaskScheduleDefinition for the refresh."
|
|
179
|
+
},
|
|
180
|
+
"googleServiceAccountCredentials": {
|
|
181
|
+
"type": "string",
|
|
182
|
+
"description": "(Optional) Google Service Account credentials for authentication JSON string containing the service account key",
|
|
183
|
+
"visibility": "secret"
|
|
184
|
+
},
|
|
185
|
+
"authProvider": {
|
|
186
|
+
"type": "string",
|
|
187
|
+
"description": "(Optional) Authentication provider to use for Kubernetes clusters Defaults to 'google' for backward compatibility"
|
|
188
|
+
},
|
|
189
|
+
"owner": {
|
|
190
|
+
"type": "string",
|
|
191
|
+
"description": "(Optional) Owner of the discovered clusters Defaults to 'unknown' if not specified"
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
"required": [
|
|
195
|
+
"parents",
|
|
196
|
+
"schedule"
|
|
197
|
+
],
|
|
198
|
+
"description": "Config for GKE clusters"
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
"description": "GCPCatalogModuleConfig configuration"
|
|
202
|
+
}
|
|
203
|
+
},
|
|
204
|
+
"description": "List of provider-specific options and attributes"
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/plugin-catalog-backend-module-gcp",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.21-next.0",
|
|
4
4
|
"description": "A Backstage catalog backend module that helps integrate towards GCP",
|
|
5
5
|
"backstage": {
|
|
6
6
|
"role": "backend-plugin-module",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
}
|
|
51
51
|
},
|
|
52
52
|
"files": [
|
|
53
|
-
"config.
|
|
53
|
+
"config.schema.json",
|
|
54
54
|
"dist"
|
|
55
55
|
],
|
|
56
56
|
"scripts": {
|
|
@@ -63,16 +63,16 @@
|
|
|
63
63
|
"test": "backstage-cli package test"
|
|
64
64
|
},
|
|
65
65
|
"dependencies": {
|
|
66
|
-
"@backstage/backend-plugin-api": "1.9.
|
|
66
|
+
"@backstage/backend-plugin-api": "1.9.3-next.0",
|
|
67
67
|
"@backstage/catalog-model": "1.9.0",
|
|
68
68
|
"@backstage/config": "1.3.8",
|
|
69
|
-
"@backstage/plugin-catalog-node": "2.2.
|
|
69
|
+
"@backstage/plugin-catalog-node": "2.2.3-next.0",
|
|
70
70
|
"@backstage/plugin-kubernetes-common": "0.9.12",
|
|
71
71
|
"@google-cloud/container": "^5.0.0"
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
|
-
"@backstage/backend-test-utils": "1.11.
|
|
75
|
-
"@backstage/cli": "0.36.
|
|
74
|
+
"@backstage/backend-test-utils": "1.11.5-next.0",
|
|
75
|
+
"@backstage/cli": "0.36.4-next.0"
|
|
76
76
|
},
|
|
77
|
-
"configSchema": "config.
|
|
77
|
+
"configSchema": "config.schema.json"
|
|
78
78
|
}
|
package/config.d.ts
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright 2023 The Backstage Authors
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
import { SchedulerServiceTaskScheduleDefinitionConfig } from '@backstage/backend-plugin-api';
|
|
18
|
-
|
|
19
|
-
export interface Config {
|
|
20
|
-
catalog?: {
|
|
21
|
-
/**
|
|
22
|
-
* List of provider-specific options and attributes
|
|
23
|
-
*/
|
|
24
|
-
providers?: {
|
|
25
|
-
/**
|
|
26
|
-
* GCPCatalogModuleConfig configuration
|
|
27
|
-
*/
|
|
28
|
-
gcp?: {
|
|
29
|
-
/**
|
|
30
|
-
* Config for GKE clusters
|
|
31
|
-
*/
|
|
32
|
-
gke?: {
|
|
33
|
-
/**
|
|
34
|
-
* Locations to list clusters from
|
|
35
|
-
*/
|
|
36
|
-
parents: string[];
|
|
37
|
-
/**
|
|
38
|
-
* (Optional) TaskScheduleDefinition for the refresh.
|
|
39
|
-
*/
|
|
40
|
-
schedule: SchedulerServiceTaskScheduleDefinitionConfig;
|
|
41
|
-
/**
|
|
42
|
-
* (Optional) Google Service Account credentials for authentication
|
|
43
|
-
* JSON string containing the service account key
|
|
44
|
-
* @visibility secret
|
|
45
|
-
*/
|
|
46
|
-
googleServiceAccountCredentials?: string;
|
|
47
|
-
/**
|
|
48
|
-
* (Optional) Authentication provider to use for Kubernetes clusters
|
|
49
|
-
* Defaults to 'google' for backward compatibility
|
|
50
|
-
*/
|
|
51
|
-
authProvider?: string;
|
|
52
|
-
/**
|
|
53
|
-
* (Optional) Owner of the discovered clusters
|
|
54
|
-
* Defaults to 'unknown' if not specified
|
|
55
|
-
*/
|
|
56
|
-
owner?: string;
|
|
57
|
-
};
|
|
58
|
-
};
|
|
59
|
-
};
|
|
60
|
-
};
|
|
61
|
-
}
|