feat(helm): make sessionAffinity configurable (#4623)

Co-authored-by: knqyf263 <knqyf263@gmail.com>
This commit is contained in:
Leroy Shirto
2023-06-21 12:14:36 +01:00
committed by GitHub
parent 904f1cf24e
commit 3e902a57a9
3 changed files with 5 additions and 1 deletions

View File

@@ -81,6 +81,7 @@ The following table lists the configurable parameters of the Trivy chart and the
| `service.name` | If specified, the name used for the Trivy service | |
| `service.type` | Kubernetes service type | `ClusterIP` |
| `service.port` | Kubernetes service port | `4954` |
| `service.sessionAffinity` | Kubernetes service session affinity | `ClientIP` |
| `httpProxy` | The URL of the HTTP proxy server | |
| `httpsProxy` | The URL of the HTTPS proxy server | |
| `noProxy` | The URLs that the proxy settings do not apply to | |

View File

@@ -14,4 +14,5 @@ spec:
protocol: TCP
port: {{ .Values.service.port | default 4954 }}
targetPort: {{ .Values.service.port | default 4954 }}
sessionAffinity: ClientIP
sessionAffinity: {{ .Values.service.sessionAffinity | default "ClientIP" }}

View File

@@ -136,6 +136,8 @@ service:
type: ClusterIP
# port Kubernetes service port
port: 4954
# sessionAffinity Kubernetes service session affinity
sessionAffinity: ClientIP
ingress:
enabled: false