Skip to content

Commit 346a169

Browse files
[CWAgent][TEMP] Add permissions patching to CW Agent release tests (#366)
Notes: - New changes in CW Agent require permissions to be updated in the addon, which cannot be done without a release - As such, we introduce this temporary fix to have the permissions added manually until the CW Agent can be verified and released through the impacted release tests - Not tested, will run the release tests after merging
1 parent b7b6928 commit 346a169

File tree

1 file changed

+2
-0
lines changed
  • .github/workflows/actions/patch_image_and_check_diff

1 file changed

+2
-0
lines changed

.github/workflows/actions/patch_image_and_check_diff/action.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,8 @@ runs:
140140
if: ${{ inputs.repository == 'amazon-cloudwatch-agent' }}
141141
shell: bash
142142
run: |
143+
kubectl patch clusterrole cloudwatch-agent-role --type=json \
144+
-p='[{"op": "add", "path": "/rules/-", "value": {"apiGroups": ["discovery.k8s.io"], "resources": ["endpointslices"], "verbs": ["list", "watch", "get"]}}]'
143145
kubectl patch amazoncloudwatchagents -n amazon-cloudwatch cloudwatch-agent --type='json' -p='[{"op": "replace", "path": "/spec/image", "value": ${{ inputs.patch-image-arn }}}]'
144146
kubectl delete pods --all -n amazon-cloudwatch
145147
sleep 10

0 commit comments

Comments
 (0)