Skip to content

Commit 4b692b8

Browse files
authored
Revert "chore: onboarding kubecost addon (#37)" (#38)
This reverts commit 8db3f90.
1 parent 8db3f90 commit 4b692b8

3 files changed

Lines changed: 2 additions & 29 deletions

File tree

src/constructs/core-addon.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -92,16 +92,4 @@ export class KubeProxyAddon extends CoreAddonAbstract {
9292
serviceAccountName: 'kube-proxy',
9393
});
9494
}
95-
}
96-
97-
export class KubeCostAddon extends CoreAddonAbstract {
98-
/**
99-
*
100-
*/
101-
constructor(scope: Construct, id: string, props: CoreAddonProps) {
102-
super(scope, id, {
103-
...props,
104-
addonName: 'kubecost_kubecost',
105-
});
106-
}
10795
}

src/constructs/eks-cluster.ts

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import * as kms from 'aws-cdk-lib/aws-kms';
66
import * as lambda from 'aws-cdk-lib/aws-lambda';
77
import { Construct } from 'constructs';
88
import { CommonHelmCharts, StandardHelmProps } from './common-helm-charts';
9-
import { CoreDnsAddon, KubeProxyAddon, KubeCostAddon } from './core-addon';
9+
import { CoreDnsAddon, KubeProxyAddon } from './core-addon';
1010
import {
1111
VpcCniAddonVersion,
1212
VpcEniAddon,
@@ -105,7 +105,6 @@ export interface EKSClusterProps {
105105
readonly addonProps?: AddonProps;
106106
readonly coreDnsAddonProps?: CoreAddonValuesProps;
107107
readonly kubeProxyAddonProps?: CoreAddonValuesProps;
108-
readonly kubeCostAddonProps?: CoreAddonValuesProps;
109108
readonly region: string;
110109
}
111110

@@ -412,19 +411,6 @@ export class EKSCluster extends Construct {
412411
});
413412
}
414413

415-
if (props.kubeCostAddonProps) {
416-
const kubeDnsAddonConfig = this.props.kubeCostAddonProps?.addonVersion && this.props.kubeCostAddonProps?.configurationValues
417-
? { addonVersion: this.props.kubeCostAddonProps?.addonVersion, configurationValues: this.props.kubeCostAddonProps?.configurationValues }
418-
: { addonVersion: this.props.kubeCostAddonProps?.addonVersion };
419-
420-
new KubeCostAddon(this, 'KubeCostAddon', {
421-
cluster: this.cluster,
422-
...kubeDnsAddonConfig,
423-
resolveConflicts: true,
424-
});
425-
}
426-
427-
428414
const storageclassDefault = new eks.KubernetesManifest(this, 'gp2', {
429415
overwrite: true,
430416
cluster: this.cluster,

src/constructs/eks-managed-addon.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import * as cdk from 'aws-cdk-lib';
22
import * as eks from 'aws-cdk-lib/aws-eks';
33
import * as iam from 'aws-cdk-lib/aws-iam';
44
import { Construct } from 'constructs';
5-
65
export interface VpcCniAddonProps extends EksManagedAddonProps {
76
readonly addonVersion?: VpcCniAddonVersion;
87
readonly configurationValues?: string;
@@ -209,4 +208,4 @@ export class VpcEniAddon extends EksManagedAddonAbstract {
209208
awsManagedPolicyName: 'AmazonEKS_CNI_Policy',
210209
});
211210
}
212-
}
211+
}

0 commit comments

Comments
 (0)