Skip to content

Commit

Permalink
Merge agent overlays
Browse files Browse the repository at this point in the history
  • Loading branch information
sky333999 committed Dec 20, 2024
1 parent c5e9709 commit de325fd
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ metadata:
name: {{ $agent.name | default (include "cloudwatch-agent.name" $) }}
namespace: {{ $.Release.Namespace }}
spec:
image: {{ include "cloudwatch-agent.image" (merge $agent.image (dict "region" $.Values.region)) }}
image: {{ template "cloudwatch-agent.image" (merge $agent.image (dict "region" $.Values.region)) }}
mode: {{ $agent.mode }}
replicas: {{ $agent.replicas }}
nodeSelector:
Expand Down Expand Up @@ -93,7 +93,7 @@ spec:
{{- if $agent.prometheus.targetAllocator.enabled }}
targetAllocator:
enabled: {{ $agent.prometheus.targetAllocator.enabled | default false }}
image: {{ include "target-allocator.image" (merge $agent.prometheus.targetAllocator.image (dict "region" $.Values.region)) }}
image: {{ template "target-allocator.image" (merge $agent.prometheus.targetAllocator.image (dict "region" $.Values.region)) }}
allocationStrategy: "consistent-hashing"
{{- if $agent.prometheus.targetAllocator.prometheusCR.enabled }}
prometheusCR: {{ $agent.prometheus.targetAllocator.prometheusCR.enabled | default false }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ spec:
- "--auto-instrumentation-python-image={{ template "auto-instrumentation-python.image" . }}"
- "--auto-instrumentation-dotnet-image={{ template "auto-instrumentation-dotnet.image" . }}"
- "--auto-instrumentation-nodejs-image={{ template "auto-instrumentation-nodejs.image" . }}"
- "--target-allocator-image={{ include "target-allocator.image" (merge .Values.agent.prometheus.targetAllocator.image (dict "region" $.Values.region)) }}"
- "--target-allocator-image={{ template "target-allocator.image" (merge .Values.agent.prometheus.targetAllocator.image (dict "region" $.Values.region)) }}"
- "--feature-gates=operator.autoinstrumentation.multi-instrumentation,operator.autoinstrumentation.multi-instrumentation.skip-container-validation"
command:
- /manager
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ spec:
hostProcess: true
runAsUserName: "NT AUTHORITY\\System"
hostNetwork: true
image: {{ include "cloudwatch-agent.image" (merge .Values.agent.image (dict "region" .Values.region)) }}
image: {{ template "cloudwatch-agent.image" (merge .Values.agent.image (dict "region" .Values.region)) }}
workingDir: "%CONTAINER_SANDBOX_MOUNT_POINT%\\Program Files\\Amazon\\AmazonCloudWatchAgent"
mode: daemonset
serviceAccount: {{ template "cloudwatch-agent.serviceAccountName" . }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ spec:
podSecurityContext:
windowsOptions:
runAsUserName: "NT AUTHORITY\\System"
image: {{ include "cloudwatch-agent.image" (merge .Values.agent.image (dict "region" .Values.region)) }}
image: {{ template "cloudwatch-agent.image" (merge .Values.agent.image (dict "region" .Values.region)) }}
mode: daemonset
serviceAccount: {{ template "cloudwatch-agent.serviceAccountName" . }}
priorityClassName: {{ .Values.agent.priorityClassName }}
Expand Down

0 comments on commit de325fd

Please sign in to comment.