crooked-pillow-11944
09/13/2021, 2:42 AMlittle-cartoon-10569
09/13/2021, 3:02 AMproud-pizza-80589
09/13/2021, 5:58 AMcrooked-pillow-11944
09/13/2021, 10:20 AMproud-pizza-80589
09/13/2021, 10:26 AMexport const ekseuropestaging = new Cluster()
in stack 1, and then
for (const provider in providers) {
for (const region in regions) {
for(const env in envs){
const provider = new k8s.Provider(subject.uniqueName, { kubeconfig: pulumi.unsecret(clusterStack.requireOutput(`${provider}${region}${env}`)),
suppressDeprecationWarnings: true,
})
}}}
export function getProvider(subject: ClusterServiceEntity, staging: boolean) {
// fetch the cluster and kubeconfig
const clusterStack = new pulumi.StackReference(
`settlemint/bpaas-clusters/${subject.provider.toLowerCase()}-${subject.region.toLowerCase()}${
staging ? '-staging' : ''
}`
);
return new k8s.Provider(subject.uniqueName, {
kubeconfig: pulumi.unsecret(clusterStack.requireOutput(`kubeconfig`)),
suppressDeprecationWarnings: true,
});
}
crooked-pillow-11944
09/13/2021, 10:59 AMproud-pizza-80589
09/13/2021, 12:37 PMcrooked-pillow-11944
09/13/2021, 12:59 PM