From 1954008945f0a900adb8424c74ee053bf0c72512 Mon Sep 17 00:00:00 2001 From: Aviram Hassan Date: Thu, 2 Jan 2025 11:27:17 +0200 Subject: [PATCH 1/2] add operator.copyTarget.useAgentImage flag --- mirrord-operator/values.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/mirrord-operator/values.yaml b/mirrord-operator/values.yaml index 1c26c03..50aded1 100644 --- a/mirrord-operator/values.yaml +++ b/mirrord-operator/values.yaml @@ -87,6 +87,13 @@ operator: # can communicate on that port if it doesn't work then. port: 443 + + copyTarget: + # by default, the operator will create a dummy container using the agent image + # as it is guaranteed to have a sleep binary. If you want the operator + # to use the target's image, set this value to false and make sure it has sleep binary + useAgentImage: true + agent: ## example ## From e811030c7c58674a03dc17caacd60c6b4ab6c696 Mon Sep 17 00:00:00 2001 From: Razz4780 Date: Thu, 2 Jan 2025 10:53:39 +0100 Subject: [PATCH 2/2] Set env in operator container, bump chart version --- mirrord-operator/Chart.yaml | 2 +- mirrord-operator/templates/deployment.yaml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/mirrord-operator/Chart.yaml b/mirrord-operator/Chart.yaml index 837c92d..09219ef 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.15.2 +version: 1.16.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 fb60c80..8faa969 100644 --- a/mirrord-operator/templates/deployment.yaml +++ b/mirrord-operator/templates/deployment.yaml @@ -102,6 +102,8 @@ spec: - name: OPERATOR_NO_POD_TARGETS_SESSION_TIMEOUT_MILLIS value: {{ .Values.operator.noPodTargetsSessionTimeoutMillis | quote }} {{- end }} + - name: OPERATOR_COPY_TARGET_USE_AGENT_IMAGE + value: {{ .Values.operator.copyTarget.useAgentImage | ternary "true" "false" | quote }} envFrom: - secretRef: name: {{ .Values.license.file.secret }}