Skip to content

Commit

Permalink
Merge pull request #34 from angeloxx/add-args-issue-33
Browse files Browse the repository at this point in the history
Solve issue #33, add support to extraArgs
  • Loading branch information
thebsdbox authored Jun 8, 2024
2 parents fb03baf + eb5a7a0 commit ea42f23
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/kube-vip/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.6.0
version: 0.6.1

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
9 changes: 9 additions & 0 deletions charts/kube-vip/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,15 @@ spec:
containers:
- args:
- manager
{{- if kindIs "map" .Values.extraArgs }}
{{- range $key, $value := .Values.extraArgs }}
{{- if not (kindIs "invalid" $value) }}
- --{{ $key }}={{ tpl ($value | toString) $ }}
{{- else }}
- --{{ $key }}
{{- end }}
{{- end }}
{{- end }}
env:
{{- if eq .Values.env.cp_enable "true" }}
- name: vip_address
Expand Down
5 changes: 5 additions & 0 deletions charts/kube-vip/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ env:
svc_election: "false"
vip_leaderelection: "false"

extraArgs: {}
# Specify additional arguments to kube-vip
# For example, to change the Prometheus HTTP server port, use the following:
# prometheusHTTPServer: "0.0.0.0:2112"

envValueFrom: {}
# Specify environment variables using valueFrom references (EnvVarSource)
# For example we can use the IP address of the pod itself as a unique value for the routerID
Expand Down

0 comments on commit ea42f23

Please sign in to comment.