• Kubernetes Submit Queue's avatar
    Merge pull request #45813 from xilabao/add-psp-in-kubectl-describe · b3c6da0e
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue (batch tested with PRs 45813, 49594, 49443, 49167, 47539)
    
    add podsecuritypolicy in kubectl describe command
    
    **What this PR does / why we need it**:
    Describe all fields of podsecuritypolicy
    ```
    # ./cluster/kubectl.sh describe psp restricted
    Name:	restricted
    
    Settings:
      Allow Privileged:				false
      Default Add Capabilities:			<none>
      Required Drop Capabilities:			<none>
      Allowed Capabilities:				<none>
      Allowed Volume Types:				emptyDir,secret,downwardAPI,configMap,persistentVolumeClaim,projected
      Allow Host Network:				false
      Allow Host Ports:				<none>
      Allow Host PID:				false
      Allow Host IPC:				false
      Read Only Root Filesystem:			false
      SELinux Context Strategy: RunAsAny		
        User:					<none>
        Role:					<none>
        Type:					<none>
        Level:					<none>
      Run As User Strategy: MustRunAsNonRoot	
        Ranges:					<none>
      FSGroup Strategy: RunAsAny			
        Ranges:					<none>
      Supplemental Groups Strategy: RunAsAny	
        Ranges:					<none>
    ```
    
    **Which issue this PR fixes**: fixes #43757
    
    **Special notes for your reviewer**:
    
    **Release note**:
    ```release-note
    kubectl describe podsecuritypolicy describes all fields.
    ```
    b3c6da0e
Name
Last commit
Last update
..
internalversion Loading commit data...
storage Loading commit data...
.import-restrictions Loading commit data...
BUILD Loading commit data...
OWNERS Loading commit data...
common.go Loading commit data...
customcolumn.go Loading commit data...
customcolumn_test.go Loading commit data...
humanreadable.go Loading commit data...
interface.go Loading commit data...
json.go Loading commit data...
jsonpath.go Loading commit data...
name.go Loading commit data...
printers.go Loading commit data...
tabwriter.go Loading commit data...
template.go Loading commit data...
versioned.go Loading commit data...