Skip to content

Commit e0d73d1

Browse files
Remove debugging transport and enable e2e log-level
Because venafi-connection-lib 0.5.1 includes the debugging roundtripper as part of the default client. Added debug logging to the ark-test-e2e so that I can see the debug logging still working. - Remove debug roundtripper from agent HTTP client - Drop import of k8s.io/client-go/transport - Enable verbose logging in e2e helm chart (set --log-level=6) Signed-off-by: Richard Wall <[email protected]>
1 parent 434f5a1 commit e0d73d1

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

hack/ark/test-e2e.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ helm upgrade agent "oci://${ARK_CHART}@${ARK_CHART_DIGEST}" \
7171
--wait \
7272
--create-namespace \
7373
--namespace "$NAMESPACE" \
74+
--set-json extraArgs='["--log-level=6"]' \
7475
--set pprof.enabled=true \
7576
--set fullnameOverride=disco-agent \
7677
--set "image.digest=${ARK_IMAGE_DIGEST}" \

pkg/agent/config.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import (
1515
"github.com/spf13/cobra"
1616
"gopkg.in/yaml.v3"
1717
"k8s.io/client-go/rest"
18-
"k8s.io/client-go/transport"
1918

2019
"github.com/jetstack/preflight/api"
2120
"github.com/jetstack/preflight/pkg/client"
@@ -815,7 +814,6 @@ func validateCredsAndCreateClient(log logr.Logger, flagCredentialsPath, flagClie
815814
rootCAs *x509.CertPool
816815
)
817816
httpClient := http_client.NewDefaultClient(version.UserAgent(), rootCAs)
818-
httpClient.Transport = transport.NewDebuggingRoundTripper(httpClient.Transport, transport.DebugByContext)
819817
outputClient, err = client.NewCyberArk(httpClient)
820818
if err != nil {
821819
errs = multierror.Append(errs, err)

0 commit comments

Comments
 (0)