From 51702aec2dc18dce8956f9b8138223dbdb48ff8a Mon Sep 17 00:00:00 2001 From: zzhlogin Date: Tue, 16 Apr 2024 16:02:51 -0700 Subject: [PATCH] Update adot image patch index. (#165) *Issue #, if available:* *Description of changes:* Update adot image patch index. related change in the operator repo: https://github.com/aws/amazon-cloudwatch-agent-operator/pull/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. --- .github/workflows/application-signals-python-e2e-eks-test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/application-signals-python-e2e-eks-test.yml b/.github/workflows/application-signals-python-e2e-eks-test.yml index 77695a1..86fb24d 100644 --- a/.github/workflows/application-signals-python-e2e-eks-test.yml +++ b/.github/workflows/application-signals-python-e2e-eks-test.yml @@ -159,10 +159,10 @@ jobs: ${{ env.PYTHON_SAMPLE_APP_NAMESPACE }} && \ aws eks update-kubeconfig --name ${{ inputs.test-cluster-name }} --region ${{ inputs.aws-region }}" - if [ "${{ inputs.caller-workflow-name }}" == "main-build" ]; then + if [ "${{ inputs.caller-workflow-name }}" = "main-build" ]; then echo "Patching staging adot image for main build:" execute_and_retry 2 "kubectl patch deploy -namazon-cloudwatch amazon-cloudwatch-observability-controller-manager --type='json' \ - -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 }}\"}]'" + -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 }}\"}]'" execute_and_retry 2 "kubectl delete pods --all -n amazon-cloudwatch" execute_and_retry 2 "kubectl wait --for=condition=Ready pod --all -n amazon-cloudwatch" fi