diff --git a/pulumi/Pulumi.dev.yaml b/pulumi/Pulumi.dev.yaml index 3a20c87..f83ec35 100644 --- a/pulumi/Pulumi.dev.yaml +++ b/pulumi/Pulumi.dev.yaml @@ -8,6 +8,4 @@ config: githubRepo: "gitopscon-2024-na-demo" secretPath: "gitops/clusters/dev-cluster.yaml" implementationType: "github" - clusterComponents: {} - # adminClusterIamRole: "" - adminClusterUser: "arn:aws:iam::753080021511:user/BlakeRomano" \ No newline at end of file + clusterComponents: {} \ No newline at end of file diff --git a/pulumi/Pulumi.hub.yaml b/pulumi/Pulumi.hub.yaml index 506417c..0e9e75a 100644 --- a/pulumi/Pulumi.hub.yaml +++ b/pulumi/Pulumi.hub.yaml @@ -7,6 +7,4 @@ config: secretPath: "gitops/clusters/hub-cluster.yaml" clusterType: "hub" implementationType: "github" - clusterComponents: {} - # adminClusterIamRole: "" - adminClusterUser: "arn:aws:iam::753080021511:user/BlakeRomano" \ No newline at end of file + clusterComponents: {} \ No newline at end of file diff --git a/pulumi/index.ts b/pulumi/index.ts index c91ee66..192ea40 100644 --- a/pulumi/index.ts +++ b/pulumi/index.ts @@ -6,26 +6,8 @@ import { GitOpsClusterConfig } from "./github" const stackName = pulumi.getStack() const config = new pulumi.Config() -let adminRole = config.get("adminClusterIamRole") -let adminUser = config.get("adminClusterUser") let roleMappings: eks.RoleMapping[] = [] -let userMappings: eks.UserMapping[] = [] - -if (adminRole !== undefined) { - roleMappings.push({ - roleArn: adminRole as string, - groups: ["system:masters"], - username: adminRole as string, - }) -} -if (adminUser !== undefined) { - userMappings.push({ - userArn: adminUser as string, - groups: ["system:masters"], - username: adminUser as string, - }) -} export const outputs: {[key: string]: any} = { "stackName": stackName,