You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When installing FluxCDAddon, and specifying GitRepositories or Kustomizations, we can see a race condition (despite addDependencies) that fails the install as CRDs are not ready in time.
MyStack | 12/52 | 3:59:34 PM | CREATE_FAILED | Custom::AWSCDK-EKS-KubernetesResource | MyStack/manifest-fluxcd-addonkustomizationdeploys0/Resource/Default
(MyStackmanifestfluxcdaddonkustomizationdeploys069E26670) Received response status [FAILED] from custom
resource. Message returned: Error: b'error: resource mapping not found for name: "deploys-0" namespace:
"flux-system" from "/tmp/manifest.yaml": no matches for kind "Kustomization" in version
"kustomize.toolkit.fluxcd.io/v1beta2"\nensure CRDs are installed first\n'
If the AddOn is installed with no GitRepositories or Kustomizations, then it installs fine, and then updated with GitRepositories or Kustomizations, they install fine too.
Expected Behavior
The Helm chart install should wait for the CRDs to be ready so the GitRepositories or Kustomizations can be added.
Current Behavior
The helm install does not wait for the CRDs and the GitRepositories or Kustomizations fail, causing a stack rollback.
Reproduction Steps
Add the addon while specifying resources:
returnnewFluxCDAddOn({createNamespace: true,namespace: "flux-system",version: "2.14.0",repositories: [{name: "myrepo",secretRefName: "foo",namespace: "flux-system",syncInterval: "1m",repository: {// Note we are supplying resources here that need the CRDsrepoUrl: "ssh://[email protected]/acme/myrepo.git",targetRevision: "master",},values: {},kustomizations: [// Note we are supplying resources here that need the CRDs{syncInterval: "1m",prune: true,timeout: "1m",kustomizationPath: `./default`}]}],values: {},});};
Sometimes, when installing, the CRDs will not be ready in time and the installation as a whole fails.
Possible Solution
Add a wait to the helm install as was done here: #514
Describe the bug
When installing FluxCDAddon, and specifying
GitRepositories
orKustomizations
, we can see a race condition (despite addDependencies) that fails the install as CRDs are not ready in time.If the AddOn is installed with no
GitRepositories
orKustomizations
, then it installs fine, and then updated withGitRepositories
orKustomizations
, they install fine too.Expected Behavior
The Helm chart install should wait for the CRDs to be ready so the
GitRepositories
orKustomizations
can be added.Current Behavior
The helm install does not wait for the CRDs and the
GitRepositories
orKustomizations
fail, causing a stack rollback.Reproduction Steps
Add the addon while specifying resources:
Sometimes, when installing, the CRDs will not be ready in time and the installation as a whole fails.
Possible Solution
Add a wait to the helm install as was done here: #514
The fix should go here:
cdk-eks-blueprints/lib/addons/fluxcd/index.ts
Line 223 in 127e22e
Additional Information/Context
No response
CDK CLI Version
2.1000.2 (build bc82193)
EKS Blueprints Version
1.16.3
Node.js Version
v22.14.0
Environment details (OS name and version, etc.)
Any
Other information
No response
The text was updated successfully, but these errors were encountered: