Skip to content

Commit

Permalink
add operator.copyTarget.useAgentImage flag (#146)
Browse files Browse the repository at this point in the history
Co-authored-by: Razz4780 <[email protected]>
  • Loading branch information
aviramha and Razz4780 authored Jan 2, 2025
1 parent 880eea4 commit 21f0bb7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion mirrord-operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions mirrord-operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
7 changes: 7 additions & 0 deletions mirrord-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
##
Expand Down

0 comments on commit 21f0bb7

Please sign in to comment.