Skip to content

Commit

Permalink
Add the ability to set hostNetwork for lifecycle operator deployment
Browse files Browse the repository at this point in the history
Signed-off-by: Joost Lont <joost.lont@xs4all.nl>
  • Loading branch information
Joost Lont authored and JLont committed May 7, 2024
1 parent e048679 commit 5d6b6f8
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/scripts/.helm-tests/Openshift/result.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15419,6 +15419,7 @@ spec:
runAsNonRoot: true
serviceAccountName: lifecycle-operator
terminationGracePeriodSeconds: 10
hostNetwork: false
volumes:
- name: keptn-certs
secret:
Expand Down
1 change: 1 addition & 0 deletions .github/scripts/.helm-tests/default/result.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15423,6 +15423,7 @@ spec:
runAsNonRoot: true
serviceAccountName: lifecycle-operator
terminationGracePeriodSeconds: 10
hostNetwork: false
volumes:
- name: keptn-certs
secret:
Expand Down
1 change: 1 addition & 0 deletions .github/scripts/.helm-tests/lifecycle-only/result.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11989,6 +11989,7 @@ spec:
runAsNonRoot: true
serviceAccountName: lifecycle-operator
terminationGracePeriodSeconds: 10
hostNetwork: false
volumes:
- name: keptn-certs
secret:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12290,6 +12290,7 @@ spec:
runAsNonRoot: true
serviceAccountName: lifecycle-operator
terminationGracePeriodSeconds: 10
hostNetwork: false
volumes:
- name: keptn-certs
secret:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15751,6 +15751,7 @@ spec:
runAsNonRoot: true
serviceAccountName: lifecycle-operator
terminationGracePeriodSeconds: 10
hostNetwork: false
volumes:
- name: keptn-certs
secret:
Expand Down
1 change: 1 addition & 0 deletions lifecycle-operator/chart/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ and application health checks
| `lifecycleOperator.replicas` | customize number of installed lifecycle operator replicas | `1` |
| `lifecycleOperator.tolerations` | add custom tolerations to lifecycle operator | `[]` |
| `lifecycleOperator.topologySpreadConstraints` | add custom topology constraints to lifecycle operator | `[]` |
| `lifecycleOperator.hostNetwork` | Sets hostNetwork option for lifecycle operator | `false` |
| `lifecycleOperatorMetricsService` | Adjust settings here to change the k8s service for scraping Prometheus metrics | |

### Global
Expand Down
1 change: 1 addition & 0 deletions lifecycle-operator/chart/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ spec:
runAsNonRoot: true
serviceAccountName: lifecycle-operator
terminationGracePeriodSeconds: 10
hostNetwork: {{ .Values.lifecycleOperator.hostNetwork }}
volumes:
- name: keptn-certs
secret:
Expand Down
2 changes: 2 additions & 0 deletions lifecycle-operator/chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,8 @@ lifecycleOperator:
tolerations: []
## @param lifecycleOperator.topologySpreadConstraints add custom topology constraints to lifecycle operator
topologySpreadConstraints: []
## @param lifecycleOperator.hostNetwork Sets hostNetwork option for lifecycle operator
hostNetwork: false
## @extra lifecycleOperatorMetricsService Adjust settings here to change the k8s service for scraping Prometheus metrics
## @skip lifecycleOperatorMetricsService.ports[0].name
## @skip lifecycleOperatorMetricsService.ports[0].port
Expand Down

0 comments on commit 5d6b6f8

Please sign in to comment.