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

Parse the config returned by the loadbalancer-api and turn that into a valid haproxy config #15

Merged
merged 18 commits into from
Mar 31, 2023

Conversation

rizzza
Copy link
Contributor

@rizzza rizzza commented Mar 16, 2023

Summary

  • Add nats-cli to dev container
  • Query lb api for load balancer details and merge that with the base haproxy config
  • REST client for lb api
  • lb api url inow s a required cli flag
  • Moved dataplaneclient out of internal/pkg to internal/dataplaneapi

Signed-off-by: Matt Siwiec <rizzza@users.noreply.github.com>
Signed-off-by: Matt Siwiec <rizzza@users.noreply.github.com>
Signed-off-by: Matt Siwiec <rizzza@users.noreply.github.com>
Signed-off-by: Matt Siwiec <rizzza@users.noreply.github.com>
Signed-off-by: Matt Siwiec <rizzza@users.noreply.github.com>
Signed-off-by: Matt Siwiec <rizzza@users.noreply.github.com>
Signed-off-by: Matt Siwiec <rizzza@users.noreply.github.com>
Signed-off-by: Matt Siwiec <rizzza@users.noreply.github.com>
Signed-off-by: Matt Siwiec <rizzza@users.noreply.github.com>
@rizzza rizzza marked this pull request as ready for review March 28, 2023 15:55
@rizzza rizzza changed the title Merge haproxy config request Parse the config returned by the loadbalancer-api and turn that into a valid haproxy config Mar 28, 2023
.devcontainer/Dockerfile Outdated Show resolved Hide resolved
Signed-off-by: Matt Siwiec <rizzza@users.noreply.github.com>
Signed-off-by: Matt Siwiec <rizzza@users.noreply.github.com>
andy-v-h
andy-v-h previously approved these changes Mar 28, 2023
Signed-off-by: Matt Siwiec <rizzza@users.noreply.github.com>
Signed-off-by: Matt Siwiec <rizzza@users.noreply.github.com>
Signed-off-by: Matt Siwiec <rizzza@users.noreply.github.com>
fishnix
fishnix previously approved these changes Mar 30, 2023
Copy link
Contributor

@fishnix fishnix left a comment

Choose a reason for hiding this comment

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

Just a few minor things - this looks good to me overall! 🎉

@@ -0,0 +1,114 @@
package lbapi
Copy link
Contributor

Choose a reason for hiding this comment

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

this should (eventually) live in the lbapi codebase

internal/lbapi/client.go Show resolved Hide resolved
internal/lbapi/client.go Show resolved Hide resolved
internal/lbapi/client.go Show resolved Hide resolved
internal/lbapi/types.go Outdated Show resolved Hide resolved
internal/pkg/manager.go Outdated Show resolved Hide resolved
internal/pkg/manager.go Outdated Show resolved Hide resolved
Co-authored-by: E Camden Fisher <fish@fishnix.net>
Signed-off-by: Matt Siwiec <rizzza@users.noreply.github.com>
Signed-off-by: Matt Siwiec <rizzza@users.noreply.github.com>
Signed-off-by: Matt Siwiec <rizzza@users.noreply.github.com>
  * lbapi client will eventually move to load-balancer-api

Signed-off-by: Matt Siwiec <rizzza@users.noreply.github.com>
Copy link
Contributor

@tylerauerbeck tylerauerbeck left a comment

Choose a reason for hiding this comment

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

🚀

@rizzza rizzza merged commit f699f71 into infratographer:main Mar 31, 2023
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.

4 participants