Clarification for collectorSvcAccount and collectorSvcAddr in jaeger's values.yaml (#5366)

Moved the `collectorSvcAccount` and `collectorSvcAddr` values in
`values.yaml` under the `webhook` section, given it's the injector that
will make use of that, and to not confuse with the SA and address for
the collector that is provided by default (the injector could point to a
different collector than that one).
This commit is contained in:
Alejandro Pedraza 2020-12-11 08:55:20 -05:00 committed by GitHub
parent c19cfd71a1
commit 7ddef6dbeb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 27 additions and 24 deletions

View File

@ -19,14 +19,14 @@ A Helm chart for the jaeger add-on in Linkerd
| collector.image.name | string | `"omnition/opencensus-collector"` | | | collector.image.name | string | `"omnition/opencensus-collector"` | |
| collector.image.pullPolicy | string | `"Always"` | | | collector.image.pullPolicy | string | `"Always"` | |
| collector.image.version | string | `"0.1.11"` | | | collector.image.version | string | `"0.1.11"` | |
| collectorSvcAccount | string | `"collector"` | |
| collectorSvcAddr | string | `"collector.linkerd-jaeger:55678"` | |
| jaeger.image.name | string | `"jaegertracing/all-in-one"` | | | jaeger.image.name | string | `"jaegertracing/all-in-one"` | |
| jaeger.image.pullPolicy | string | `"Always"` | | | jaeger.image.pullPolicy | string | `"Always"` | |
| jaeger.image.version | string | `"1.19.2"` | | | jaeger.image.version | string | `"1.19.2"` | |
| linkerdVersion | string | `"linkerdVersionValue"` | | | linkerdVersion | string | `"linkerdVersionValue"` | |
| namespace | string | `"linkerd-jaeger"` | | | namespace | string | `"linkerd-jaeger"` | |
| webhook.caBundle | string | `""` | if empty, Helm will auto-generate this field, unless externalSecret is set to true. | | webhook.caBundle | string | `""` | if empty, Helm will auto-generate this field, unless externalSecret is set to true. |
| webhook.collectorSvcAccount | string | `"collector"` | service account associated with the collector instance |
| webhook.collectorSvcAddr | string | `"collector.linkerd-jaeger:55678"` | collector service address for the proxies to send trace data. Points by default to the the linkerd-jaeger collector |
| webhook.crtPEM | string | `""` | if empty, Helm will auto-generate these fields | | webhook.crtPEM | string | `""` | if empty, Helm will auto-generate these fields |
| webhook.externalSecret | bool | `false` | | | webhook.externalSecret | bool | `false` | |
| webhook.failurePolicy | string | `"Ignore"` | | | webhook.failurePolicy | string | `"Ignore"` | |

View File

@ -26,8 +26,8 @@ spec:
spec: spec:
containers: containers:
- args: - args:
- -collector-svc-addr={{.Values.collectorSvcAddr}} - -collector-svc-addr={{.Values.webhook.collectorSvcAddr}}
- -collector-svc-account={{.Values.collectorSvcAccount}} - -collector-svc-account={{.Values.webhook.collectorSvcAccount}}
- -log-level={{.Values.webhook.logLevel}} - -log-level={{.Values.webhook.logLevel}}
image: {{.Values.webhook.image.name}}:{{default .Values.webhook.image.version .Values.cliVersion}} image: {{.Values.webhook.image.name}}:{{default .Values.webhook.image.version .Values.cliVersion}}
imagePullPolicy: {{.Values.webhook.image.pullPolicy}} imagePullPolicy: {{.Values.webhook.image.pullPolicy}}

View File

@ -9,9 +9,6 @@ collector:
pullPolicy: Always pullPolicy: Always
# resources: # resources:
collectorSvcAddr: collector.linkerd-jaeger:55678
collectorSvcAccount: collector
jaeger: jaeger:
image: image:
name: jaegertracing/all-in-one name: jaegertracing/all-in-one
@ -30,6 +27,12 @@ webhook:
# -- if empty, Helm will auto-generate this field, unless externalSecret is set to true. # -- if empty, Helm will auto-generate this field, unless externalSecret is set to true.
caBundle: | caBundle: |
# -- collector service address for the proxies to send trace data.
# Points by default to the the linkerd-jaeger collector
collectorSvcAddr: collector.linkerd-jaeger:55678
# -- service account associated with the collector instance
collectorSvcAccount: collector
failurePolicy: Ignore failurePolicy: Ignore
image: image:
name: ghcr.io/linkerd/jaeger-webhook name: ghcr.io/linkerd/jaeger-webhook

View File

@ -15,14 +15,12 @@ import (
// Values represents the values of jaeger template // Values represents the values of jaeger template
type Values struct { type Values struct {
Namespace string `json:"namespace"` Namespace string `json:"namespace"`
CliVersion string `json:"cliVersion"` CliVersion string `json:"cliVersion"`
Collector collector `json:"collector"` Collector collector `json:"collector"`
CollectorSvcAddr string `json:"collectorSvcAddr"` Jaeger jaeger `json:"jaeger"`
CollectorSvcAccount string `json:"collectorSvcAccount"` LinkerdVersion string `json:"linkerdVersion"`
Jaeger jaeger `json:"jaeger"` Webhook webhook `json:"webhook"`
LinkerdVersion string `json:"linkerdVersion"`
Webhook webhook `json:"webhook"`
} }
type collector struct { type collector struct {
@ -36,15 +34,17 @@ type jaeger struct {
} }
type webhook struct { type webhook struct {
ExternalSecret bool `json:"externalSecret"` ExternalSecret bool `json:"externalSecret"`
CrtPEM string `json:"crtPEM"` CrtPEM string `json:"crtPEM"`
KeyPEM string `json:"keyPEM"` KeyPEM string `json:"keyPEM"`
CaBundle string `json:"caBundle"` CaBundle string `json:"caBundle"`
FailurePolicy string `json:"failurePolicy"` CollectorSvcAddr string `json:"collectorSvcAddr"`
Image l5dcharts.Image `json:"image"` CollectorSvcAccount string `json:"collectorSvcAccount"`
LogLevel string `json:"logLevel"` FailurePolicy string `json:"failurePolicy"`
NamespaceSelector *metav1.LabelSelector `json:"namespaceSelector"` Image l5dcharts.Image `json:"image"`
ObjectSelector *metav1.LabelSelector `json:"objectSelector"` LogLevel string `json:"logLevel"`
NamespaceSelector *metav1.LabelSelector `json:"namespaceSelector"`
ObjectSelector *metav1.LabelSelector `json:"objectSelector"`
} }
// NewValues returns a new instance of the Values type. // NewValues returns a new instance of the Values type.