diff --git a/lib/multi-acc-new-eks-mixed-observability-pattern/pipeline.ts b/lib/multi-acc-new-eks-mixed-observability-pattern/pipeline.ts index 4483786e..0fd8e8e4 100644 --- a/lib/multi-acc-new-eks-mixed-observability-pattern/pipeline.ts +++ b/lib/multi-acc-new-eks-mixed-observability-pattern/pipeline.ts @@ -195,34 +195,4 @@ export class PipelineMultiEnvMonitoring { }); } -} - -function createArgoAddonConfig(repoUrl: string, path: string, branch?: string, repoType?: repoTypeValues): blueprints.ArgoCDAddOn { - - branch = branch! || 'main'; - repoType = repoType! || 'public'; - - let ArgoCDAddOnProps: blueprints.ArgoCDAddOnProps; - - if (repoType.toLocaleLowerCase() === 'public') { - ArgoCDAddOnProps = { - bootstrapRepo: { - repoUrl: repoUrl, - path: path, - targetRevision: branch, - }, - }; - } else { - - ArgoCDAddOnProps = { - bootstrapRepo: { - repoUrl: repoUrl, - path: path, - targetRevision: branch, - credentialsSecretName: 'github-ssh-key', // for access to private repo. This needs SecretStoreAddOn added to your cluster. Ensure github-ssh-key secret exists in pipeline account at COA_REGION - credentialsType: 'SSH', - }, - }; - } - return new blueprints.ArgoCDAddOn(ArgoCDAddOnProps); } \ No newline at end of file