|
14 | 14 | * limitations under the License.
|
15 | 15 | */
|
16 | 16 |
|
17 |
| -import { RegistryType } from '@Shared/types' |
18 |
| -import { RegistryTypeDetailType } from './Types' |
19 |
| -import { getContainerRegistryIcon } from './utils' |
20 |
| - |
21 | 17 | export const FALLBACK_REQUEST_TIMEOUT = 60000
|
22 | 18 | export const Host = window?.__ORCHESTRATOR_ROOT__ ?? '/orchestrator'
|
23 | 19 |
|
@@ -215,178 +211,6 @@ export const BuildStageVariable = {
|
215 | 211 | PostBuild: 'postBuildStage',
|
216 | 212 | }
|
217 | 213 |
|
218 |
| -export const REGISTRY_TYPE_MAP: Record<string, RegistryTypeDetailType> = { |
219 |
| - ecr: { |
220 |
| - value: 'ecr', |
221 |
| - label: 'ECR', |
222 |
| - desiredFormat: '(desired format: repo-name)', |
223 |
| - placeholderText: 'Eg. repo_name', |
224 |
| - gettingStartedLink: 'https://docs.aws.amazon.com/AmazonECR/latest/userguide/get-set-up-for-amazon-ecr.html', |
225 |
| - defaultRegistryURL: '', |
226 |
| - registryURL: { |
227 |
| - label: 'Registry URL', |
228 |
| - defaultValue: '', |
229 |
| - placeholder: 'Eg. xxxxxxxxxxxx.dkr.ecr.region.amazonaws.com', |
230 |
| - }, |
231 |
| - id: { |
232 |
| - label: 'Access key ID', |
233 |
| - defaultValue: '', |
234 |
| - placeholder: '', |
235 |
| - }, |
236 |
| - password: { |
237 |
| - label: 'Secret access key', |
238 |
| - defaultValue: '', |
239 |
| - placeholder: '', |
240 |
| - }, |
241 |
| - startIcon: getContainerRegistryIcon(RegistryType.ECR), |
242 |
| - }, |
243 |
| - 'docker-hub': { |
244 |
| - value: 'docker-hub', |
245 |
| - label: 'Docker', |
246 |
| - desiredFormat: '(desired format: username/repo-name)', |
247 |
| - placeholderText: 'Eg. username/repo_name', |
248 |
| - gettingStartedLink: 'https://docs.docker.com/docker-hub/', |
249 |
| - defaultRegistryURL: 'docker.io', |
250 |
| - registryURL: { |
251 |
| - label: 'Registry URL', |
252 |
| - defaultValue: '', |
253 |
| - placeholder: '', |
254 |
| - }, |
255 |
| - id: { |
256 |
| - label: 'Username', |
257 |
| - defaultValue: '', |
258 |
| - placeholder: '', |
259 |
| - }, |
260 |
| - password: { |
261 |
| - label: 'Password/Token (Recommended: Token)', |
262 |
| - defaultValue: '', |
263 |
| - placeholder: '', |
264 |
| - }, |
265 |
| - startIcon: getContainerRegistryIcon(RegistryType.DOCKER_HUB), |
266 |
| - }, |
267 |
| - acr: { |
268 |
| - value: 'acr', |
269 |
| - label: 'Azure', |
270 |
| - desiredFormat: '(desired format: repo-name)', |
271 |
| - placeholderText: 'Eg. repo_name', |
272 |
| - gettingStartedLink: |
273 |
| - 'https://docs.microsoft.com/en-us/azure/container-registry/container-registry-get-started-portal', |
274 |
| - defaultRegistryURL: '', |
275 |
| - registryURL: { |
276 |
| - label: 'Registry URL/Login Server', |
277 |
| - defaultValue: '', |
278 |
| - placeholder: 'Eg. xxx.azurecr.io', |
279 |
| - }, |
280 |
| - id: { |
281 |
| - label: 'Username/Registry Name', |
282 |
| - defaultValue: '', |
283 |
| - placeholder: '', |
284 |
| - }, |
285 |
| - password: { |
286 |
| - label: 'Password', |
287 |
| - defaultValue: '', |
288 |
| - placeholder: '', |
289 |
| - }, |
290 |
| - startIcon: getContainerRegistryIcon(RegistryType.ACR), |
291 |
| - }, |
292 |
| - 'artifact-registry': { |
293 |
| - value: 'artifact-registry', |
294 |
| - label: 'Artifact Registry (GCP)', |
295 |
| - desiredFormat: '(desired format: project-id/artifacts-repo/repo-name)', |
296 |
| - placeholderText: 'Eg. project-id/artifacts-repo/repo-name', |
297 |
| - gettingStartedLink: 'https://cloud.google.com/artifact-registry/docs/manage-repos?hl=en_US', |
298 |
| - defaultRegistryURL: '', |
299 |
| - registryURL: { |
300 |
| - label: 'Registry URL', |
301 |
| - defaultValue: '', |
302 |
| - placeholder: 'Eg. region-docker.pkg.dev', |
303 |
| - }, |
304 |
| - id: { |
305 |
| - label: 'Username', |
306 |
| - defaultValue: '_json_key', |
307 |
| - placeholder: '', |
308 |
| - }, |
309 |
| - password: { |
310 |
| - label: 'Service Account JSON File', |
311 |
| - defaultValue: '', |
312 |
| - placeholder: 'Paste json file content here', |
313 |
| - }, |
314 |
| - startIcon: getContainerRegistryIcon(RegistryType.ARTIFACT_REGISTRY), |
315 |
| - }, |
316 |
| - gcr: { |
317 |
| - value: 'gcr', |
318 |
| - label: 'GCR', |
319 |
| - desiredFormat: '(desired format: project-id/repo-name)', |
320 |
| - placeholderText: 'Eg. project-id/repo_name', |
321 |
| - gettingStartedLink: 'https://cloud.google.com/container-registry/docs/quickstart', |
322 |
| - defaultRegistryURL: 'gcr.io', |
323 |
| - registryURL: { |
324 |
| - label: 'Registry URL', |
325 |
| - defaultValue: 'gcr.io', |
326 |
| - placeholder: '', |
327 |
| - }, |
328 |
| - id: { |
329 |
| - label: 'Username', |
330 |
| - defaultValue: '_json_key', |
331 |
| - placeholder: '', |
332 |
| - }, |
333 |
| - password: { |
334 |
| - label: 'Service Account JSON File', |
335 |
| - defaultValue: '', |
336 |
| - placeholder: 'Paste json file content here', |
337 |
| - }, |
338 |
| - startIcon: getContainerRegistryIcon(RegistryType.GCR), |
339 |
| - }, |
340 |
| - quay: { |
341 |
| - value: 'quay', |
342 |
| - label: 'Quay', |
343 |
| - desiredFormat: '(desired format: username/repo-name)', |
344 |
| - placeholderText: 'Eg. username/repo_name', |
345 |
| - gettingStartedLink: '', |
346 |
| - defaultRegistryURL: 'quay.io', |
347 |
| - registryURL: { |
348 |
| - label: 'Registry URL', |
349 |
| - defaultValue: '', |
350 |
| - placeholder: '', |
351 |
| - }, |
352 |
| - id: { |
353 |
| - label: 'Username', |
354 |
| - defaultValue: '', |
355 |
| - placeholder: '', |
356 |
| - }, |
357 |
| - password: { |
358 |
| - label: 'Token', |
359 |
| - defaultValue: '', |
360 |
| - placeholder: '', |
361 |
| - }, |
362 |
| - startIcon: getContainerRegistryIcon(RegistryType.QUAY), |
363 |
| - }, |
364 |
| - other: { |
365 |
| - value: 'other', |
366 |
| - label: 'Other', |
367 |
| - desiredFormat: '', |
368 |
| - placeholderText: '', |
369 |
| - gettingStartedLink: '', |
370 |
| - defaultRegistryURL: '', |
371 |
| - registryURL: { |
372 |
| - label: 'Registry URL', |
373 |
| - defaultValue: '', |
374 |
| - placeholder: '', |
375 |
| - }, |
376 |
| - id: { |
377 |
| - label: 'Username', |
378 |
| - defaultValue: '', |
379 |
| - placeholder: '', |
380 |
| - }, |
381 |
| - password: { |
382 |
| - label: 'Password/Token', |
383 |
| - defaultValue: '', |
384 |
| - placeholder: '', |
385 |
| - }, |
386 |
| - startIcon: getContainerRegistryIcon(RegistryType.OTHER), |
387 |
| - }, |
388 |
| -} |
389 |
| - |
390 | 214 | export const RepositoryAction = {
|
391 | 215 | CONTAINER: 'CONTAINER',
|
392 | 216 | CHART_PULL: 'CHART_PULL',
|
|
0 commit comments