Skip to content

Commit

Permalink
automating secret creation
Browse files Browse the repository at this point in the history
  • Loading branch information
ajpaws committed Aug 28, 2024
1 parent 7bdb3db commit f68efa8
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@


import { ApplicationTeam } from '@aws-quickstart/eks-blueprints';
// import { Construct } from 'constructs';
import 'source-map-support/register';

import * as blueprints from '@aws-quickstart/eks-blueprints';

export class TeamSpoc extends ApplicationTeam {
// constructor(scope: Construct) {
constructor() {
super({
name: "argocd",
// users: getUserArns(scope, "team-burnham.users"),
teamSecrets: [
{
secretProvider: new blueprints.GenerateSecretManagerProvider('github-token', 'github-token')
}
]
});
}
}


// const blueprint = blueprints.EksBlueprint.builder()
// .version("auto")
// .addOns(addOn)
// .teams(new TeamBurnham(app))
// .build(app, 'my-stack-name');


6 changes: 5 additions & 1 deletion lib/crossplane-argocd-gitops/management-cluster-builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { UpboundCrossplaneAddOn } from './custom-addons/upbound-crossplane-addon
import { UpboundCrossplaneEKSProviderAddOn } from './custom-addons/upbound-crossplane-eks-provider-addon';
import { CrossplaneK8sProviderAddon } from './custom-addons/crossplane-k8s-provider-addon';
import { CrossplaneHelmProviderAddon } from './custom-addons/crossplane-helm-provider-addon';
import { TeamSpoc } from './custom-addons/secret-provider-secret';


const gitUrl = 'https://github.com/ajpaws/eks-blueprints-workloads.git';
Expand Down Expand Up @@ -69,6 +70,9 @@ export default class ManagementClusterBuilder {
.version(eks.KubernetesVersion.V1_29)
.enableNativePatternAddOns()
.enableControlPlaneLogging()
.addOns(...addOns);
.addOns(...addOns)
.teams(new TeamSpoc());
}
}


0 comments on commit f68efa8

Please sign in to comment.