Skip to content

Commit

Permalink
mesh webhook v2
Browse files Browse the repository at this point in the history
  • Loading branch information
thisisnotashwin committed Sep 8, 2023
1 parent c6b703d commit 843045b
Show file tree
Hide file tree
Showing 19 changed files with 7,214 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ package constants
const (
// KeyInjectStatus is the key of the annotation that is added to
// a pod after an injection is done.
KeyInjectStatus = "consul.hashicorp.com/connect-inject-status"
KeyInjectStatus = "consul.hashicorp.com/connect-inject-status"
KeyInjectStatusV2 = "consul.hashicorp.com/mesh-inject-status"

// KeyTransparentProxyStatus is the key of the annotation that is added to
// a pod when transparent proxy is done.
Expand All @@ -21,7 +22,8 @@ const (
// AnnotationInject is the key of the annotation that controls whether
// injection is explicitly enabled or disabled for a pod. This should
// be set to a truthy or falsy value, as parseable by strconv.ParseBool.
AnnotationInject = "consul.hashicorp.com/connect-inject"
AnnotationInject = "consul.hashicorp.com/connect-inject"
AnnotationInjectV2 = "consul.hashicorp.com/mesh-inject"

// AnnotationGatewayKind is the key of the annotation that indicates pods
// that represent Consul Connect Gateways. This should be set to a
Expand Down Expand Up @@ -78,7 +80,8 @@ const (
// 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.
AnnotationUpstreams = "consul.hashicorp.com/connect-service-upstreams"
AnnotationUpstreams = "consul.hashicorp.com/connect-service-upstreams"
AnnotationUpstreamsV2 = "consul.hashicorp.com/mesh-service-destinations"

// AnnotationTags is a list of tags to register with the service
// this is specified as a comma separated list e.g. abc,123.
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 843045b

Please sign in to comment.