Skip to content

Always provision source controller IRSA role with the cluster and allow for pulls through pull through cache - #2396

Open
wcarlsen wants to merge 5 commits into
masterfrom
bug/fluxcd-bootstrap-git/flaky-diffs-and-source-ctrl-not-able-to-pull-from-cache
Open

wcarlsen wants to merge 5 commits into
masterfrom
bug/fluxcd-bootstrap-git/flaky-diffs-and-source-ctrl-not-able-to-pull-from-cache

Conversation

@wcarlsen

@wcarlsen wcarlsen commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Describe your changes

Currently source controller IRSA role is a shared role from shared-prod account, but since we implement allowed pulls if it is form an org account, we no longer need the shared account approach. So we let the clusters bring its own. We also solve a bug with the shared-prod IRSA role missing permissions to pull images from the pull through cache. Lastly this hopefully removes flaky diffs and random failures on fluxcd_bootstrap_git resource as described here https://dfds.slack.com/archives/CQD754GGL/p1782994535687589.

Issue ticket number and link

Checklist before requesting a review

Is it a new release?

  • Apply a release tag release:(major|minor|patch), following semantic versioning in this guide or norelease if there is no changes to the Terraform code

…ow for pulls through pull through cache

Signed-off-by: Willi Carlsen <carlsenwilli@gmail.com>
@wcarlsen
wcarlsen requested a review from a team as a code owner July 2, 2026 14:14
@wcarlsen wcarlsen added the release:major Triggers a major release label Jul 2, 2026
@DFDS-Snyk

DFDS-Snyk commented Jul 2, 2026

Copy link
Copy Markdown

Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues
Code Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@wcarlsen

wcarlsen commented Jul 2, 2026

Copy link
Copy Markdown
Contributor Author

I guess that triggered a bug in the provider 🙈

@wcarlsen

wcarlsen commented Jul 3, 2026

Copy link
Copy Markdown
Contributor Author

I guess that triggered a bug in the provider 🙈

So on first run this fails, with an inconsistent plan from the provider, but it disappears on second run.

wcarlsen added 2 commits July 3, 2026 10:51
…ent plans on first run and fails when replacements come from other resources.

Signed-off-by: Willi Carlsen <carlsenwilli@gmail.com>
Signed-off-by: Willi Carlsen <carlsenwilli@gmail.com>
@wcarlsen wcarlsen added bug Something isn't working blocked labels Jul 27, 2026
@wcarlsen

Copy link
Copy Markdown
Contributor Author

Added bug and blocked labels because there is a bug in the provider.

avnes
avnes previously approved these changes Aug 6, 2026

@avnes avnes left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM. During my testings I did not experience any issues with this. But I was using the latest and greatest provider versions in my sandbox.

provider "registry.opentofu.org/fluxcd/flux" {
  version     = "1.9.3"

provider "registry.opentofu.org/hashicorp/tls" {
  version     = "4.3.0"

provider "registry.opentofu.org/integrations/github" {
  version     = "6.13.0"

@wcarlsen wcarlsen removed the blocked label Sep 14, 2026
@wcarlsen
wcarlsen dismissed avnes’s stale review September 15, 2026 08:48

Audun is no longer here

@wcarlsen
wcarlsen requested a review from a team September 15, 2026 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working release:major Triggers a major release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants