fix pgo show config to now show empty things such as storageclass, fsgroup, supplementalgroups
@@ -82,10 +82,16 @@ func showConfig(args []string) {
fmt.Printf("%s%s\n", " AccessMode: ", v.AccessMode)
fmt.Printf("%s%s\n", " Size: ", v.Size)
fmt.Printf("%s%s\n", " StorageType: ", v.StorageType)
+ if v.StorageClass != "" {
fmt.Printf("%s%s\n", " StorageClass: ", v.StorageClass)
+ }
+ if v.Fsgroup != "" {
fmt.Printf("%s%s\n", " Fsgroup: ", v.Fsgroup)
+ }
+ if v.SupplementalGroups != "" {
fmt.Printf("%s%s\n", " SupplementalGroups: ", v.SupplementalGroups)
}
+ }
fmt.Printf("%s%s\n", "DefaultContainerResources:", pgo.DefaultContainerResources)
fmt.Printf("%s\n", "ContainerResources:")
