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

fix: remove illegal characters from port name #191

Merged
merged 4 commits into from
Apr 11, 2024

Conversation

ameijboom
Copy link
Contributor

While deploying Zitadel on our test cluster, we encountered an issue with the port name that was caused by the appProtocol we're using.

Invalid value: "kubernetes.io/h2c-server": a lowercase RFC 1123 label must consist of lower case alphanumeric characters or '-', and must start and end with an alphanumeric charact
er (e.g. 'my-name',  or '123-abc', regex used for validation is '[a-z0-9]([-a-z0-9]*[a-z0-9])?')

In this PR, we strip invalid characters from the protocol in the port name of the service.

Definition of Ready

  • I am happy with the code
  • Short description of the feature/issue is added in the pr description
  • PR is linked to the corresponding user story
  • Acceptance criteria are met
  • All open todos and follow ups are defined in a new ticket and justified
  • Deviations from the acceptance criteria and design are agreed with the PO and documented.
  • No debug or dead code
  • My code has no repetitions
  • Documentation/examples are up-to-date
  • All non-functional requirements are met
  • If possible, the test configuration is adjusted so acceptance tests cover my changes

@hifabienne hifabienne added os-contribution This is a contribution from our open-source community devops labels Mar 22, 2024
Copy link
Member

@eliobischof eliobischof left a comment

Choose a reason for hiding this comment

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

Thanks for the PR.

At least the port reference in the service monitor needs to be updated too, right?

image

@ameijboom
Copy link
Contributor Author

You're correct. I've updated my PR accordingly.

@eliobischof
Copy link
Member

You're correct. I've updated my PR accordingly.

I don't see the change 😄

@ameijboom
Copy link
Contributor Author

Blunder on my part, should be all good now.

Copy link
Member

@eliobischof eliobischof left a comment

Choose a reason for hiding this comment

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

Hey @ameijboom, thanks for the fix.

If you'd like us to send you a small gift, please send us a mail to hi@zitadel.com. You will receive a form with questions like your shirt size and address.

@eliobischof eliobischof enabled auto-merge (squash) April 10, 2024 21:51
@eliobischof eliobischof merged commit 0ce499a into zitadel:main Apr 11, 2024
9 checks passed
kleberbaum pushed a commit to fhkit/zitadel-charts that referenced this pull request May 24, 2024
* fix: remove illegal characters from port name

* patch

---------

Co-authored-by: Florian Forster <florian@zitadel.com>
Co-authored-by: Elio Bischof <elio@zitadel.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
devops os-contribution This is a contribution from our open-source community
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

4 participants