Skip to content

Commit

Permalink
Create mesh webhook to support v2 resources (#2930)
Browse files Browse the repository at this point in the history
* mesh webhook v2
  • Loading branch information
thisisnotashwin authored Sep 12, 2023
1 parent e20ff98 commit c73605e
Show file tree
Hide file tree
Showing 19 changed files with 7,071 additions and 10 deletions.
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

0 comments on commit c73605e

Please sign in to comment.