Add 'team' label to pods, stateful sets, secrets and pod disruption budgets

This commit is contained in:
Sergey Dudoladov 2018-02-23 14:36:10 +01:00
parent c4aab502b3
commit 00dc810544
1 changed files with 1 additions and 0 deletions

View File

@ -343,6 +343,7 @@ func (c *Cluster) labelsSet() labels.Set {
lbls[k] = v lbls[k] = v
} }
lbls[c.OpConfig.ClusterNameLabel] = c.Name lbls[c.OpConfig.ClusterNameLabel] = c.Name
lbls["team"] = c.Postgresql.Spec.TeamID
return labels.Set(lbls) return labels.Set(lbls)
} }