Linkerd viz have hardcoded image value in namespace metadata.yml template (#9481)

* linkerd-viz have hardcoded image value in namespace-metadata.yml template bug correction

Signed-off-by: BOSSER, Bastien <bastien.bosser@atos.net>
This commit is contained in:
bastienbosser 2022-10-12 14:40:15 +02:00 committed by GitHub
parent 4fa4244ed6
commit fa1a80f9f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 62 additions and 5 deletions

View File

@ -89,6 +89,7 @@ Kubernetes: `>=1.21.0-0`
| collector.tolerations | string | `nil` | Tolerations section, See the [K8S documentation](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) for more information | | collector.tolerations | string | `nil` | Tolerations section, See the [K8S documentation](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) for more information |
| defaultUID | int | `2103` | Default UID for all the jaeger components | | defaultUID | int | `2103` | Default UID for all the jaeger components |
| enablePSP | bool | `false` | Create Roles and RoleBindings to associate this extension's ServiceAccounts to the control plane PSP resource. This requires that `enabledPSP` is set to true on the control plane install. Note PSP has been deprecated since k8s v1.21 | | enablePSP | bool | `false` | Create Roles and RoleBindings to associate this extension's ServiceAccounts to the control plane PSP resource. This requires that `enabledPSP` is set to true on the control plane install. Note PSP has been deprecated since k8s v1.21 |
| imagePullPolicy | string | `"IfNotPresent"` | Docker imagePullPolicy for all jaeger components |
| imagePullSecrets | list | `[]` | For Private docker registries, authentication is needed. Registry secrets are applied to the respective service accounts | | imagePullSecrets | list | `[]` | For Private docker registries, authentication is needed. Registry secrets are applied to the respective service accounts |
| jaeger.UID | string | `nil` | UID for the jaeger resource | | jaeger.UID | string | `nil` | UID for the jaeger resource |
| jaeger.args | list | `["--query.base-path=/jaeger"]` | CLI arguments for Jaeger, See [Jaeger AIO Memory CLI reference](https://www.jaegertracing.io/docs/1.24/cli/#jaeger-all-in-one-memory) | | jaeger.args | list | `["--query.base-path=/jaeger"]` | CLI arguments for Jaeger, See [Jaeger AIO Memory CLI reference](https://www.jaegertracing.io/docs/1.24/cli/#jaeger-all-in-one-memory) |
@ -106,6 +107,10 @@ Kubernetes: `>=1.21.0-0`
| jaeger.tolerations | string | `nil` | Tolerations section, See the [K8S documentation](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) for more information | | jaeger.tolerations | string | `nil` | Tolerations section, See the [K8S documentation](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) for more information |
| linkerdNamespace | string | `"linkerd"` | Namespace of the Linkerd core control-plane install | | linkerdNamespace | string | `"linkerd"` | Namespace of the Linkerd core control-plane install |
| linkerdVersion | string | `"linkerdVersionValue"` | | | linkerdVersion | string | `"linkerdVersionValue"` | |
| namespaceMetadata.image.name | string | `"curl"` | Docker image name for the namespace-metadata instance |
| namespaceMetadata.image.pullPolicy | string | imagePullPolicy | Pull policy for the namespace-metadata instance |
| namespaceMetadata.image.registry | string | `"curlimages"` | Docker registry for the namespace-metadata instance |
| namespaceMetadata.image.tag | string | `"7.78.0"` | Docker image tag for the namespace-metadata instance |
| nodeSelector | object | `{"kubernetes.io/os":"linux"}` | Default nodeSelector section, See the [K8S documentation](https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector) for more information | | nodeSelector | object | `{"kubernetes.io/os":"linux"}` | Default nodeSelector section, See the [K8S documentation](https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector) for more information |
| tolerations | string | `nil` | Default tolerations section, See the [K8S documentation](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) for more information | | tolerations | string | `nil` | Default tolerations section, See the [K8S documentation](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) for more information |
| webhook.UID | string | `nil` | UID for the webhook resource | | webhook.UID | string | `nil` | UID for the webhook resource |

View File

@ -26,7 +26,8 @@ spec:
serviceAccountName: namespace-metadata serviceAccountName: namespace-metadata
containers: containers:
- name: namespace-metadata - name: namespace-metadata
image: curlimages/curl:7.78.0 image: {{.Values.namespaceMetadata.image.registry}}/{{.Values.namespaceMetadata.image.name}}:{{.Values.namespaceMetadata.image.tag}}
imagePullPolicy: {{.Values.namespaceMetadata.image.pullPolicy | default .Values.imagePullPolicy}}
command: ["/bin/sh"] command: ["/bin/sh"]
securityContext: securityContext:
runAsUser: {{.Values.defaultUID}} runAsUser: {{.Values.defaultUID}}

View File

@ -1,6 +1,9 @@
# -- Namespace of the Linkerd core control-plane install # -- Namespace of the Linkerd core control-plane install
linkerdNamespace: linkerd linkerdNamespace: linkerd
# -- Docker imagePullPolicy for all jaeger components
imagePullPolicy: IfNotPresent
# -- Default nodeSelector section, See the # -- Default nodeSelector section, See the
# [K8S documentation](https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector) for more information # [K8S documentation](https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector) for more information
nodeSelector: &default_node_selector nodeSelector: &default_node_selector
@ -140,6 +143,18 @@ jaeger:
linkerdVersion: &linkerd_version linkerdVersionValue linkerdVersion: &linkerd_version linkerdVersionValue
namespaceMetadata:
image:
# -- Docker registry for the namespace-metadata instance
registry: curlimages
# -- Docker image name for the namespace-metadata instance
name: curl
# -- Docker image tag for the namespace-metadata instance
tag: 7.78.0
# -- Pull policy for the namespace-metadata instance
# @default -- imagePullPolicy
pullPolicy: ""
webhook: webhook:
# -- Do not create a secret resource for the webhook. # -- Do not create a secret resource for the webhook.
# If this is set to `true`, the value `webhook.caBundle` must be set # If this is set to `true`, the value `webhook.caBundle` must be set

View File

@ -85,8 +85,13 @@ Kubernetes: `>=1.21.0-0`
| gateway.serviceAnnotations | object | `{}` | Annotations to add to the gateway service | | gateway.serviceAnnotations | object | `{}` | Annotations to add to the gateway service |
| gateway.serviceType | string | `"LoadBalancer"` | Service Type of gateway Service | | gateway.serviceType | string | `"LoadBalancer"` | Service Type of gateway Service |
| identityTrustDomain | string | `"cluster.local"` | Identity Trust Domain of the certificate authority | | identityTrustDomain | string | `"cluster.local"` | Identity Trust Domain of the certificate authority |
| imagePullPolicy | string | `"IfNotPresent"` | Docker imagePullPolicy for all multicluster components |
| linkerdNamespace | string | `"linkerd"` | Namespace of linkerd installation | | linkerdNamespace | string | `"linkerd"` | Namespace of linkerd installation |
| linkerdVersion | string | `"linkerdVersionValue"` | Control plane version | | linkerdVersion | string | `"linkerdVersionValue"` | Control plane version |
| namespaceMetadata.image.name | string | `"curl"` | Docker image name for the namespace-metadata instance |
| namespaceMetadata.image.pullPolicy | string | imagePullPolicy | Pull policy for the namespace-metadata instance |
| namespaceMetadata.image.registry | string | `"curlimages"` | Docker registry for the namespace-metadata instance |
| namespaceMetadata.image.tag | string | `"7.78.0"` | Docker image tag for the namespace-metadata instance |
| proxyOutboundPort | int | `4140` | The port on which the proxy accepts outbound traffic | | proxyOutboundPort | int | `4140` | The port on which the proxy accepts outbound traffic |
| remoteMirrorServiceAccount | bool | `true` | If the remote mirror service account should be installed | | remoteMirrorServiceAccount | bool | `true` | If the remote mirror service account should be installed |
| remoteMirrorServiceAccountName | string | `"linkerd-service-mirror-remote-access-default"` | The name of the service account used to allow remote clusters to mirror local services | | remoteMirrorServiceAccountName | string | `"linkerd-service-mirror-remote-access-default"` | The name of the service account used to allow remote clusters to mirror local services |

View File

@ -26,7 +26,8 @@ spec:
serviceAccountName: namespace-metadata serviceAccountName: namespace-metadata
containers: containers:
- name: namespace-metadata - name: namespace-metadata
image: curlimages/curl:7.78.0 image: {{.Values.namespaceMetadata.image.registry}}/{{.Values.namespaceMetadata.image.name}}:{{.Values.namespaceMetadata.image.tag}}
imagePullPolicy: {{.Values.namespaceMetadata.image.pullPolicy | default .Values.imagePullPolicy}}
command: ["/bin/sh"] command: ["/bin/sh"]
securityContext: securityContext:
runAsUser: {{.Values.gateway.UID}} runAsUser: {{.Values.gateway.UID}}

View File

@ -34,6 +34,8 @@ gateway:
# -- Control plane version # -- Control plane version
linkerdVersion: linkerdVersionValue linkerdVersion: linkerdVersionValue
# -- Docker imagePullPolicy for all multicluster components
imagePullPolicy: IfNotPresent
# -- The port on which the proxy accepts outbound traffic # -- The port on which the proxy accepts outbound traffic
proxyOutboundPort: 4140 proxyOutboundPort: 4140
# -- If the remote mirror service account should be installed # -- If the remote mirror service account should be installed
@ -46,6 +48,18 @@ linkerdNamespace: linkerd
# -- Identity Trust Domain of the certificate authority # -- Identity Trust Domain of the certificate authority
identityTrustDomain: cluster.local identityTrustDomain: cluster.local
namespaceMetadata:
image:
# -- Docker registry for the namespace-metadata instance
registry: curlimages
# -- Docker image name for the namespace-metadata instance
name: curl
# -- Docker image tag for the namespace-metadata instance
tag: 7.78.0
# -- Pull policy for the namespace-metadata instance
# @default -- imagePullPolicy
pullPolicy: ""
# -- Create Roles and RoleBindings to associate this extension's # -- Create Roles and RoleBindings to associate this extension's
# ServiceAccounts to the control plane PSP resource. This requires that # ServiceAccounts to the control plane PSP resource. This requires that
# `enabledPSP` is set to true on the control plane install. Note PSP has been # `enabledPSP` is set to true on the control plane install. Note PSP has been
@ -60,4 +74,4 @@ enablePodAntiAffinity: false
# -- NodeAffinity section, See the # -- NodeAffinity section, See the
# [K8S documentation](https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity) # [K8S documentation](https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity)
# for more information # for more information
# nodeAffinity: # nodeAffinity:

View File

@ -120,6 +120,10 @@ Kubernetes: `>=1.21.0-0`
| metricsAPI.resources.memory.limit | string | `nil` | Maximum amount of memory that metrics-api container can use | | metricsAPI.resources.memory.limit | string | `nil` | Maximum amount of memory that metrics-api container can use |
| metricsAPI.resources.memory.request | string | `nil` | Amount of memory that the metrics-api container requests | | metricsAPI.resources.memory.request | string | `nil` | Amount of memory that the metrics-api container requests |
| metricsAPI.tolerations | string | `nil` | Tolerations section, See the [K8S documentation](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) for more information | | metricsAPI.tolerations | string | `nil` | Tolerations section, See the [K8S documentation](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) for more information |
| namespaceMetadata.image.name | string | `"curl"` | Docker image name for the namespace-metadata instance |
| namespaceMetadata.image.pullPolicy | string | defaultImagePullPolicy | Pull policy for the namespace-metadata instance |
| namespaceMetadata.image.registry | string | `"curlimages"` | Docker registry for the namespace-metadata instance |
| namespaceMetadata.image.tag | string | `"7.78.0"` | Docker image tag for the namespace-metadata instance |
| nodeSelector | object | `{"kubernetes.io/os":"linux"}` | Default nodeSelector section, See the [K8S documentation](https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector) for more information | | nodeSelector | object | `{"kubernetes.io/os":"linux"}` | Default nodeSelector section, See the [K8S documentation](https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector) for more information |
| prometheus.alertRelabelConfigs | string | `nil` | Alert relabeling is applied to alerts before they are sent to the Alertmanager. | | prometheus.alertRelabelConfigs | string | `nil` | Alert relabeling is applied to alerts before they are sent to the Alertmanager. |
| prometheus.alertmanagers | string | `nil` | Alertmanager instances the Prometheus server sends alerts to configured via the static_configs parameter. | | prometheus.alertmanagers | string | `nil` | Alertmanager instances the Prometheus server sends alerts to configured via the static_configs parameter. |

View File

@ -26,8 +26,8 @@ spec:
serviceAccountName: namespace-metadata serviceAccountName: namespace-metadata
containers: containers:
- name: namespace-metadata - name: namespace-metadata
image: curlimages/curl:7.78.0 image: {{.Values.namespaceMetadata.image.registry}}/{{.Values.namespaceMetadata.image.name}}:{{.Values.namespaceMetadata.image.tag}}
imagePullPolicy: {{.Values.defaultImagePullPolicy}} imagePullPolicy: {{.Values.namespaceMetadata.image.pullPolicy | default .Values.defaultImagePullPolicy}}
command: ["/bin/sh"] command: ["/bin/sh"]
securityContext: securityContext:
runAsUser: {{.Values.defaultUID}} runAsUser: {{.Values.defaultUID}}

View File

@ -348,6 +348,18 @@ dashboard:
# into the dashboard component # into the dashboard component
# resources: # resources:
namespaceMetadata:
image:
# -- Docker registry for the namespace-metadata instance
registry: curlimages
# -- Docker image name for the namespace-metadata instance
name: curl
# -- Docker image tag for the namespace-metadata instance
tag: 7.78.0
# -- Pull policy for the namespace-metadata instance
# @default -- defaultImagePullPolicy
pullPolicy: ""
grafana: grafana:
# -- url of an in-cluster Grafana instance with reverse proxy configured, used by the # -- url of an in-cluster Grafana instance with reverse proxy configured, used by the
# Linkerd viz web dashboard to provide direct links to specific Grafana # Linkerd viz web dashboard to provide direct links to specific Grafana