Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Helm chart: add hostNetwork option #10

Merged
merged 1 commit into from
Jun 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions charts/flux-operator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ see the Flux Operator [documentation](https://fluxcd.control-plane.io/operator/)
| commonAnnotations | object | `{}` | Common annotations to add to all deployed objects including pods. |
| commonLabels | object | `{}` | Common labels to add to all deployed objects including pods. |
| fullnameOverride | string | `""` | |
| hostNetwork | bool | `false` | If `true`, start flux-operator in hostNetwork mode. |
| image | object | `{"pullSecrets":[],"repository":"ghcr.io/controlplaneio-fluxcd/flux-operator","tag":""}` | Container image settings. The image tag defaults to the chart appVersion. |
| installCRDs | bool | `true` | Install and upgrade the custom resource definitions. |
| livenessProbe | object | `{"httpGet":{"path":"/healthz","port":8081},"initialDelaySeconds":15,"periodSeconds":20}` | Container liveness probe settings. |
Expand Down
3 changes: 3 additions & 0 deletions charts/flux-operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ spec:
securityContext:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- if .Values.hostNetwork }}
hostNetwork: true
{{- end }}
containers:
- name: manager
env:
Expand Down
4 changes: 4 additions & 0 deletions charts/flux-operator/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@
"fullnameOverride": {
"type": "string"
},
"hostNetwork": {
"default": false,
"type": "boolean"
},
"image": {
"properties": {
"pullSecrets": {
Expand Down
3 changes: 3 additions & 0 deletions charts/flux-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,6 @@ tolerations: [ ] # @schema item: object ; uniqueItems: true
marketplace:
license: ""
account: ""

# -- If `true`, start flux-operator in hostNetwork mode.
hostNetwork: false