Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Skip AWS Metadata API pre-flight check when regions are passed via config #3485

Merged
merged 1 commit into from
Jul 27, 2021

Conversation

kingdonb
Copy link
Member

@kingdonb kingdonb commented May 23, 2021

Replaces #3124

Reportedly fixes #3015

Thanks to @evq and sorry for the delay. I'll see if we can get this in 1.23.0. This is planned to be included now in 1.23.2.

Since this issue sat for a while and had lots of discussion, I had to research it again. The best summary of who is affected is here:

#3124 (comment)

The short version is, if you are following best-practices with EKS+IRSA, and still using Flux v1 with its image update automation feature on ECR, then it probably affects you. I don't have any reason to think there's any potential this fix could represent a breaking change.

@kingdonb kingdonb added this to the 1.23.0 milestone May 23, 2021
@kingdonb kingdonb force-pushed the brave-intl-skip-aws-api-check branch from eebe032 to b9f511a Compare June 25, 2021 18:15
Signed-off-by: eV <ev@7pr.xyz>
Signed-off-by: Kingdon Barrett <kingdon@weave.works>
@kingdonb kingdonb force-pushed the brave-intl-skip-aws-api-check branch from b9f511a to 58c073b Compare July 26, 2021 19:08
@gonzalobarbitta
Copy link

I was running into the same issue as #3124, but using ec2 instead of Fargate. This change solved my problem too.

@kingdonb kingdonb modified the milestones: 1.24.0, 1.23.2 Jul 26, 2021
@kingdonb
Copy link
Member Author

kingdonb commented Jul 26, 2021

I don't know the root cause (other than, apparently failure to communicate with the AWS API, which might be more common than I originally understood while reviewing this PR) I updated the PR body with what I know about the root cause.

After reviewing the issue with @gonzalobarbitta I see this as a bugfix with little to no potential for breakage, and I will plan to include it in the next patch release.

Thanks very much for collaborating on this 👍 💯

@kingdonb kingdonb requested a review from hiddeco July 26, 2021 20:31
@kingdonb kingdonb changed the title (rebase) skip aws api check when regions are passed from config Skip AWS Metadata API pre-flight check when regions are passed via config Jul 26, 2021
Copy link
Member

@hiddeco hiddeco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for the combined effort @kingdonb @gonzalobarbitta 💯

@kingdonb kingdonb merged commit 7218abf into fluxcd:master Jul 27, 2021
@kingdonb kingdonb deleted the brave-intl-skip-aws-api-check branch July 27, 2021 14:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to fetch tags from ECR
4 participants