-
Notifications
You must be signed in to change notification settings - Fork 207
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EfsCsiDriverAddOn: When using a namespace it fails with "Error from server (NotFound): error when creating "/tmp/manifest.yaml": namespaces "XXXX" not found\n' #1077
Comments
When digging in the Lambda logs I did find this create request that is related to the error:
|
I think this is some timing issue. Seemingly randomly I get this error when trying to use another namespace than the default one for several add-ons. |
This seems to be a timing issue. When I run the |
@jesperalmstrom Pseudo code: @Reflect.metadata("ordered", true)
@supportsX86
export class MyNamespaceAddOn implements ClusterAddOn {
deploy(clusterInfo: ClusterInfo): Promise<Construct> {
const cluster = clusterInfo.cluster;
return Promise.resolve(createNamespace(myNamespaceName, cluster));
}
} I would still keep this open as efs driver should be able to support |
I will try this, i have my doubts since the reason that i added teams() in the first place was because my interpretation of the error i got was that create NS was not supported. |
I have tested now without the ...
"ResourceProperties": {
"ServiceToken": "arn:aws:lambda:us-east-1:211125531019:function:testEksStack-ProviderframeworkonEvent-uYCAE3ipZRup",
"PruneLabel": "aws.cdk.eks/prune-c8deef32ebxxxx",
"ClusterName": "test",
"Manifest": "[{\"apiVersion\":\"v1\",\"kind\":\"ServiceAccount\",\"metadata\":{\"name\":\"efs-csi-controller-sa\",\"namespace\":\"XXXX\",\"labels\":{\"aws.cdk.eks/prune-xxxx\":\"\",\"app.kubernetes.io/name\":\"efs-csi-controller-sa\"},\"annotations\":{\"eks.amazonaws.com/role-arn\":\"arn:aws:iam::211125531019:role/testEksStack-B9y\"}}}]",
... Error message:
|
After adding the |
@jesperalmstrom You are correct, the createNamespace logic is missing from the EFS addon as by default the addon is installed in kube-system. Let's keep it open to address the issue. |
@shapirov103 i have my suspicions that the |
Describe the bug
When trying to add a namespace to
EfsCsiDriverAddOn({namespace: nameSpace})
it fails with the following error:To try to fix this I added a Team with the namespace "XXXX"
const teamUepe = new blueprints.PlatformTeam({ name: nameSpace });
Then add the team before addons:
Still getting the same error.
Expected Behavior
EfsCsiDriverAddOn should be created after the namespace is created or add support for
createNamespace: true
Current Behavior
Fails with error message as seen above
Reproduction Steps
Possible Solution
EfsCsiDriverAddOn should be created after the namespace is created in or add support for
createNamespace: true
Additional Information/Context
No response
CDK CLI Version
2.156.0 ("aws-cdk-lib": "2.147.3")
EKS Blueprints Version
1.15.1
Node.js Version
v22.8.0
Environment details (OS name and version, etc.)
MacOs Sequoia 15.0
Other information
No response
The text was updated successfully, but these errors were encountered: