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

TLSEdge support #312

Merged
merged 10 commits into from
Oct 12, 2023
Merged

TLSEdge support #312

merged 10 commits into from
Oct 12, 2023

Conversation

jrobsonchase
Copy link
Contributor

@jrobsonchase jrobsonchase commented Oct 5, 2023

Resolves ngrok-private/ngrok#22654

What

Add support for TLS Edges. No support as an ingress yet, but direct use of the tlsedge crd is functional.

How

Mostly copy-paste the TCP types/controller. Slight variations around hostport assignment, but otherwise identical currently.

Breaking Changes

Should be none, also fixing a couple of bugs along the way.

@github-actions github-actions bot added area/controller Issues dealing with the controller area/helm-chart Issues dealing with the helm chart labels Oct 5, 2023
@jrobsonchase jrobsonchase marked this pull request as ready for review October 5, 2023 19:30
@jrobsonchase jrobsonchase requested a review from a team as a code owner October 5, 2023 19:30
@jrobsonchase jrobsonchase changed the title WIP: TLSEdge support TLSEdge support Oct 5, 2023
internal/controllers/tlsedge_controller.go Show resolved Hide resolved
api/v1alpha1/tlsedge_types.go Outdated Show resolved Hide resolved
internal/controllers/tlsedge_controller.go Show resolved Hide resolved
internal/controllers/tlsedge_controller.go Outdated Show resolved Hide resolved
Copy link
Collaborator

@jonstacks jonstacks left a comment

Choose a reason for hiding this comment

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

Nice! 🥳

return err
}

if err := r.updateIPRestrictionModule(ctx, edge, remoteEdge); err != nil {
Copy link
Collaborator

@jonstacks jonstacks Oct 6, 2023

Choose a reason for hiding this comment

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

nit: We could just return r.updateIPRestrictionMoudle(ctx, edge, remoteEdge) here right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Could, but I kinda like having the symmetry among the things-to-update 🤷

api/v1alpha1/tcpedge_types.go Show resolved Hide resolved
@jrobsonchase jrobsonchase merged commit cb9dee6 into main Oct 12, 2023
7 checks passed
@jrobsonchase jrobsonchase deleted the josh/tlsedges branch October 12, 2023 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/controller Issues dealing with the controller area/helm-chart Issues dealing with the helm chart
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants