Merge pull request #1830 from markturansky/label_validation

add RFC952 validation to labels
This commit is contained in:
Tim Hockin
2014-10-27 09:54:18 -07:00
4 changed files with 91 additions and 4 deletions

View File

@@ -57,8 +57,6 @@ func (r RealPodControl) createReplica(namespace string, controllerSpec api.Repli
for k, v := range controllerSpec.DesiredState.PodTemplate.Labels {
desiredLabels[k] = v
}
desiredLabels["replicationController"] = controllerSpec.Name
pod := &api.Pod{
ObjectMeta: api.ObjectMeta{
Labels: desiredLabels,