add missing master matchLabel for the PDB (#144)

This commit is contained in:
Murat Kabilov 2017-10-20 11:26:40 +02:00 committed by GitHub
parent a98c712a52
commit a1deae198b
1 changed files with 1 additions and 0 deletions

View File

@ -602,6 +602,7 @@ func (c *Cluster) generatePodDisruptionBudget() *policybeta1.PodDisruptionBudget
minAvailable := intstr.FromInt(1) minAvailable := intstr.FromInt(1)
matchLabels := c.OpConfig.ClusterLabels matchLabels := c.OpConfig.ClusterLabels
matchLabels[c.OpConfig.ClusterNameLabel] = c.Name matchLabels[c.OpConfig.ClusterNameLabel] = c.Name
matchLabels[c.OpConfig.PodRoleLabel] = string(Master)
return &policybeta1.PodDisruptionBudget{ return &policybeta1.PodDisruptionBudget{
ObjectMeta: metav1.ObjectMeta{ ObjectMeta: metav1.ObjectMeta{