This commit will categorize the controls into two types:-
Admin Controls (exec, scaleup, scaledown etc.)
Read only Controls (logs, describe, attach)
This will add a new flag i.e disableAdminControls
by default, teh value for the above flag will be false,
if value is true, all the admin controls will be disabled.
This commit will read the header "x-api-user-kind" from request
and check if it is "readAdmin" or not.
If it is the readAdmin, then it will filter all the adminControls
else it will provide all the controls.
This commit will categorize the controls into two types:-
This will add a new flag i.e disableAdminControls by default, teh value for the above flag will be false, if value is true, all the admin controls will be disabled.
Signed-off-by: Akash Srivastava akashsrivastava4927@gmail.com
This commit will read the header "x-api-user-kind" from request and check if it is "readAdmin" or not. If it is the readAdmin, then it will filter all the adminControls else it will provide all the controls.
Signed-off-by: Akash Srivastava akashsrivastava4927@gmail.com