-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
feat!: Add config to disable proxy /shutdown admin endpoint #12705
Conversation
Signed-off-by: Alex Leong <[email protected]>
charts/linkerd2-cni/README.md
Outdated
@@ -25,7 +25,7 @@ Kubernetes: `>=1.22.0-0` | |||
| commonLabels | object | `{}` | Labels to apply to all resources | | |||
| destCNIBinDir | string | `"/opt/cni/bin"` | Directory on the host where the CNI configuration will be placed | | |||
| destCNINetDir | string | `"/etc/cni/net.d"` | Directory on the host where the CNI plugin binaries reside | | |||
| disableIPv6 | bool | `false` | Disables adding IPv6 rules on top of IPv4 rules | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
intentional? looks like you need a rebase
pkg/k8s/labels.go
Outdated
@@ -209,6 +209,10 @@ const ( | |||
// ProxyGIDAnnotation can be used to override the GID config. | |||
ProxyGIDAnnotation = ProxyConfigAnnotationsPrefix + "/proxy-gid" | |||
|
|||
// ProxyEnableShutdownEndpointAnnotation can be used to override the | |||
// LINKERD2_PROXY_SHUTDOWN_ENDPOINT_ENABLED config. | |||
ProxyEnableShutdownEndpointAnnotation = ProxyConfigAnnotationsPrefix + "/enable-shutdown-endpoint" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As discussed, I think we probably ought to use something like
ProxyEnableShutdownEndpointAnnotation = ProxyConfigAnnotationsPrefix + "/enable-shutdown-endpoint" | |
ProxyEnableShutdownEndpointAnnotation = ProxyConfigAnnotationsPrefix + "/proxy-admin-shutdown" |
with a value of 'enabled'.
true
causes YAML weirdness, since the value must be explicitly quoted to avoid type errors in annotations.enabled
is properly handled a string value without quotes.- Consistent proxy- prefixes sort together and help express scoping/grouping.
Signed-off-by: Alex Leong <[email protected]>
Why isn't this documented as a breaking change in the release notes, since we've changed a default value here? |
@KenVanGrinsven Ouch, thanks for pointing that out! I've edited the release notes to cover that, and will be updating the docs shortly. Sorry for the misstep, and thanks for pointing it out! |
We add a
proxy.enableShutdownEndpoint
Helm value and correspondingconfig.linkerd.io/enableShutdownEndpoint
workload annotation for configuring the proxy's/shutdown
admin endpoint. These configs work by setting theLINKERD2_PROXY_SHUTDOWN_ENDPOINT_ENABLED
env var on the proxy.Depends on linkerd/linkerd2-proxy#3014