From 1f2c01ba32b6163240021e32f8958455e9488690 Mon Sep 17 00:00:00 2001
From: Blake R <85771645+blakeromano@users.noreply.github.com>
Date: Mon, 26 Feb 2024 19:26:28 -0700
Subject: [PATCH] remove auth stuff

---
 pulumi/Pulumi.dev.yaml |  4 +---
 pulumi/Pulumi.hub.yaml |  4 +---
 pulumi/index.ts        | 18 ------------------
 3 files changed, 2 insertions(+), 24 deletions(-)

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,