Skip to content

Commit

Permalink
remove auth stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
blakeromano committed Feb 27, 2024
1 parent 5e59d3d commit 1f2c01b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 24 deletions.
4 changes: 1 addition & 3 deletions pulumi/Pulumi.dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
clusterComponents: {}
4 changes: 1 addition & 3 deletions pulumi/Pulumi.hub.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,4 @@ config:
secretPath: "gitops/clusters/hub-cluster.yaml"
clusterType: "hub"
implementationType: "github"
clusterComponents: {}
# adminClusterIamRole: ""
adminClusterUser: "arn:aws:iam::753080021511:user/BlakeRomano"
clusterComponents: {}
18 changes: 0 additions & 18 deletions pulumi/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 1f2c01b

Please sign in to comment.