Remove warning when no supplementalGroups are specified
As a lot of deployments do not require the user of the
suppelementalGroups security context attribute, it makes sense
to avoid warning the user every time a cluster is deployed, etc.
@@ -106,6 +106,12 @@ func (s PgStorageSpec) GetSupplementalGroups() []int64 {
// iterate through the results and try to append to the supplementalGroups
// array
for _, result := range results {
+ // if the result is the empty string (likely because there are no
+ // supplemental groups), continue on
+ if result == "" {
+ continue
+ }
+
supplementalGroup, err := strconv.Atoi(result)
// if there is an error, only warn about it and continue through the loop
