forked from aws-samples/cdk-eks-karpenter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.projenrc.js
50 lines (42 loc) · 1.5 KB
/
.projenrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
const { awscdk } = require('projen');
const { DependabotScheduleInterval } = require('projen/lib/github');
const PROJECT_NAME = 'cdk-eks-karpenter';
const project = new awscdk.AwsCdkConstructLibrary({
author: 'Andreas Lindh',
authorAddress: '[email protected]',
description: 'CDK construct library that allows you install Karpenter in an AWS EKS cluster',
keywords: ['eks', 'karpenter'],
cdkVersion: '2.12.0',
defaultReleaseBranch: 'main',
name: PROJECT_NAME,
repositoryUrl: 'https://github.com/aws-samples/cdk-eks-karpenter.git',
pullRequestTemplateContents: [
'---',
'*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*',
],
publishToPypi: {
distName: PROJECT_NAME,
module: 'cdk_eks_karpenter',
},
dependabot: true,
dependabotOptions: {
scheduleInterval: DependabotScheduleInterval.MONTHLY,
},
});
const common_excludes = [
'cdk.out/',
'cdk.context.json',
'.env',
];
project.gitignore.exclude(...common_excludes);
project.npmignore.exclude(...common_excludes);
project.addTask('test:deploy', {
exec: 'npx cdk deploy -a "npx ts-node -P tsconfig.dev.json --prefer-ts-exts test/integ.karpenter.ts"',
});
project.addTask('test:destroy', {
exec: 'npx cdk destroy -a "npx ts-node -P tsconfig.dev.json --prefer-ts-exts test/integ.karpenter.ts"',
});
project.addTask('test:synth', {
exec: 'npx cdk synth -a "npx ts-node -P tsconfig.dev.json --prefer-ts-exts test/integ.karpenter.ts"',
});
project.synth();