From 1b9abcd6df8208a76a06c93cd425e8b786a68394 Mon Sep 17 00:00:00 2001 From: Zhonghao Zhao Date: Mon, 25 Mar 2024 20:53:01 -0700 Subject: [PATCH] Remove patch. --- .github/workflows/appsignals-python-e2e-test.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/appsignals-python-e2e-test.yml b/.github/workflows/appsignals-python-e2e-test.yml index 70c94d0f9..0ab2c7286 100644 --- a/.github/workflows/appsignals-python-e2e-test.yml +++ b/.github/workflows/appsignals-python-e2e-test.yml @@ -139,11 +139,11 @@ jobs: echo "OLD_CW_AGENT_OPERATOR_IMAGE"=$(kubectl get pods -n amazon-cloudwatch -l app.kubernetes.io/name=amazon-cloudwatch-observability -o json | \ jq '.items[0].status.containerStatuses[0].image') >> $GITHUB_ENV - - name: Patch the CloudWatch Agent Operator image and restart CloudWatch pods - run: | - kubectl patch deploy -n amazon-cloudwatch amazon-cloudwatch-observability-controller-manager --type='json' -p '[{"op": "replace", "path": "/spec/template/spec/containers/0/image", "value": "${{ env.ECR_OPERATOR_STAGING_REPO }}:${{ inputs.tag }}"}, {"op": "replace", "path": "/spec/template/spec/containers/0/imagePullPolicy", "value": "Always"}, {"op": "replace", "path": "/spec/template/spec/containers/0/args", "value": ["--auto-instrumentation-python-image=public.ecr.aws/aws-observability/adot-autoinstrumentation-python:v0.0.1"]}]]' - kubectl delete pods --all -n amazon-cloudwatch - kubectl wait --for=condition=Ready pod --all -n amazon-cloudwatch +# - name: Patch the CloudWatch Agent Operator image and restart CloudWatch pods +# run: | +# kubectl patch deploy -n amazon-cloudwatch amazon-cloudwatch-observability-controller-manager --type='json' -p '[{"op": "replace", "path": "/spec/template/spec/containers/0/image", "value": "${{ env.ECR_OPERATOR_STAGING_REPO }}:${{ inputs.tag }}"}, {"op": "replace", "path": "/spec/template/spec/containers/0/imagePullPolicy", "value": "Always"}, {"op": "replace", "path": "/spec/template/spec/containers/0/args", "value": ["--auto-instrumentation-python-image=public.ecr.aws/aws-observability/adot-autoinstrumentation-python:v0.0.1"]}]]' +# kubectl delete pods --all -n amazon-cloudwatch +# kubectl wait --for=condition=Ready pod --all -n amazon-cloudwatch # Application pods need to be restarted for the # app signals instrumentation to take effect