implement code review
This commit is contained in:
parent
fb35d87aa9
commit
759c91f8eb
7 changed files with 20 additions and 19 deletions
|
@ -8,4 +8,6 @@ controller:
|
||||||
extraModules:
|
extraModules:
|
||||||
- name: opentelemetry
|
- name: opentelemetry
|
||||||
image:
|
image:
|
||||||
|
registry: registry.k8s.io
|
||||||
image: busybox
|
image: busybox
|
||||||
|
tag: latest
|
||||||
|
|
|
@ -10,4 +10,6 @@ controller:
|
||||||
extraModules:
|
extraModules:
|
||||||
- name: opentelemetry
|
- name: opentelemetry
|
||||||
image:
|
image:
|
||||||
|
registry: registry.k8s.io
|
||||||
image: busybox
|
image: busybox
|
||||||
|
tag: latest
|
||||||
|
|
|
@ -8,6 +8,8 @@ controller:
|
||||||
extraModules:
|
extraModules:
|
||||||
- name: opentelemetry
|
- name: opentelemetry
|
||||||
image:
|
image:
|
||||||
|
registry: registry.k8s.io
|
||||||
image: busybox
|
image: busybox
|
||||||
|
tag: latest
|
||||||
containerSecurityContext:
|
containerSecurityContext:
|
||||||
allowPrivilegeEscalation: false
|
allowPrivilegeEscalation: false
|
||||||
|
|
|
@ -8,4 +8,6 @@ controller:
|
||||||
extraModules:
|
extraModules:
|
||||||
- name: opentelemetry
|
- name: opentelemetry
|
||||||
image:
|
image:
|
||||||
|
registry: registry.k8s.io
|
||||||
image: busybox
|
image: busybox
|
||||||
|
tag: latest
|
||||||
|
|
|
@ -2,6 +2,3 @@ controller:
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
opentelemetry:
|
opentelemetry:
|
||||||
enabled: true
|
enabled: true
|
||||||
image:
|
|
||||||
registry: registry.k8s.io
|
|
||||||
image: ingress-nginx/opentelemetry
|
|
||||||
|
|
|
@ -257,15 +257,17 @@ Extra modules.
|
||||||
*/}}
|
*/}}
|
||||||
{{- define "extraModules" -}}
|
{{- define "extraModules" -}}
|
||||||
- name: {{ .name }}
|
- name: {{ .name }}
|
||||||
image: {{ include "imageName" .image }}{{ include "ingress-nginx.imageDigest" .image }}
|
{{- with .image }}
|
||||||
|
image: {{ if .repository }}{{ .repository }}{{ else }}{{ .registry }}/{{ .image }}{{ end }}:{{ .tag }}{{ if .digest }}@{{ .digest }}{{ end }}
|
||||||
command:
|
command:
|
||||||
{{- if .image.distroless }}
|
{{- if .distroless }}
|
||||||
- /init_module
|
- /init_module
|
||||||
{{- else }}
|
{{- else }}
|
||||||
- sh
|
- sh
|
||||||
- -c
|
- -c
|
||||||
- /usr/local/bin/init_module.sh
|
- /usr/local/bin/init_module.sh
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
{{- if .containerSecurityContext }}
|
{{- if .containerSecurityContext }}
|
||||||
securityContext: {{ toYaml .containerSecurityContext | nindent 4 }}
|
securityContext: {{ toYaml .containerSecurityContext | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@ -276,16 +278,3 @@ Extra modules.
|
||||||
- name: modules
|
- name: modules
|
||||||
mountPath: /modules_mount
|
mountPath: /modules_mount
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
{{/*
|
|
||||||
Image Name with optional registry and tag.
|
|
||||||
*/}}
|
|
||||||
{{- define "imageName" -}}
|
|
||||||
{{- if .registry -}}
|
|
||||||
{{- printf "%s/" .registry -}}
|
|
||||||
{{- end -}}
|
|
||||||
{{- printf "%s" .image -}}
|
|
||||||
{{- if .tag -}}
|
|
||||||
{{- printf ":%s" .tag -}}
|
|
||||||
{{- end -}}
|
|
||||||
{{- end -}}
|
|
||||||
|
|
|
@ -590,7 +590,11 @@ controller:
|
||||||
# image:
|
# image:
|
||||||
# registry: registry.k8s.io
|
# registry: registry.k8s.io
|
||||||
# image: ingress-nginx/mytestmodule
|
# image: ingress-nginx/mytestmodule
|
||||||
# tag: latest
|
# ## for backwards compatibility consider setting the full image url via the repository value below
|
||||||
|
# ## use *either* current default registry/image or repository format or installing chart by providing the values.yaml will fail
|
||||||
|
# ## repository:
|
||||||
|
# tag: "v1.0.0"
|
||||||
|
# digest: ""
|
||||||
# distroless: false
|
# distroless: false
|
||||||
# containerSecurityContext:
|
# containerSecurityContext:
|
||||||
# runAsNonRoot: true
|
# runAsNonRoot: true
|
||||||
|
@ -614,6 +618,9 @@ controller:
|
||||||
image:
|
image:
|
||||||
registry: registry.k8s.io
|
registry: registry.k8s.io
|
||||||
image: ingress-nginx/opentelemetry
|
image: ingress-nginx/opentelemetry
|
||||||
|
## for backwards compatibility consider setting the full image url via the repository value below
|
||||||
|
## use *either* current default registry/image or repository format or installing chart by providing the values.yaml will fail
|
||||||
|
## repository:
|
||||||
tag: "v20230721-3e2062ee5"
|
tag: "v20230721-3e2062ee5"
|
||||||
digest: sha256:13bee3f5223883d3ca62fee7309ad02d22ec00ff0d7033e3e9aca7a9f60fd472
|
digest: sha256:13bee3f5223883d3ca62fee7309ad02d22ec00ff0d7033e3e9aca7a9f60fd472
|
||||||
distroless: true
|
distroless: true
|
||||||
|
|
Loading…
Reference in a new issue