Skip to content

Commit

Permalink
Update adot image patch index. (#165)
Browse files Browse the repository at this point in the history
*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.
  • Loading branch information
zzhlogin authored Apr 16, 2024
1 parent c9b7342 commit 51702ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/application-signals-python-e2e-eks-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 51702ae

Please sign in to comment.