Commit 880bd9e 1 parent 749b5de commit 880bd9e Copy full SHA for 880bd9e
File tree 5 files changed +17
-8
lines changed
5 files changed +17
-8
lines changed Original file line number Diff line number Diff line change 1
1
import { runtime } from '@pulumi/pulumi' ;
2
2
3
+ const ignoredTags = [
4
+ 'group:Group' ,
5
+ 'application:Application' ,
6
+ 'applicationPassword:ApplicationPassword' ,
7
+ 'servicePrincipal:ServicePrincipal' ,
8
+ 'servicePrincipalPassword:ServicePrincipalPassword' ,
9
+ 'kubernetes' ,
10
+ ] ;
11
+
3
12
export function registerAutoTags ( autoTags : Record < string , string > ) : void {
4
13
runtime . registerStackTransformation ( ( args ) => {
14
+ //Check and ignore tag
15
+ if ( ignoredTags . find ( ( t ) => args . type . includes ( t ) ) )
16
+ return { props : args . props , opts : args . opts } ;
17
+
18
+ //Apply default tag
5
19
args . props [ 'tags' ] = { ...args . props [ 'tags' ] , ...autoTags } ;
6
20
return { props : args . props , opts : args . opts } ;
7
21
} ) ;
Original file line number Diff line number Diff line change 1
1
import * as pulumi from '@pulumi/pulumi' ;
2
- import { KeyVaultInfo } from 'drunk-pulumi /types' ;
2
+ import { KeyVaultInfo } from '.. /types' ;
3
3
import { getKeyVaultBase } from '../AzBase/KeyVaultBase' ;
4
4
import {
5
5
BaseOptions ,
Original file line number Diff line number Diff line change 9
9
BaseProvider ,
10
10
} from '../CustomProviders/Base' ;
11
11
import { DefaultAzureCredential } from '@azure/identity' ;
12
- import { subscriptionId } from 'drunk-pulumi /Common/AzureEnv' ;
12
+ import { subscriptionId } from '.. /Common/AzureEnv' ;
13
13
14
14
interface CdnManagedHttpsParameters {
15
15
certificateSource : 'Cdn' ;
Original file line number Diff line number Diff line change 3
3
import axios from 'axios' ;
4
4
import { urlJoin } from 'url-join-ts' ;
5
5
import { DefaultAzureCredential } from '@azure/identity' ;
6
- import { subscriptionId } from 'drunk-pulumi /Common/AzureEnv' ;
6
+ import { subscriptionId } from '.. /Common/AzureEnv' ;
7
7
8
8
export const createAxios = ( ) => {
9
9
const credentials = new DefaultAzureCredential ( ) ;
Original file line number Diff line number Diff line change 13
13
"forceConsistentCasingInFileNames" : true ,
14
14
"noImplicitAny" : true ,
15
15
"strict" : true ,
16
- "paths" : {
17
- "drunk-pulumi/*" : [
18
- "./*"
19
- ]
20
- }
21
16
} ,
22
17
"files" : [
23
18
"Aks/Helper.ts" ,
You can’t perform that action at this time.
0 commit comments