Skip to content

No validation failure when creating resource with incorrect spec.ports.protocol #3257

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
spadgett opened this issue Jun 16, 2015 · 0 comments
Assignees
Labels
Milestone

Comments

@spadgett
Copy link
Member

The server accepts POST requests with invalid port protocols like lower-case values.

This POST request with "protocol": "tcp" was accepted.

{
  "kind": "Service",
  "apiVersion": "v1beta3",
  "metadata": {
    "name": "nodejs-ex",
    "namespace": "another",
    "selfLink": "/api/v1beta3/namespaces/another/services/nodejs-ex",
    "uid": "1be471b1-147f-11e5-af3c-080027c5bfa9",
    "resourceVersion": "2870",
    "creationTimestamp": "2015-06-16T23:26:26Z",
    "labels": {
      "generatedby": "OpenShiftWebConsole",
      "name": "nodejs-ex"
    }
  },
  "spec": {
    "ports": [
      {
        "protocol": "tcp",
        "port": 8080,
        "targetPort": 8080,
        "nodePort": 0
      }
    ],
    "selector": {
      "deploymentconfig": "nodejs-ex"
    },
    "portalIP": "172.30.51.110",
    "type": "ClusterIP",
    "sessionAffinity": "None"
  },
  "status": {
    "loadBalancer": {}
  }
}

It's also a problem creating deployment configurations with container templates, spec.template.spec.containers.ports.

See #3253

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants