Add the 'tapInjector.logLevel' value. (#5713)

Fixes #5686

Test:
```bash
$ linkerd viz install --set tapInjector.logLevel=debug | k apply -f -

// and then when creating a pod we can see debug log entries such as:

time="2021-02-10T16:19:28Z" level=debug msg="admission request: &AdmissionRequest{UID:c5e95e8d-...
```
This commit is contained in:
Alejandro Pedraza 2021-02-11 09:21:41 -05:00 committed by GitHub
parent e887cc79ea
commit a14f3f4eec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 8 additions and 0 deletions

View File

@ -164,6 +164,7 @@ Kubernetes: `>=1.13.0-0`
| tapInjector.image.registry | string | `"ghcr.io/linkerd"` | Docker registry for the tapInjector instance | | tapInjector.image.registry | string | `"ghcr.io/linkerd"` | Docker registry for the tapInjector instance |
| tapInjector.image.tag | string | `"linkerdVersionValue"` | Docker image tag for the tapInjector instance | | tapInjector.image.tag | string | `"linkerdVersionValue"` | Docker image tag for the tapInjector instance |
| tapInjector.keyPEM | string | `""` | Certificate key for the tapInjector. If not provided then Helm will generate one. | | tapInjector.keyPEM | string | `""` | Certificate key for the tapInjector. If not provided then Helm will generate one. |
| tapInjector.logLevel | string | defaultLogLevel | log level of the tapInjector |
| tapInjector.namespaceSelector | string | `nil` | | | tapInjector.namespaceSelector | string | `nil` | |
| tapInjector.objectSelector | string | `nil` | | | tapInjector.objectSelector | string | `nil` | |
| tapInjector.proxy | string | `nil` | | | tapInjector.proxy | string | `nil` | |

View File

@ -71,6 +71,7 @@ spec:
- args: - args:
- injector - injector
- -tap-service-name=linkerd-tap.{{.Values.namespace}}.serviceaccount.identity.$(_l5d_ns).$(_l5d_trustdomain) - -tap-service-name=linkerd-tap.{{.Values.namespace}}.serviceaccount.identity.$(_l5d_ns).$(_l5d_trustdomain)
- -log-level={{.Values.tapInjector.logLevel | default .Values.defaultLogLevel}}
image: {{.Values.tapInjector.image.registry}}/{{.Values.tapInjector.image.name}}:{{.Values.tapInjector.image.tag}} image: {{.Values.tapInjector.image.registry}}/{{.Values.tapInjector.image.name}}:{{.Values.tapInjector.image.tag}}
imagePullPolicy: {{.Values.tapInjector.image.pullPolicy}} imagePullPolicy: {{.Values.tapInjector.image.pullPolicy}}
livenessProbe: livenessProbe:

View File

@ -145,6 +145,9 @@ tap:
tapInjector: tapInjector:
# -- Number of replicas of tapInjector # -- Number of replicas of tapInjector
replicas: 1 replicas: 1
# -- log level of the tapInjector
# @default -- defaultLogLevel
logLevel: ""
image: image:
# -- Docker registry for the tapInjector instance # -- Docker registry for the tapInjector instance
registry: *registry registry: *registry

View File

@ -1094,6 +1094,7 @@ spec:
- args: - args:
- injector - injector
- -tap-service-name=linkerd-tap.linkerd-viz.serviceaccount.identity.$(_l5d_ns).$(_l5d_trustdomain) - -tap-service-name=linkerd-tap.linkerd-viz.serviceaccount.identity.$(_l5d_ns).$(_l5d_trustdomain)
- -log-level=info
image: ghcr.io/linkerd/tap:dev-undefined image: ghcr.io/linkerd/tap:dev-undefined
imagePullPolicy: imagePullPolicy:
livenessProbe: livenessProbe:

View File

@ -803,6 +803,7 @@ spec:
- args: - args:
- injector - injector
- -tap-service-name=linkerd-tap.linkerd-viz.serviceaccount.identity.$(_l5d_ns).$(_l5d_trustdomain) - -tap-service-name=linkerd-tap.linkerd-viz.serviceaccount.identity.$(_l5d_ns).$(_l5d_trustdomain)
- -log-level=info
image: ghcr.io/linkerd/tap:dev-undefined image: ghcr.io/linkerd/tap:dev-undefined
imagePullPolicy: imagePullPolicy:
livenessProbe: livenessProbe:

View File

@ -1106,6 +1106,7 @@ spec:
- args: - args:
- injector - injector
- -tap-service-name=linkerd-tap.linkerd-viz.serviceaccount.identity.$(_l5d_ns).$(_l5d_trustdomain) - -tap-service-name=linkerd-tap.linkerd-viz.serviceaccount.identity.$(_l5d_ns).$(_l5d_trustdomain)
- -log-level=info
image: ghcr.io/linkerd/tap:dev-undefined image: ghcr.io/linkerd/tap:dev-undefined
imagePullPolicy: imagePullPolicy:
livenessProbe: livenessProbe: