Skip to content

Commit 794f8ef

Browse files
committed
Move heal and watch to tenant details view on operator-ui
1 parent 9136c2a commit 794f8ef

31 files changed

+1201
-433
lines changed

go.sum

Lines changed: 59 additions & 0 deletions
Large diffs are not rendered by default.

k8s/operator-console/base/kustomization.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ resources:
88
- console-configmap.yaml
99
- console-service.yaml
1010
- console-deployment.yaml
11-
- https://github.com/minio/operator/?ref=v3.0.19
11+
- https://github.com/minio/operator/?ref=v3.0.29

pkg/acl/endpoints.go

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,12 @@ var (
2828
iamPolicies = "/policies"
2929
dashboard = "/dashboard"
3030
profiling = "/profiling"
31-
watch = "/watch"
3231
notifications = "/notification-endpoints"
3332
buckets = "/buckets"
3433
bucketsDetail = "/buckets/:bucketName"
3534
serviceAccounts = "/service-accounts"
3635
tenants = "/tenants"
3736
tenantsDetail = "/namespaces/:tenantNamespace/tenants/:tenantName"
38-
heal = "/heal"
3937
remoteBuckets = "/remote-buckets"
4038
replication = "/replication"
4139
objectBrowser = "/object-browser/:bucket/*"
@@ -122,16 +120,6 @@ var usersActionSet = ConfigurationActionSet{
122120
),
123121
}
124122

125-
// watchActionSet contains the list of admin actions required for this endpoint to work
126-
var watchActionSet = ConfigurationActionSet{
127-
actionTypes: iampolicy.NewActionSet(
128-
iampolicy.AllAdminActions,
129-
),
130-
actions: iampolicy.NewActionSet(
131-
iampolicy.ListenBucketNotificationAction,
132-
),
133-
}
134-
135123
// notificationsActionSet contains the list of admin actions required for this endpoint to work
136124
var notificationsActionSet = ConfigurationActionSet{
137125
actionTypes: iampolicy.NewActionSet(
@@ -182,16 +170,6 @@ var tenantsActionSet = ConfigurationActionSet{
182170
actions: iampolicy.NewActionSet(),
183171
}
184172

185-
// healActionSet contains the list of admin actions required for this endpoint to work
186-
var healActionSet = ConfigurationActionSet{
187-
actionTypes: iampolicy.NewActionSet(
188-
iampolicy.AllAdminActions,
189-
),
190-
actions: iampolicy.NewActionSet(
191-
iampolicy.HealAdminAction,
192-
),
193-
}
194-
195173
var remoteBucketsActionSet = ConfigurationActionSet{
196174
actionTypes: iampolicy.NewActionSet(
197175
iampolicy.AllAdminActions,
@@ -230,12 +208,10 @@ var endpointRules = map[string]ConfigurationActionSet{
230208
iamPolicies: iamPoliciesActionSet,
231209
dashboard: dashboardActionSet,
232210
profiling: profilingActionSet,
233-
watch: watchActionSet,
234211
notifications: notificationsActionSet,
235212
buckets: bucketsActionSet,
236213
bucketsDetail: bucketsActionSet,
237214
serviceAccounts: serviceAccountsActionSet,
238-
heal: healActionSet,
239215
remoteBuckets: remoteBucketsActionSet,
240216
replication: replicationActionSet,
241217
objectBrowser: objectBrowserActionSet,

portal-ui/bindata_assetfs.go

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

portal-ui/src/screens/Console/Console.tsx

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@ import ListNotificationEndpoints from "./NotificationEndopoints/ListNotification
4242
import ConfigurationsList from "./Configurations/ConfigurationPanels/ConfigurationsList";
4343
import { Button, LinearProgress } from "@material-ui/core";
4444
import WebhookPanel from "./Configurations/ConfigurationPanels/WebhookPanel";
45-
import Heal from "./Heal/Heal";
46-
import Watch from "./Watch/Watch";
4745
import ListTenants from "./Tenants/ListTenants/ListTenants";
4846
import { ISessionResponse } from "./types";
4947
import TenantDetails from "./Tenants/TenantDetails/TenantDetails";
@@ -221,10 +219,6 @@ const Console = ({
221219
component: ObjectRouting,
222220
path: "/object-browser/:bucket/*",
223221
},
224-
{
225-
component: Watch,
226-
path: "/watch",
227-
},
228222
{
229223
component: Users,
230224
path: "/users",
@@ -237,10 +231,6 @@ const Console = ({
237231
component: Policies,
238232
path: "/policies",
239233
},
240-
{
241-
component: Heal,
242-
path: "/heal",
243-
},
244234
{
245235
component: ListNotificationEndpoints,
246236
path: "/notification-endpoints",

portal-ui/src/screens/Console/Menu/Menu.tsx

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -240,22 +240,6 @@ const Menu = ({ userLoggedIn, classes, pages }: IMenuProps) => {
240240
name: "IAM Policies",
241241
icon: <IAMPoliciesIcon />,
242242
},
243-
{
244-
group: "Tools",
245-
type: "item",
246-
component: NavLink,
247-
to: "/watch",
248-
name: "Watch",
249-
icon: <WatchIcon />,
250-
},
251-
{
252-
group: "Tools",
253-
type: "item",
254-
component: NavLink,
255-
to: "/heal",
256-
name: "Heal",
257-
icon: <HealIcon />,
258-
},
259243
{
260244
group: "Admin",
261245
type: "item",

portal-ui/src/screens/Console/Menu/utils.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ export const menuGroups = [
1818
{ label: "", group: "common", collapsible: false },
1919
{ label: "User", group: "User", collapsible: true },
2020
{ label: "Admin", group: "Admin", collapsible: true },
21-
{ label: "Tools", group: "Tools", collapsible: true },
2221
{ label: "Operator", group: "Operator", collapsible: true },
2322
{ label: "", group: "License", collapsible: false },
2423
];

0 commit comments

Comments
 (0)