{"push_id":1336009830,"size":2,"distinct_size":2,"ref":"refs/heads/jvallejo/add-nodeport-option","head":"26655c5767527cdb5a9381348f299ba6e9f0d4ce","before":"5ed2b4ce974cf14009d2b0299508c68e9740162e","commits":[{"sha":"968a24f72fb6680ee7098f96748ed968a6800461","author":{"name":"juanvallejo","email":"ba2f9ce6bf995604a7f17c0a8745b84e13a80594@redhat.com"},"message":"UPSTREAM: 33319: Add option to set a nodeport\n\nUPSTREAM: https://github.com/kubernetes/kubernetes/pull/33319\n\nThis patch adds the option to set a nodeport when creating a NodePort\nservice. In case of a port allocation error due to a specified port\nbeing out of the valid range, the error now includes the valid\nrange. If a `--node-port` value is not specified, it defaults to zero, in\nwhich case the allocator will default to its current behavior of\nassigning an available port.\n\nThis patch also adds a new helper function in `cmd/util/helpers.go` to\nretrieve `Int32` cobra flags.\n\n**Example**\n```\n$ oc create service nodeport mynodeport --tcp=8080:7777 --node-port=1\nThe Service \"mynodeport\" is invalid: spec.ports[0].nodePort: Invalid\nvalue: 1: provided port is not in the valid range. Valid ports range\nfrom 30000-32767\n\n$ oc create service nodeport mynodeport --tcp=8080:7777 --node-port=30000\nservice \"mynodeport\" created\n\n$ oc describe service mynodeport\nName:                   mynodeport\nNamespace:              default\nLabels:                 app=mynodeport\nSelector:               app=mynodeport\nType:                   NodePort\nIP:                     172.30.81.254\nPort:                   8080-7777       8080/TCP\nNodePort:               8080-7777       30000/TCP\nEndpoints:              <none>\nSession Affinity:       None\nNo events.\n```","distinct":true,"url":"https://api.github.com/repos/juanvallejo/origin/commits/968a24f72fb6680ee7098f96748ed968a6800461"},{"sha":"26655c5767527cdb5a9381348f299ba6e9f0d4ce","author":{"name":"juanvallejo","email":"ba2f9ce6bf995604a7f17c0a8745b84e13a80594@redhat.com"},"message":"add tests, updated docs","distinct":true,"url":"https://api.github.com/repos/juanvallejo/origin/commits/26655c5767527cdb5a9381348f299ba6e9f0d4ce"}]}
{"actor":{"display_login":"juanvallejo"}}