Skip to content

api: validation for PortForward objects#4659

Merged
milas merged 1 commit into
masterfrom
milas/ch11824/portforward-validation
Jun 17, 2021
Merged

api: validation for PortForward objects#4659
milas merged 1 commit into
masterfrom
milas/ch11824/portforward-validation

Conversation

@milas

@milas milas commented Jun 17, 2021

Copy link
Copy Markdown
Contributor
  • PodName cannot be empty
  • At least one Forward must be defined
  • LocalPort must be [0, 65535] (0 == randomized)
  • ContainerPort must be (0, 65535]
  • LocalPorts cannot repeat (though likely not common, ContainerPort
    can be forwarded multiple times, so duplicates are fine there)

* PodName cannot be empty
* At least one Forward must be defined
* LocalPort must be [0, 65535] (0 == randomized)
* ContainerPort must be (0, 65535]
* LocalPorts cannot repeat (though likely not common, ContainerPort
  can be forwarded multiple times, so duplicates are fine there)
@milas
milas requested a review from nicks June 17, 2021 15:20
@shortcut-integration

Copy link
Copy Markdown

This pull request has been linked to Clubhouse Story #11824: PortForward validation.

@milas
milas merged commit c1fc964 into master Jun 17, 2021
@milas
milas deleted the milas/ch11824/portforward-validation branch June 17, 2021 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants