-
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
ApplicationTeam: Deployment does not create namespace for ApplicationTeam #675
Comments
@vahiwe I am taking a look now, however, just making sure you saw this note if you modified any of the existing patterns: https://github.com/aws-samples/cdk-eks-blueprints-patterns#developer-flow Wanted to make sure you ran |
Okay, Thanks @shapirov103 This is what my starter code looks like currently for context class TeamAwesome extends ApplicationTeam {
constructor(app: App) {
super({
name: "team-awesome",
users: [
new ArnPrincipal(`arn:aws:iam::${account}:user/xxxxxx`),
],
namespaceLabels: {
appName: "example",
},
namespaceHardLimits: {
"requests.cpu" : "1000m",
"requests.memory" : "4Gi",
"limits.cpu" : "2000m",
"limits.memory" : "8Gi",
}
});
}
}
class TeamCool extends PlatformTeam {
constructor(app: App) {
super({
name: "team-cool",
users: [
new ArnPrincipal(`arn:aws:iam::${account}:user/xxxxx`)
]
});
}
}
const teams: Array<blueprints.Team> = [
new TeamAwesome(app),
new TeamCool(app),
];
blueprints.EksBlueprint.builder()
.account(account)
.region(region)
.addOns(...addOns)
.teams(...teams)
.build(app, 'eks-blueprint'); My intention is to use the cdk blueprint to create teams and manage access to the cluster as described in the docs. I believe I am not modifying any of the existing patterns. Simply extending them. |
@vahiwe that looks very much as designed, so no issue there. However, if add any new code, or extend (the way you did), compile should be run ahead of deploy. |
Hello @shapirov103, I'm still not getting the team related resources even after running |
I'm seeing the same exact behavior in |
@keithharvey we are trying to reproduce this issue, unfortunately unsuccessfully.
|
|
@keithharvey is your blueprint somewhere on GitHub that you can share with us? 0 changes detected implies, that you already ran the stack with that name.
The test example that we used is here:
code: #!/usr/bin/env node
import 'source-map-support/register';
import * as blueprints from "@aws-quickstart/eks-blueprints";
import * as cdk from "aws-cdk-lib";
import * as iam from "aws-cdk-lib/aws-iam";
const app = new cdk.App();
const account = process.env.CDK_DEFAULT_ACCOUNT;
class TeamAwesome extends blueprints.ApplicationTeam {
constructor(app: cdk.App) {
super({
name: "team-awesome",
users: [
new iam.ArnPrincipal(`arn:aws:iam::${account}:user/xxxxxx`),
],
namespaceLabels: {
appName: "example",
},
namespaceHardLimits: {
"requests.cpu" : "1000m",
"requests.memory" : "4Gi",
"limits.cpu" : "2000m",
"limits.memory" : "8Gi",
}
});
}
}
class TeamCool extends blueprints.PlatformTeam {
constructor(app: cdk.App) {
super({
name: "team-cool",
users: [
new iam.ArnPrincipal(`arn:aws:iam::${account}:user/xxxxx`)
]
});
}
}
const teams: Array<blueprints.Team> = [
new TeamAwesome(app),
new TeamCool(app),
];
blueprints.EksBlueprint.builder()
.account(account)
.region("us-east-1")
.addOns(new blueprints.AwsLoadBalancerControllerAddOn)
.teams(...teams)
.build(app, 'eks-blueprint-with-teams'); |
@vahiwe Closing this issue as there is movement for 4 months and we have not heardback. Please reach back if you still face the issue. |
Describe the bug
When a new cluster is provisioned using the example codebase, the ApplicationTeam resources are not created.
Expected Behavior
On creation the ApplicationTeam should do the following:
Current Behavior
No changes are detected on
cdk deploy
.Reproduction Steps
https://aws-quickstart.github.io/cdk-eks-blueprints/getting-started/
https://aws-quickstart.github.io/cdk-eks-blueprints/teams/teams/
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.77.0
EKS Blueprints Version
1.7.2
Node.js Version
18.12.1
Environment details (OS name and version, etc.)
Mac OS
Other information
No response
The text was updated successfully, but these errors were encountered: