Skip to content
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

chore: update port names #146

Merged
merged 3 commits into from
Jun 4, 2024
Merged

chore: update port names #146

merged 3 commits into from
Jun 4, 2024

Conversation

leovct
Copy link
Member

@leovct leovct commented Jun 4, 2024

Description

🚨 Breaking Change! 🚨

Kubernetes adheres to RFC-6335, which specifies a character limit for port names ranging from 1 to 15 characters. However, some of the port names defined in the Kurtosis CDK exceed this 15-character limit. This PR addresses this issue by shortening the port names and updating some of the ports with more appropriate names.

  • zkevm-bridge-service:
    • bridge-rpc => rpc
    • bridge-grpc => grpc
  • zkevm-bridge-ui: bridge-ui => web-ui
  • zkevm-bridge-proxy: bridge-interface => web-ui
  • zkevm-prover / zkevm-executor:
    • hash-db-server => hash-db
    • executor-server => executor

References (if applicable)

https://polygon.atlassian.net/browse/DVT-1520

@leovct leovct requested a review from a team June 4, 2024 08:51
Copy link
Contributor

@rebelArtists rebelArtists left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@leovct leovct merged commit 3534cc4 into 0xPolygon:main Jun 4, 2024
11 of 12 checks passed
@leovct leovct deleted the chore/port-names branch June 4, 2024 12:58
github-merge-queue bot pushed a commit to kurtosis-tech/kurtosis that referenced this pull request Jun 6, 2024
## Description
<!-- Describe this change, how it works, and the motivation behind it.
-->

Kubernetes adheres to
[RFC-6335](https://www.rfc-archive.org/getrfc.php?rfc=6335#gsc.tab=0),
which specifies that port names must be between 1 and 15 characters.
However, this constraint is currently not enforced by the Kurtosis
engine, leading to deployment failures in Kubernetes environments when
port names exceed 15 characters.

Here is an example that the Kurtosis validation step failed to catch:

![image
(1)](https://github.com/kurtosis-tech/kurtosis/assets/28714795/cb2f8ee4-038f-4368-9901-e5432fc58e45)


This PR resolves the issue by adding an additional validation step for
port names. It also refactors the regex definitions in `service.go` and
improves the test design for validating service and port names in
`service_test.go`.

## Is this change user facing?
YES

<!-- If yes, please add the "user facing" label to the PR -->
<!-- If yes, don't forget to include docs changes where relevant -->

## References (if applicable)
<!-- Add relevant Github Issues, Discord threads, or other helpful
information. -->
<!-- You can auto-close issues by putting "Fixes #XXXX" here. -->

-
https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/util/validation/validation.go#L326-L351
- 0xPolygon/kurtosis-cdk#146 (comment)
jarrodwatts pushed a commit to jarrodwatts/kurtosis-cdk that referenced this pull request Jun 27, 2024
* chore: update port names

* chore: lint
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