Types/PodV1.Types.ps1xml
<?xml version="1.0" encoding="utf-8" ?> <Types> <Type> <Name>KubeClient.Models.PodV1</Name> <Members> <ScriptProperty> <Name>Namespace</Name> <GetScriptBlock>$this.Metadata.Namespace</GetScriptBlock> </ScriptProperty> <ScriptProperty> <Name>Restarts</Name> <GetScriptBlock>(($this.Status.ContainerStatuses + $this.Status.InitContainerStatuses).RestartCount | Measure-Object -Sum).Sum</GetScriptBlock> </ScriptProperty> </Members> </Type> </Types> |