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