Skip to content

Commit 24540f6

Browse files
authored
Merge pull request #113 from keithchong/7266-RolloutsList
Show Rollout instances as Resource List page in Dev Console (#7266)
2 parents c07e5a3 + 4b11acb commit 24540f6

File tree

13 files changed

+990
-3
lines changed

13 files changed

+990
-3
lines changed

console-extensions.json

Lines changed: 54 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,20 @@
315315
}
316316
}
317317
},
318+
{
319+
"type": "console.navigation/resource-ns",
320+
"properties": {
321+
"id": "rollout",
322+
"name": "Rollouts",
323+
"perspective": "admin",
324+
"section": "gitops-navigation-section",
325+
"model": {
326+
"group": "argoproj.io",
327+
"kind": "Rollout",
328+
"version": "v1alpha1"
329+
}
330+
}
331+
},
318332
{
319333
"type": "console.page/resource/list",
320334
"flags": {
@@ -333,6 +347,24 @@
333347
}
334348
}
335349
},
350+
{
351+
"type": "console.page/resource/list",
352+
"flags": {
353+
"required": [
354+
"ARGO_ROLLOUT"
355+
]
356+
},
357+
"properties": {
358+
"model": {
359+
"group": "argoproj.io",
360+
"kind": "Rollout",
361+
"version": "v1alpha1"
362+
},
363+
"component": {
364+
"$codeRef": "RolloutList"
365+
}
366+
}
367+
},
336368
{
337369
"type": "console.page/resource/details",
338370
"flags": {
@@ -384,7 +416,7 @@
384416
"version": "v1alpha1"
385417
},
386418
"template": {
387-
"$codeRef": "yamlApplicationTemplates.defaultApplicationYamlTemplate"
419+
"$codeRef": "yamlTemplates.defaultApplicationYamlTemplate"
388420
}
389421
}
390422
},
@@ -403,10 +435,30 @@
403435
"version": "v1alpha1"
404436
},
405437
"template": {
406-
"$codeRef": "yamlApplicationTemplates.defaultApplicationSetYamlTemplate"
438+
"$codeRef": "yamlTemplates.defaultApplicationSetYamlTemplate"
439+
}
440+
}
441+
},
442+
{
443+
"type": "console.yaml-template",
444+
"flags": {
445+
"required": [
446+
"ARGO_ROLLOUT"
447+
]
448+
},
449+
"properties": {
450+
"name": "default",
451+
"model": {
452+
"group": "argoproj.io",
453+
"kind": "Rollout",
454+
"version": "v1alpha1"
455+
},
456+
"template": {
457+
"$codeRef": "yamlTemplates.defaultRolloutYamlTemplate"
407458
}
408459
}
409460
},
461+
410462
{
411463
"type": "console.page/resource/details",
412464
"flags": {

plugin-metadata.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@ const metadata: ConsolePluginBuildMetadata = {
1515
"topology": "./components/topology",
1616
ApplicationList: "./gitops/components/application/ApplicationListTab.tsx",
1717
ApplicationDetails: "./gitops/components/application/ApplicationNavPage.tsx",
18+
RolloutList: "./gitops/components/rollout/RolloutListTab.tsx",
1819
ApplicationSetList: "./gitops/components/application/ApplicationSetListTab.tsx",
1920
ApplicationSetDetailsPage: "./gitops/components/appset/ApplicationSetDetailsPage.tsx",
20-
yamlApplicationTemplates: "./gitops/components/application/templates/index.ts"
21+
yamlTemplates: "./gitops/templates/index.ts"
2122
}
2223
};
2324

0 commit comments

Comments
 (0)