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

Create mesh webhook to support v2 resources #2930

Merged
merged 2 commits into from
Sep 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,12 @@ const (
// ManagedByPodValue is used in Consul metadata to identify the manager
// of resources.
ManagedByPodValue = "consul-k8s-pod-controller"

// AnnotationMeshDestinations is a list of upstreams to register with the
// proxy. The service name should map to a Consul service namd and the local
// port is the local port in the pod that the listener will bind to. It can
// be a named port.
AnnotationMeshDestinations = "consul.hashicorp.com/mesh-service-destinations"
)

// Annotations used by Prometheus.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ import (
"fmt"
"strconv"

corev1 "k8s.io/api/core/v1"

"github.com/hashicorp/consul-k8s/control-plane/connect-inject/common"
"github.com/hashicorp/consul-k8s/control-plane/connect-inject/constants"
corev1 "k8s.io/api/core/v1"
)

// Config represents configuration common to connect-inject components related to metrics.
Expand Down
Loading