src/Types/PodV1.Types.ps1xml
<?xml version="1.0" encoding="utf-8" ?> <Types> <Type> <Name>KubeClient.Models.PodV1</Name> <Members> <ScriptProperty> <Name>Name</Name> <GetScriptBlock>$this.Metadata.Name</GetScriptBlock> </ScriptProperty> <ScriptProperty> <Name>Restarts</Name> <GetScriptBlock>(($this.Status.ContainerStatuses + $this.Status.InitContainerStatuses).RestartCount | Measure-Object -Sum).Sum</GetScriptBlock> </ScriptProperty> <ScriptProperty> <Name>Age</Name> <GetScriptBlock>New-TimeSpan -Start $this.Metadata.CreationTimestamp -End (Get-Date)</GetScriptBlock> </ScriptProperty> </Members> </Type> </Types> |