Skip to content

Commit

Permalink
Correctly tag cached images for us-gov-west-1 FIPS endpoint (#1476)
Browse files Browse the repository at this point in the history
  • Loading branch information
donovanrost authored Oct 18, 2023
1 parent 7b1ff22 commit dc273ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/install-worker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ if [[ "$CACHE_CONTAINER_IMAGES" == "true" ]] && ! [[ ${ISOLATED_REGIONS} =~ $BIN
regional_img="${img/$ECR_URI/$region_uri}"
sudo ctr -n k8s.io image tag "${img}" "${regional_img}" || :
## Tag ECR fips endpoint for supported regions
if [[ "${region}" =~ (us-east-1|us-east-2|us-west-1|us-west-2|us-gov-east-1|us-gov-east-2) ]]; then
if [[ "${region}" =~ (us-east-1|us-east-2|us-west-1|us-west-2|us-gov-east-1|us-gov-west-1) ]]; then
regional_fips_img="${regional_img/.ecr./.ecr-fips.}"
sudo ctr -n k8s.io image tag "${img}" "${regional_fips_img}" || :
sudo ctr -n k8s.io image tag "${img}" "${regional_fips_img/-eksbuild.1/}" || :
Expand Down

0 comments on commit dc273ea

Please sign in to comment.