Skip to content

Commit

Permalink
removed createArgoAddonConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
iamprakkie committed Oct 6, 2023
1 parent 57e961e commit 29a18b7
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions lib/multi-acc-new-eks-mixed-observability-pattern/pipeline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

0 comments on commit 29a18b7

Please sign in to comment.