Skip to content

Commit

Permalink
Update proxyclient/client.go
Browse files Browse the repository at this point in the history
Co-authored-by: Tom Lebreux <[email protected]>
  • Loading branch information
gehrkefc and tomleb authored Feb 14, 2025
1 parent 1426b34 commit 31fb7d2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions proxyclient/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,7 @@ func (c *ProxyClient) buildDialer(ctx context.Context, restConfig *rest.Config)
}

secretController := core.Core().V1().Secret()
secretController.Informer().AddEventHandler(
cache.ResourceEventHandlerFuncs{
UpdateFunc: func(oldSecret, newSecret interface{}) {
secretController.OnChange(ctx, "remotedialer-proxy", func(_ string, secret *corev1.Secret) (*corev1.Secret, error) {
updatedSecretCert, ok := newSecret.(*corev1.Secret)
if ok {
if updatedSecretCert.Name == c.certSecretName {
Expand Down

0 comments on commit 31fb7d2

Please sign in to comment.