kubernetes/pkg/printers
Kubernetes Submit Queue 5f3c3647b2
Merge pull request #60157 from msau42/topology-beta
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Update kubectl describe to print out PV node affinity

**What this PR does / why we need it**:
Print out PV NodeAffinity in kubectl describe.

Sample output:
```
Name:            example-local-pv
Labels:          foo1=bar1
                 foo2=bar2
Annotations:     <none>
Finalizers:      []
StorageClass:    local-storage
Status:          Available
Claim:
Reclaim Policy:  Delete
Access Modes:    RWO
Capacity:        5Gi
Node Affinity:
  Required Terms:
    Term 0:  kubernetes.io/hostname in [my-node]
             foo1 in [bar1, bar2]
    Term 1:  foo2 exists
Message:
Source:
    Type:  LocalVolume (a persistent volume backed by local storage on a node)
    Path:  /mnt/disks/ssd1
Events:    <none>
```

No NodeAffinity is set:
```
Name:            nfs
Labels:          <none>
Annotations:     <none>
Finalizers:      []
StorageClass:    
Status:          Available
Claim:           
Reclaim Policy:  Retain
Access Modes:    RWX
Capacity:        1Mi
Node Affinity:   <none>
Message:         
Source:
    Type:      NFS (an NFS mount that lasts the lifetime of a pod)
    Server:    10.244.1.4
    Path:      /exports
    ReadOnly:  false
Events:        <none>
```

**Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
Fixes #60119

**Special notes for your reviewer**:

**Release note**:

```release-note
NONE
```
2018-02-27 11:44:52 -08:00
..
internalversion Merge pull request #60157 from msau42/topology-beta 2018-02-27 11:44:52 -08:00
storage Promote v1alpha1 meta to v1beta1 2018-02-02 14:00:45 -05:00
.import-restrictions Restrict imports for printers 2017-02-23 00:28:31 -05:00
BUILD CRD should have server side printing 2018-02-24 13:44:05 -05:00
customcolumn.go outputs <none> for colums not found 2017-09-27 11:27:55 -07:00
customcolumn_test.go pkg/apis/core: mechanical import fixes in dependencies 2017-11-09 12:14:08 +01:00
humanreadable.go handle Table response in client 2018-02-23 10:41:04 -05:00
humanreadable_test.go Promote v1alpha1 meta to v1beta1 2018-02-02 14:00:45 -05:00
interface.go consolidate printer OutputOpts w PrintOpts 2017-11-20 14:49:23 -05:00
json.go Denote if a printer is generic. 2017-05-31 13:02:23 +05:30
jsonpath.go Denote if a printer is generic. 2017-05-31 13:02:23 +05:30
name.go collapse printing paths 2018-02-21 08:15:22 -05:00
OWNERS Add pkg/printers OWNERS 2017-03-07 22:28:27 -05:00
printers.go update -o name format to kind.group/name 2018-02-15 10:33:06 -05:00
tabwriter.go Refactor printers to separate typed printers from generic code 2017-02-23 00:28:30 -05:00
template.go Denote if a printer is generic. 2017-05-31 13:02:23 +05:30
versioned.go collapse printing paths 2018-02-21 08:15:22 -05:00