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

[DNM] k8s gateway cluster names #10403

Open
wants to merge 23 commits into
base: main
Choose a base branch
from
Open

[DNM] k8s gateway cluster names #10403

wants to merge 23 commits into from

Conversation

jenshu
Copy link

@jenshu jenshu commented Nov 25, 2024

Description

TODO:

  • fix existing broken tests
  • add new kubernetes/e2e tests

API changes

Code changes

CI changes

Docs changes

Context

Interesting decisions

Testing steps

Notes for reviewers

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works

@@ -68,10 +66,6 @@ type translatorInstance struct {
shouldEnforceNamespaceMatch bool
}

func NewDefaultTranslator(settings *v1.Settings, pluginRegistry plugins.PluginRegistry) *translatorInstance {
Copy link
Author

Choose a reason for hiding this comment

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

i guess this wasn't used anywhere

@jenshu jenshu marked this pull request as ready for review November 25, 2024 19:30
@solo-changelog-bot
Copy link

Issues linked to changelog:
https://github.com/solo-io/solo-projects/issues/7105

Copy link

github-actions bot commented Nov 25, 2024

Visit the preview URL for this PR (updated for commit ba951c4):

https://gloo-edge--pr10403-kubegateway-clustern-c73iax59.web.app

(expires Thu, 05 Dec 2024 19:52:08 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 77c2b86e287749579b7ff9cadb81e099042ef677

}

// Don't use dots in the name as it messes up prometheus stats
return fmt.Sprintf("%s_%s", ref.GetName(), ref.GetNamespace())

Choose a reason for hiding this comment

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

Is there a limit on the max length? IIRC grafana has something around 128 chars which might be similar for promethus

Choose a reason for hiding this comment

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

Not sure which Grafana limit you have in mind (it's just the visualization layer backed by a regular database), but in Prometheus one can specify limits to label name/values in bytes. These are all 0 by default.

While no one is a big fan of long metric/label names, Envoy is doing a pretty terrible job on this front already and we aren't really making that worse.

@@ -30,7 +54,7 @@ var _ = Describe("Plugin", func() {
},
}
out := &envoy_config_route_v3.Route{}
err := p.ProcessRoute(plugins.RouteParams{}, in, out)

Choose a reason for hiding this comment

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

Would we need to test an empty RouteParams ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants