-
Notifications
You must be signed in to change notification settings - Fork 21
feat: extra port mapping for kind cluster #528
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
feat: extra port mapping for kind cluster #528
Conversation
|
@adrianriobo I plan to finish this soon. What do you think of this approach so far? |
|
Yeah I think the feature makes totally sense, and I checked the code quick and it seems totally fine.... just for the cmd part there is an specific type you can use to avoid all the parsing.. check this: https://github.com/adrianriobo/mapt/blob/fix-406/cmd/mapt/cmd/params/params.go#L127 This will simplify the code in that part |
|
Rebase as I changed some file names and specs to facilitate spot management 🙏 |
3e4f3ec to
79d97e9
Compare
|
Just one thing...did you try to parse the struct as json ...so we can avoid the escape chars... actually is kind of the same you did in the action, mm if that is the case then you can use that struct in the Args of the action. If you already try just say and I will LGTM the PR something like: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM when it is merged I will give a try to the parse at cmd level no worries
|
BTW did you have the chance to test this? |
|
yep, tested it like this: also added a validation of provided input values for the new flag |
Description
While testing a konflux running on kind cluster, we found out it'd be good to have additional ports mapped in aws so other services can be publicly accessible (e.g. tekton-results, tekton-pipelines, etc).
This change enables adding extra port mappings via new flag.
Example:
--extra-port-mappings='[{\"containerPort\": 8080, \"hostPort\": 8080, \"protocol\": \"TCP\"}]'Verification
Ran the
mapt createcommand with following param:And verified that the new ports appear in the EC2 inbound rules
and that the endpoints are accessible via exposed ports