From b2d1d4869b4dfee79005d8c6aa714d49105f075b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Smolarek?= <34063647+Razz4780@users.noreply.github.com> Date: Mon, 3 Feb 2025 19:30:22 +0100 Subject: [PATCH] Config option for agent port (#160) --- mirrord-operator/Chart.yaml | 2 +- mirrord-operator/templates/deployment.yaml | 4 ++++ mirrord-operator/values.yaml | 5 +++++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/mirrord-operator/Chart.yaml b/mirrord-operator/Chart.yaml index 3ccf448..7730c83 100644 --- a/mirrord-operator/Chart.yaml +++ b/mirrord-operator/Chart.yaml @@ -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: 1.18.0 +version: 1.19.0 # 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 diff --git a/mirrord-operator/templates/deployment.yaml b/mirrord-operator/templates/deployment.yaml index ee330ad..2fbedf6 100644 --- a/mirrord-operator/templates/deployment.yaml +++ b/mirrord-operator/templates/deployment.yaml @@ -94,6 +94,10 @@ spec: - name: OPERATOR_AGENT_CONNECTION_TLS value: "true" {{- end }} + {{- if .Values.agent.port }} + - name: OPERATOR_AGENT_PORT + value: {{ .Values.agent.port | quote }} + {{- end }} {{- if .Values.operator.noPodTargetsSessionTimeoutMillis }} - name: OPERATOR_NO_POD_TARGETS_SESSION_TIMEOUT_MILLIS value: {{ .Values.operator.noPodTargetsSessionTimeoutMillis | quote }} diff --git a/mirrord-operator/values.yaml b/mirrord-operator/values.yaml index 50aded1..0d11d1b 100644 --- a/mirrord-operator/values.yaml +++ b/mirrord-operator/values.yaml @@ -113,6 +113,11 @@ agent: # If you want the operator to secure agent connections with TLS, set this value to true. # This option requires agent version at least 3.97.0. tls: false + + # If you want the agents to accept operator connections on some predefined port, + # you can set it here. If you don't set anything, each agent will be assigned with a random high port. + # port: 9999 + ## use this if you want to add settings that aren't covered by the values.yaml ## see possible settings here: https://mirrord.dev/docs/reference/configuration/#root-agent extraConfig: