Skip to content

Commit d8f8848

Browse files
authored
Merge pull request #257 from keithchong/8568-RolloutActions
feat: Add Rollout actions (#8568)
2 parents e36ff57 + 3aa59d3 commit d8f8848

23 files changed

Lines changed: 760 additions & 122 deletions

locales/en/plugin__gitops-plugin.json

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,11 +108,11 @@
108108
"Edit ImageUpdater": "Edit ImageUpdater",
109109
"Delete ImageUpdater": "Delete ImageUpdater",
110110
"Error: Missing required route parameters": "Error: Missing required route parameters",
111+
"True": "True",
112+
"False": "False",
111113
"ImageUpdater details": "ImageUpdater details",
112114
"Ready": "Ready",
113115
"Whether the last reconciliation completed without errors.": "Whether the last reconciliation completed without errors.",
114-
"True": "True",
115-
"False": "False",
116116
"Applications Matched": "Applications Matched",
117117
"Number of applications matched by this ImageUpdater.": "Number of applications matched by this ImageUpdater.",
118118
"Images Managed": "Images Managed",
@@ -255,17 +255,22 @@
255255
"No pods": "No pods",
256256
"There are no pods associated with the rollout.": "There are no pods associated with the rollout.",
257257
"Edit Pod": "Edit Pod",
258+
"Edit Rollout": "Edit Rollout",
258259
"Promote": "Promote",
259260
"Full Promote": "Full Promote",
260261
"Abort": "Abort",
261262
"Retry": "Retry",
262263
"Restart": "Restart",
263-
"Edit Rollout": "Edit Rollout",
264+
"Rollback": "Rollback",
264265
"Age": "Age",
265266
"Info": "Info",
266267
"Ready containers": "Ready containers",
267268
"ready": "ready",
268269
"0 Pods": "0 Pods",
270+
"Scaling down in:": "Scaling down in:",
271+
"{{x}} failed with an error.": "{{x}} failed with an error.",
272+
"Rollout Revisions": "Rollout Revisions",
273+
"Close": "Close",
269274
"Stable": "Stable",
270275
"Active": "Active",
271276
"Preview": "Preview",
@@ -274,6 +279,7 @@
274279
"Replicas": "Replicas",
275280
"The number of desired replicas for the rollout": "The number of desired replicas for the rollout",
276281
"The current status of the rollout": "The current status of the rollout",
282+
"There is no rollout status. Check that the Rollout Manager is created and is available.": "There is no rollout status. Check that the Rollout Manager is created and is available.",
277283
"Strategy": "Strategy",
278284
"Whether the rollout is using a blue-green or canary strategy": "Whether the rollout is using a blue-green or canary strategy",
279285
"No Argo Rollouts": "No Argo Rollouts",
@@ -284,12 +290,10 @@
284290
"Create Rollout": "Create Rollout",
285291
"Pods": "Pods",
286292
"Selector": "Selector",
287-
"No labels": "No labels",
288293
"Rollout Status": "Rollout Status",
289294
"Revisions": "Revisions",
290295
"There was an error retrieving the rollout. Check your connection and reload the page.": "There was an error retrieving the rollout. Check your connection and reload the page.",
291296
"There was an error retrieving the rollout revisions. Check your connection and reload the page.": "There was an error retrieving the rollout revisions. Check your connection and reload the page.",
292-
"Rollout Revisions": "Rollout Revisions",
293297
"Active Service": "Active Service",
294298
"The active blue-green service": "The active blue-green service",
295299
"Preview Service": "Preview Service",
@@ -322,6 +326,7 @@
322326
"There was an error retrieving applicationsets. Check your connection and reload the page.": "There was an error retrieving applicationsets. Check your connection and reload the page.",
323327
"ApplicationSets": "ApplicationSets",
324328
"Create ApplicationSet": "Create ApplicationSet",
329+
"No labels": "No labels",
325330
"Name must be unique within a namespace.": "Name must be unique within a namespace.",
326331
"Namespace defines the space within which each name must be unique.": "Namespace defines the space within which each name must be unique.",
327332
"Map of string keys and values that can be used to organize and categorize (scope and select) objects.": "Map of string keys and values that can be used to organize and categorize (scope and select) objects.",

locales/ja/plugin__gitops-plugin.json

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,11 +108,11 @@
108108
"Edit ImageUpdater": "Edit ImageUpdater",
109109
"Delete ImageUpdater": "Delete ImageUpdater",
110110
"Error: Missing required route parameters": "Error: Missing required route parameters",
111+
"True": "True",
112+
"False": "False",
111113
"ImageUpdater details": "ImageUpdater details",
112114
"Ready": "Ready",
113115
"Whether the last reconciliation completed without errors.": "Whether the last reconciliation completed without errors.",
114-
"True": "True",
115-
"False": "False",
116116
"Applications Matched": "Applications Matched",
117117
"Number of applications matched by this ImageUpdater.": "Number of applications matched by this ImageUpdater.",
118118
"Images Managed": "Images Managed",
@@ -255,17 +255,22 @@
255255
"No pods": "No pods",
256256
"There are no pods associated with the rollout.": "There are no pods associated with the rollout.",
257257
"Edit Pod": "Edit Pod",
258+
"Edit Rollout": "Edit Rollout",
258259
"Promote": "Promote",
259260
"Full Promote": "Full Promote",
260261
"Abort": "Abort",
261262
"Retry": "Retry",
262263
"Restart": "Restart",
263-
"Edit Rollout": "Edit Rollout",
264+
"Rollback": "Rollback",
264265
"Age": "Age",
265266
"Info": "Info",
266267
"Ready containers": "Ready containers",
267268
"ready": "ready",
268269
"0 Pods": "0 Pods",
270+
"Scaling down in:": "Scaling down in:",
271+
"{{x}} failed with an error.": "{{x}} failed with an error.",
272+
"Rollout Revisions": "Rollout Revisions",
273+
"Close": "Close",
269274
"Stable": "Stable",
270275
"Active": "Active",
271276
"Preview": "Preview",
@@ -274,6 +279,7 @@
274279
"Replicas": "Replicas",
275280
"The number of desired replicas for the rollout": "The number of desired replicas for the rollout",
276281
"The current status of the rollout": "The current status of the rollout",
282+
"There is no rollout status. Check that the Rollout Manager is created and is available.": "There is no rollout status. Check that the Rollout Manager is created and is available.",
277283
"Strategy": "Strategy",
278284
"Whether the rollout is using a blue-green or canary strategy": "Whether the rollout is using a blue-green or canary strategy",
279285
"No Argo Rollouts": "No Argo Rollouts",
@@ -284,12 +290,10 @@
284290
"Create Rollout": "Create Rollout",
285291
"Pods": "Pods",
286292
"Selector": "Selector",
287-
"No labels": "No labels",
288293
"Rollout Status": "Rollout Status",
289294
"Revisions": "Revisions",
290295
"There was an error retrieving the rollout. Check your connection and reload the page.": "There was an error retrieving the rollout. Check your connection and reload the page.",
291296
"There was an error retrieving the rollout revisions. Check your connection and reload the page.": "There was an error retrieving the rollout revisions. Check your connection and reload the page.",
292-
"Rollout Revisions": "Rollout Revisions",
293297
"Active Service": "Active Service",
294298
"The active blue-green service": "The active blue-green service",
295299
"Preview Service": "Preview Service",
@@ -322,6 +326,7 @@
322326
"There was an error retrieving applicationsets. Check your connection and reload the page.": "There was an error retrieving applicationsets. Check your connection and reload the page.",
323327
"ApplicationSets": "ApplicationSets",
324328
"Create ApplicationSet": "Create ApplicationSet",
329+
"No labels": "No labels",
325330
"Name must be unique within a namespace.": "Name must be unique within a namespace.",
326331
"Namespace defines the space within which each name must be unique.": "Namespace defines the space within which each name must be unique.",
327332
"Map of string keys and values that can be used to organize and categorize (scope and select) objects.": "Map of string keys and values that can be used to organize and categorize (scope and select) objects.",

locales/ko/plugin__gitops-plugin.json

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,11 +108,11 @@
108108
"Edit ImageUpdater": "Edit ImageUpdater",
109109
"Delete ImageUpdater": "Delete ImageUpdater",
110110
"Error: Missing required route parameters": "Error: Missing required route parameters",
111+
"True": "True",
112+
"False": "False",
111113
"ImageUpdater details": "ImageUpdater details",
112114
"Ready": "Ready",
113115
"Whether the last reconciliation completed without errors.": "Whether the last reconciliation completed without errors.",
114-
"True": "True",
115-
"False": "False",
116116
"Applications Matched": "Applications Matched",
117117
"Number of applications matched by this ImageUpdater.": "Number of applications matched by this ImageUpdater.",
118118
"Images Managed": "Images Managed",
@@ -255,17 +255,22 @@
255255
"No pods": "No pods",
256256
"There are no pods associated with the rollout.": "There are no pods associated with the rollout.",
257257
"Edit Pod": "Edit Pod",
258+
"Edit Rollout": "Edit Rollout",
258259
"Promote": "Promote",
259260
"Full Promote": "Full Promote",
260261
"Abort": "Abort",
261262
"Retry": "Retry",
262263
"Restart": "Restart",
263-
"Edit Rollout": "Edit Rollout",
264+
"Rollback": "Rollback",
264265
"Age": "Age",
265266
"Info": "Info",
266267
"Ready containers": "Ready containers",
267268
"ready": "ready",
268269
"0 Pods": "0 Pods",
270+
"Scaling down in:": "Scaling down in:",
271+
"{{x}} failed with an error.": "{{x}} failed with an error.",
272+
"Rollout Revisions": "Rollout Revisions",
273+
"Close": "Close",
269274
"Stable": "Stable",
270275
"Active": "Active",
271276
"Preview": "Preview",
@@ -274,6 +279,7 @@
274279
"Replicas": "Replicas",
275280
"The number of desired replicas for the rollout": "The number of desired replicas for the rollout",
276281
"The current status of the rollout": "The current status of the rollout",
282+
"There is no rollout status. Check that the Rollout Manager is created and is available.": "There is no rollout status. Check that the Rollout Manager is created and is available.",
277283
"Strategy": "Strategy",
278284
"Whether the rollout is using a blue-green or canary strategy": "Whether the rollout is using a blue-green or canary strategy",
279285
"No Argo Rollouts": "No Argo Rollouts",
@@ -284,12 +290,10 @@
284290
"Create Rollout": "Create Rollout",
285291
"Pods": "Pods",
286292
"Selector": "Selector",
287-
"No labels": "No labels",
288293
"Rollout Status": "Rollout Status",
289294
"Revisions": "Revisions",
290295
"There was an error retrieving the rollout. Check your connection and reload the page.": "There was an error retrieving the rollout. Check your connection and reload the page.",
291296
"There was an error retrieving the rollout revisions. Check your connection and reload the page.": "There was an error retrieving the rollout revisions. Check your connection and reload the page.",
292-
"Rollout Revisions": "Rollout Revisions",
293297
"Active Service": "Active Service",
294298
"The active blue-green service": "The active blue-green service",
295299
"Preview Service": "Preview Service",
@@ -322,6 +326,7 @@
322326
"There was an error retrieving applicationsets. Check your connection and reload the page.": "There was an error retrieving applicationsets. Check your connection and reload the page.",
323327
"ApplicationSets": "ApplicationSets",
324328
"Create ApplicationSet": "Create ApplicationSet",
329+
"No labels": "No labels",
325330
"Name must be unique within a namespace.": "Name must be unique within a namespace.",
326331
"Namespace defines the space within which each name must be unique.": "Namespace defines the space within which each name must be unique.",
327332
"Map of string keys and values that can be used to organize and categorize (scope and select) objects.": "Map of string keys and values that can be used to organize and categorize (scope and select) objects.",

locales/zh/plugin__gitops-plugin.json

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,11 +108,11 @@
108108
"Edit ImageUpdater": "Edit ImageUpdater",
109109
"Delete ImageUpdater": "Delete ImageUpdater",
110110
"Error: Missing required route parameters": "Error: Missing required route parameters",
111+
"True": "True",
112+
"False": "False",
111113
"ImageUpdater details": "ImageUpdater details",
112114
"Ready": "Ready",
113115
"Whether the last reconciliation completed without errors.": "Whether the last reconciliation completed without errors.",
114-
"True": "True",
115-
"False": "False",
116116
"Applications Matched": "Applications Matched",
117117
"Number of applications matched by this ImageUpdater.": "Number of applications matched by this ImageUpdater.",
118118
"Images Managed": "Images Managed",
@@ -255,17 +255,22 @@
255255
"No pods": "No pods",
256256
"There are no pods associated with the rollout.": "There are no pods associated with the rollout.",
257257
"Edit Pod": "Edit Pod",
258+
"Edit Rollout": "Edit Rollout",
258259
"Promote": "Promote",
259260
"Full Promote": "Full Promote",
260261
"Abort": "Abort",
261262
"Retry": "Retry",
262263
"Restart": "Restart",
263-
"Edit Rollout": "Edit Rollout",
264+
"Rollback": "Rollback",
264265
"Age": "Age",
265266
"Info": "Info",
266267
"Ready containers": "Ready containers",
267268
"ready": "ready",
268269
"0 Pods": "0 Pods",
270+
"Scaling down in:": "Scaling down in:",
271+
"{{x}} failed with an error.": "{{x}} failed with an error.",
272+
"Rollout Revisions": "Rollout Revisions",
273+
"Close": "Close",
269274
"Stable": "Stable",
270275
"Active": "Active",
271276
"Preview": "Preview",
@@ -274,6 +279,7 @@
274279
"Replicas": "Replicas",
275280
"The number of desired replicas for the rollout": "The number of desired replicas for the rollout",
276281
"The current status of the rollout": "The current status of the rollout",
282+
"There is no rollout status. Check that the Rollout Manager is created and is available.": "There is no rollout status. Check that the Rollout Manager is created and is available.",
277283
"Strategy": "Strategy",
278284
"Whether the rollout is using a blue-green or canary strategy": "Whether the rollout is using a blue-green or canary strategy",
279285
"No Argo Rollouts": "No Argo Rollouts",
@@ -284,12 +290,10 @@
284290
"Create Rollout": "Create Rollout",
285291
"Pods": "Pods",
286292
"Selector": "Selector",
287-
"No labels": "No labels",
288293
"Rollout Status": "Rollout Status",
289294
"Revisions": "Revisions",
290295
"There was an error retrieving the rollout. Check your connection and reload the page.": "There was an error retrieving the rollout. Check your connection and reload the page.",
291296
"There was an error retrieving the rollout revisions. Check your connection and reload the page.": "There was an error retrieving the rollout revisions. Check your connection and reload the page.",
292-
"Rollout Revisions": "Rollout Revisions",
293297
"Active Service": "Active Service",
294298
"The active blue-green service": "The active blue-green service",
295299
"Preview Service": "Preview Service",
@@ -322,6 +326,7 @@
322326
"There was an error retrieving applicationsets. Check your connection and reload the page.": "There was an error retrieving applicationsets. Check your connection and reload the page.",
323327
"ApplicationSets": "ApplicationSets",
324328
"Create ApplicationSet": "Create ApplicationSet",
329+
"No labels": "No labels",
325330
"Name must be unique within a namespace.": "Name must be unique within a namespace.",
326331
"Namespace defines the space within which each name must be unique.": "Namespace defines the space within which each name must be unique.",
327332
"Map of string keys and values that can be used to organize and categorize (scope and select) objects.": "Map of string keys and values that can be used to organize and categorize (scope and select) objects.",

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@
122122
"dagre": "^0.8.5",
123123
"git-url-parse": "^13.1.0",
124124
"lodash": "^4.18.1",
125+
"moment": "^2.29.4",
126+
"rxjs": "^7.8.1",
125127
"react": "17.0.2",
126128
"react-helmet": "^6.1.0",
127129
"react-redux": "7.2.9",

pnpm-lock.yaml

Lines changed: 18 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/gitops/components/rollout/RolloutDetailsTab.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,13 @@ const RolloutDetailsTab: React.FC<RolloutDetailsTabProps> = ({ obj }) => {
119119
<FlexItem>
120120
<RolloutStatusFragment
121121
status={obj?.status?.phase}
122-
message={obj?.status?.message}
122+
message={
123+
obj?.status
124+
? obj.status.message
125+
: t(
126+
'There is no rollout status. Check that the Rollout Manager is created and is available.',
127+
)
128+
}
123129
/>
124130
</FlexItem>
125131
</Flex>

0 commit comments

Comments
 (0)