Skip to content

Commit d23a1a5

Browse files
authored
fix: Updated the operator-rabc example to test RBAC from a Kubernete pod (#5147)
fix: Updated the operator-rabc example to test RBAC from a Kubernetes pod Signed-off-by: Abdul Hameed <[email protected]>
1 parent d86d810 commit d23a1a5

11 files changed

+1198
-386
lines changed

examples/operator-rbac/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
client/feature_repo/feature_store.yaml

examples/operator-rbac/03-uninstall.ipynb renamed to examples/operator-rbac/04-uninstall.ipynb

Lines changed: 51 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@
1111
{
1212
"metadata": {},
1313
"cell_type": "markdown",
14-
"source": "### Uninstall the Operator and all Feast related objects##",
14+
"source": "### Uninstall the Operator and Feast Instance",
1515
"id": "1175f3d6c5ee9bf0"
1616
},
1717
{
1818
"metadata": {
1919
"ExecuteTime": {
20-
"end_time": "2025-03-05T19:09:52.349677Z",
21-
"start_time": "2025-03-05T19:09:46.308482Z"
20+
"end_time": "2025-03-14T14:45:22.053112Z",
21+
"start_time": "2025-03-14T14:45:15.816729Z"
2222
}
2323
},
2424
"cell_type": "code",
@@ -50,19 +50,19 @@
5050
]
5151
}
5252
],
53-
"execution_count": 6
53+
"execution_count": 4
5454
},
5555
{
5656
"metadata": {},
5757
"cell_type": "markdown",
58-
"source": "## Uninstall Client Related Objects",
58+
"source": "## Delete RoleBindings and ServiceAccounts\n",
5959
"id": "2a2aa884aeddfb99"
6060
},
6161
{
6262
"metadata": {
6363
"ExecuteTime": {
64-
"end_time": "2025-03-05T19:09:54.655575Z",
65-
"start_time": "2025-03-05T19:09:53.553918Z"
64+
"end_time": "2025-03-14T14:45:47.419179Z",
65+
"start_time": "2025-03-14T14:45:46.325817Z"
6666
}
6767
},
6868
"cell_type": "code",
@@ -92,19 +92,54 @@
9292
]
9393
}
9494
],
95-
"execution_count": 7
95+
"execution_count": 5
9696
},
9797
{
9898
"metadata": {},
9999
"cell_type": "markdown",
100-
"source": "Ensure everything has been removed, or is in the process of being terminated.",
101-
"id": "638421caa8ff849e"
100+
"source": "### Delete Client Example Deployments",
101+
"id": "fa7a79763774f770"
102102
},
103103
{
104104
"metadata": {
105105
"ExecuteTime": {
106-
"end_time": "2025-03-05T19:09:59.868383Z",
107-
"start_time": "2025-03-05T19:09:59.611048Z"
106+
"end_time": "2025-03-14T14:46:05.998191Z",
107+
"start_time": "2025-03-14T14:46:05.344334Z"
108+
}
109+
},
110+
"cell_type": "code",
111+
"source": [
112+
"!kubectl delete -f client/admin_user_deployment.yaml\n",
113+
"!kubectl delete -f client/readonly_user_deployment.yaml\n",
114+
"!kubectl delete -f client/unauthorized_user_deployment.yaml\n",
115+
"!kubectl delete configmap client-feature-repo-config -n feast"
116+
],
117+
"id": "7bc23b3eb0153c75",
118+
"outputs": [
119+
{
120+
"name": "stdout",
121+
"output_type": "stream",
122+
"text": [
123+
"deployment.apps \"client-admin-user\" deleted\r\n",
124+
"deployment.apps \"client-readonly-user\" deleted\r\n",
125+
"deployment.apps \"client-unauthorized-user\" deleted\r\n",
126+
"Error from server (NotFound): configmaps \"client-feature-repo-config\" not found\r\n"
127+
]
128+
}
129+
],
130+
"execution_count": 6
131+
},
132+
{
133+
"metadata": {},
134+
"cell_type": "markdown",
135+
"source": "### Validate all Objects Removed from Namespace and Delete the Namespace",
136+
"id": "ce8ef7c832d146dd"
137+
},
138+
{
139+
"metadata": {
140+
"ExecuteTime": {
141+
"end_time": "2025-03-14T14:46:14.626703Z",
142+
"start_time": "2025-03-14T14:46:14.429984Z"
108143
}
109144
},
110145
"cell_type": "code",
@@ -119,13 +154,13 @@
119154
]
120155
}
121156
],
122-
"execution_count": 8
157+
"execution_count": 7
123158
},
124159
{
125160
"metadata": {
126161
"ExecuteTime": {
127-
"end_time": "2025-03-05T19:10:07.846749Z",
128-
"start_time": "2025-03-05T19:10:02.561070Z"
162+
"end_time": "2025-03-14T14:46:26.127988Z",
163+
"start_time": "2025-03-14T14:46:20.865605Z"
129164
}
130165
},
131166
"cell_type": "code",
@@ -140,15 +175,7 @@
140175
]
141176
}
142177
],
143-
"execution_count": 9
144-
},
145-
{
146-
"metadata": {},
147-
"cell_type": "code",
148-
"outputs": [],
149-
"execution_count": null,
150-
"source": "",
151-
"id": "10707783148c5f8d"
178+
"execution_count": 8
152179
}
153180
],
154181
"metadata": {

0 commit comments

Comments
 (0)