mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2025-03-30 19:54:46 +00:00
Merge pull request #1387 from ArangoGutierrez/devel/helm/grpcdepre2
Helm - Move remaining gPRC related flags to conditional
This commit is contained in:
commit
4ad6491e0b
3 changed files with 4 additions and 2 deletions
|
@ -69,8 +69,8 @@ spec:
|
||||||
{{- if .Values.master.instance | empty | not }}
|
{{- if .Values.master.instance | empty | not }}
|
||||||
- "-instance={{ .Values.master.instance }}"
|
- "-instance={{ .Values.master.instance }}"
|
||||||
{{- end }}
|
{{- end }}
|
||||||
- "-port={{ .Values.master.port | default "8080" }}"
|
|
||||||
{{- if not .Values.enableNodeFeatureApi }}
|
{{- if not .Values.enableNodeFeatureApi }}
|
||||||
|
- "-port={{ .Values.master.port | default "8080" }}"
|
||||||
- "-enable-nodefeature-api=false"
|
- "-enable-nodefeature-api=false"
|
||||||
{{- else if gt (int .Values.master.replicaCount) 1 }}
|
{{- else if gt (int .Values.master.replicaCount) 1 }}
|
||||||
- "-enable-leader-election"
|
- "-enable-leader-election"
|
||||||
|
|
|
@ -49,8 +49,8 @@ spec:
|
||||||
command:
|
command:
|
||||||
- "nfd-worker"
|
- "nfd-worker"
|
||||||
args:
|
args:
|
||||||
- "-server={{ include "node-feature-discovery.fullname" . }}-master:{{ .Values.master.service.port }}"
|
|
||||||
{{- if not .Values.enableNodeFeatureApi }}
|
{{- if not .Values.enableNodeFeatureApi }}
|
||||||
|
- "-server={{ include "node-feature-discovery.fullname" . }}-master:{{ .Values.master.service.port }}"
|
||||||
- "-enable-nodefeature-api=false"
|
- "-enable-nodefeature-api=false"
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.tls.enable }}
|
{{- if .Values.tls.enable }}
|
||||||
|
|
|
@ -45,6 +45,8 @@ master:
|
||||||
# nfdApiParallelism: 10
|
# nfdApiParallelism: 10
|
||||||
### <NFD-MASTER-CONF-END-DO-NOT-REMOVE>
|
### <NFD-MASTER-CONF-END-DO-NOT-REMOVE>
|
||||||
# The TCP port that nfd-master listens for incoming requests. Default: 8080
|
# The TCP port that nfd-master listens for incoming requests. Default: 8080
|
||||||
|
# Deprecated this parameter is related to the deprecated gRPC API and will
|
||||||
|
# be removed with it in a future release
|
||||||
port: 8080
|
port: 8080
|
||||||
metricsPort: 8081
|
metricsPort: 8081
|
||||||
instance:
|
instance:
|
||||||
|
|
Loading…
Add table
Reference in a new issue