Skip to content

Commit

Permalink
Remove unnecessary fields from reporter
Browse files Browse the repository at this point in the history
We're not showing `MESSAGE` field along with PV & PVC.

Signed-off-by: Satyam Zode <satyam.zode@openebs.io>
  • Loading branch information
Satyam Zode committed Jun 6, 2018
1 parent 549baf3 commit d39b78d
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions probe/kubernetes/reporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,18 +110,16 @@ var (
NodeType: {ID: NodeType, Label: "Type", From: report.FromLatest, Priority: 1},
VolumeClaim: {ID: VolumeClaim, Label: "Volume Claim", From: report.FromLatest, Priority: 2},
StorageClassName: {ID: StorageClassName, Label: "Storage Class", From: report.FromLatest, Priority: 3},
ReclaimPolicy: {ID: ReclaimPolicy, Label: "Reclaim Policy", From: report.FromLatest, Priority: 4},
AccessModes: {ID: AccessModes, Label: "Access Modes", From: report.FromLatest, Priority: 5},
Status: {ID: Status, Label: "Status", From: report.FromLatest, Priority: 6},
Message: {ID: Message, Label: "Message", From: report.FromLatest, Priority: 7},
}

PersistentVolumeClaimMetadataTemplates = report.MetadataTemplates{
NodeType: {ID: NodeType, Label: "Type", From: report.FromLatest, Priority: 1},
Namespace: {ID: Namespace, Label: "Namespace", From: report.FromLatest, Priority: 2},
Status: {ID: Status, Label: "Status", From: report.FromLatest, Priority: 3},
VolumeName: {ID: VolumeName, Label: "Volume", From: report.FromLatest, Priority: 4},
AccessModes: {ID: AccessModes, Label: "Access Modes", From: report.FromLatest, Priority: 5},
NodeType: {ID: NodeType, Label: "Type", From: report.FromLatest, Priority: 1},
Namespace: {ID: Namespace, Label: "Namespace", From: report.FromLatest, Priority: 2},
Status: {ID: Status, Label: "Status", From: report.FromLatest, Priority: 3},
VolumeName: {ID: VolumeName, Label: "Volume", From: report.FromLatest, Priority: 4},
StorageClassName: {ID: StorageClassName, Label: "Storage Class", From: report.FromLatest, Priority: 5},
}

StorageClassMetadataTemplates = report.MetadataTemplates{
Expand Down

0 comments on commit d39b78d

Please sign in to comment.