名稱
kf unset-space-role
- 取消指派主體的角色。
概要
kf unset-space-role SUBJECT_NAME ROLE [flags]
範例
# Unassign a User to a Role kf unset-space-role john@example.com SpaceDeveloper # Unassign a Group to a Role kf unset-space-role my-group SpaceAuditor -t Group # Unassign a ServiceAccount to a Role kf unset-space-role my-sa SpaceAuditor -t ServiceAccount
旗標
-h, --help
unset-space-role 的說明
-t, --type=string
主體類型,有效值為 Group|ServiceAccount|User(預設)。(預設為「使用者」)
繼承的標記
這些標記會繼承自父項指令。
--as=string
要冒用來執行作業的使用者名稱。
--as-group=strings
要冒用身分的群組。如要指定多個群組,請多次加入這個標記。
--config=string
用於 CLI 要求的 Kf 設定檔路徑。
--kubeconfig=string
用於 CLI 要求的 kubeconfig 檔案路徑。
--log-http
將 HTTP 要求記錄到標準錯誤。
--space=string
要執行指令的空間。這個標記會覆寫目前指定的空間。