Skip to content

Commit 51702ae

Browse files
authored
Update adot image patch index. (#165)
*Issue #, if available:* *Description of changes:* Update adot image patch index. related change in the operator repo: aws/amazon-cloudwatch-agent-operator#85 Test workflow run: https://github.com/aws-observability/aws-otel-python-instrumentation/actions/runs/8712487536/job/23899229421 By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
1 parent c9b7342 commit 51702ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/application-signals-python-e2e-eks-test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,10 +159,10 @@ jobs:
159159
${{ env.PYTHON_SAMPLE_APP_NAMESPACE }} && \
160160
aws eks update-kubeconfig --name ${{ inputs.test-cluster-name }} --region ${{ inputs.aws-region }}"
161161
162-
if [ "${{ inputs.caller-workflow-name }}" == "main-build" ]; then
162+
if [ "${{ inputs.caller-workflow-name }}" = "main-build" ]; then
163163
echo "Patching staging adot image for main build:"
164164
execute_and_retry 2 "kubectl patch deploy -namazon-cloudwatch amazon-cloudwatch-observability-controller-manager --type='json' \
165-
-p='[{"op": \"replace\", \"path\": \"/spec/template/spec/containers/0/args/0\", \"value\": \"--auto-instrumentation-python-image=${{ inputs.application-signals-adot-image }}:${{ inputs.application-signals-adot-image-tag }}\"}]'"
165+
-p='[{"op": \"replace\", \"path\": \"/spec/template/spec/containers/0/args/2\", \"value\": \"--auto-instrumentation-python-image=${{ inputs.application-signals-adot-image }}:${{ inputs.application-signals-adot-image-tag }}\"}]'"
166166
execute_and_retry 2 "kubectl delete pods --all -n amazon-cloudwatch"
167167
execute_and_retry 2 "kubectl wait --for=condition=Ready pod --all -n amazon-cloudwatch"
168168
fi

0 commit comments

Comments
 (0)