From 5d6b6f87530d34a1e49d87ff8203830b7b924939 Mon Sep 17 00:00:00 2001 From: Joost Lont Date: Tue, 7 May 2024 13:58:28 +0200 Subject: [PATCH] Add the ability to set hostNetwork for lifecycle operator deployment Signed-off-by: Joost Lont --- .github/scripts/.helm-tests/Openshift/result.yaml | 1 + .github/scripts/.helm-tests/default/result.yaml | 1 + .github/scripts/.helm-tests/lifecycle-only/result.yaml | 1 + .github/scripts/.helm-tests/lifecycle-with-certs/result.yaml | 1 + .github/scripts/.helm-tests/local-global-precedence/result.yaml | 1 + lifecycle-operator/chart/README.md | 1 + lifecycle-operator/chart/templates/deployment.yaml | 1 + lifecycle-operator/chart/values.yaml | 2 ++ 8 files changed, 9 insertions(+) diff --git a/.github/scripts/.helm-tests/Openshift/result.yaml b/.github/scripts/.helm-tests/Openshift/result.yaml index 113a8ba88d..149417fa2f 100644 --- a/.github/scripts/.helm-tests/Openshift/result.yaml +++ b/.github/scripts/.helm-tests/Openshift/result.yaml @@ -15419,6 +15419,7 @@ spec: runAsNonRoot: true serviceAccountName: lifecycle-operator terminationGracePeriodSeconds: 10 + hostNetwork: false volumes: - name: keptn-certs secret: diff --git a/.github/scripts/.helm-tests/default/result.yaml b/.github/scripts/.helm-tests/default/result.yaml index 814a5bebe3..de3f92b5de 100644 --- a/.github/scripts/.helm-tests/default/result.yaml +++ b/.github/scripts/.helm-tests/default/result.yaml @@ -15423,6 +15423,7 @@ spec: runAsNonRoot: true serviceAccountName: lifecycle-operator terminationGracePeriodSeconds: 10 + hostNetwork: false volumes: - name: keptn-certs secret: diff --git a/.github/scripts/.helm-tests/lifecycle-only/result.yaml b/.github/scripts/.helm-tests/lifecycle-only/result.yaml index 24437b085e..3cb920ab4b 100644 --- a/.github/scripts/.helm-tests/lifecycle-only/result.yaml +++ b/.github/scripts/.helm-tests/lifecycle-only/result.yaml @@ -11989,6 +11989,7 @@ spec: runAsNonRoot: true serviceAccountName: lifecycle-operator terminationGracePeriodSeconds: 10 + hostNetwork: false volumes: - name: keptn-certs secret: diff --git a/.github/scripts/.helm-tests/lifecycle-with-certs/result.yaml b/.github/scripts/.helm-tests/lifecycle-with-certs/result.yaml index 3a48d22c52..adc1ef01c4 100644 --- a/.github/scripts/.helm-tests/lifecycle-with-certs/result.yaml +++ b/.github/scripts/.helm-tests/lifecycle-with-certs/result.yaml @@ -12290,6 +12290,7 @@ spec: runAsNonRoot: true serviceAccountName: lifecycle-operator terminationGracePeriodSeconds: 10 + hostNetwork: false volumes: - name: keptn-certs secret: diff --git a/.github/scripts/.helm-tests/local-global-precedence/result.yaml b/.github/scripts/.helm-tests/local-global-precedence/result.yaml index 4f453de478..cef1e19a70 100644 --- a/.github/scripts/.helm-tests/local-global-precedence/result.yaml +++ b/.github/scripts/.helm-tests/local-global-precedence/result.yaml @@ -15751,6 +15751,7 @@ spec: runAsNonRoot: true serviceAccountName: lifecycle-operator terminationGracePeriodSeconds: 10 + hostNetwork: false volumes: - name: keptn-certs secret: diff --git a/lifecycle-operator/chart/README.md b/lifecycle-operator/chart/README.md index e58de2a1d6..6801d80cf4 100644 --- a/lifecycle-operator/chart/README.md +++ b/lifecycle-operator/chart/README.md @@ -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 diff --git a/lifecycle-operator/chart/templates/deployment.yaml b/lifecycle-operator/chart/templates/deployment.yaml index 248da59628..bde243928f 100644 --- a/lifecycle-operator/chart/templates/deployment.yaml +++ b/lifecycle-operator/chart/templates/deployment.yaml @@ -165,6 +165,7 @@ spec: runAsNonRoot: true serviceAccountName: lifecycle-operator terminationGracePeriodSeconds: 10 + hostNetwork: {{ .Values.lifecycleOperator.hostNetwork }} volumes: - name: keptn-certs secret: diff --git a/lifecycle-operator/chart/values.yaml b/lifecycle-operator/chart/values.yaml index e129957535..84afd283f2 100644 --- a/lifecycle-operator/chart/values.yaml +++ b/lifecycle-operator/chart/values.yaml @@ -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