-
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
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Signed-off-by: Alex Leong <alex@buoyant.io>
olix0r
requested changes
Jun 14, 2024
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
olix0r
reviewed
Jun 14, 2024
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
Suggested change
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 <alex@buoyant.io>
olix0r
approved these changes
Jun 14, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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