Skip to content

Commit cc32725

Browse files
committed
fix: Updated the operator-rabc example to test RBAC from a Kubernetes pod
Signed-off-by: Abdul Hameed <ahameed@redhat.com>
1 parent 3224571 commit cc32725

File tree

11 files changed

+1233
-428
lines changed

11 files changed

+1233
-428
lines changed

examples/operator-rbac/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Lines changed: 44 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
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-13T17:02:11.891312Z",
21+
"start_time": "2025-03-13T17:02:05.847508Z"
2222
}
2323
},
2424
"cell_type": "code",
@@ -50,7 +50,7 @@
5050
]
5151
}
5252
],
53-
"execution_count": 6
53+
"execution_count": 1
5454
},
5555
{
5656
"metadata": {},
@@ -61,8 +61,8 @@
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-13T13:45:08.797295Z",
65+
"start_time": "2025-03-13T13:45:06.919512Z"
6666
}
6767
},
6868
"cell_type": "code",
@@ -88,23 +88,50 @@
8888
"Deleting ServiceAccounts...\r\n",
8989
"serviceaccount \"feast-user-sa\" deleted\r\n",
9090
"serviceaccount \"feast-admin-sa\" deleted\r\n",
91-
"serviceaccount \"feast-unauthorized-user-sa\" deleted\r\n"
91+
"serviceaccount \"feast-unauthorized-user-sa\" deleted\r\n",
92+
"deployment.apps \"client-admin-user\" deleted\r\n",
93+
"deployment.apps \"client-readonly-user\" deleted\r\n",
94+
"deployment.apps \"client-unauthorized-user\" deleted\r\n",
95+
"configmap \"client-feature-repo-config\" deleted\r\n"
9296
]
9397
}
9498
],
95-
"execution_count": 7
99+
"execution_count": 4
96100
},
97101
{
98-
"metadata": {},
99-
"cell_type": "markdown",
100-
"source": "Ensure everything has been removed, or is in the process of being terminated.",
101-
"id": "638421caa8ff849e"
102+
"metadata": {
103+
"ExecuteTime": {
104+
"end_time": "2025-03-13T18:24:45.843849Z",
105+
"start_time": "2025-03-13T18:24:45.056417Z"
106+
}
107+
},
108+
"cell_type": "code",
109+
"source": [
110+
"!kubectl delete -f client/admin_user_deployment.yaml\n",
111+
"!kubectl delete -f client/readonly_user_deployment.yaml\n",
112+
"!kubectl delete -f client/unauthorized_user_deployment.yaml\n",
113+
"!kubectl delete configmap client-feature-repo-config -n feast"
114+
],
115+
"id": "7bc23b3eb0153c75",
116+
"outputs": [
117+
{
118+
"name": "stdout",
119+
"output_type": "stream",
120+
"text": [
121+
"deployment.apps \"client-admin-user\" deleted\r\n",
122+
"Error from server (NotFound): error when deleting \"client/readonly_user_deployment.yaml\": deployments.apps \"client-readonly-user\" not found\r\n",
123+
"Error from server (NotFound): error when deleting \"client/unauthorized_user_deployment.yaml\": deployments.apps \"client-unauthorized-user\" not found\r\n",
124+
"Error from server (NotFound): configmaps \"client-feature-repo-config\" not found\r\n"
125+
]
126+
}
127+
],
128+
"execution_count": 3
102129
},
103130
{
104131
"metadata": {
105132
"ExecuteTime": {
106-
"end_time": "2025-03-05T19:09:59.868383Z",
107-
"start_time": "2025-03-05T19:09:59.611048Z"
133+
"end_time": "2025-03-13T17:05:16.570959Z",
134+
"start_time": "2025-03-13T17:05:16.365021Z"
108135
}
109136
},
110137
"cell_type": "code",
@@ -119,13 +146,13 @@
119146
]
120147
}
121148
],
122-
"execution_count": 8
149+
"execution_count": 3
123150
},
124151
{
125152
"metadata": {
126153
"ExecuteTime": {
127-
"end_time": "2025-03-05T19:10:07.846749Z",
128-
"start_time": "2025-03-05T19:10:02.561070Z"
154+
"end_time": "2025-03-13T17:05:26.280089Z",
155+
"start_time": "2025-03-13T17:05:21.008188Z"
129156
}
130157
},
131158
"cell_type": "code",
@@ -140,7 +167,7 @@
140167
]
141168
}
142169
],
143-
"execution_count": 9
170+
"execution_count": 4
144171
},
145172
{
146173
"metadata": {},

0 commit comments

Comments
 (0)