-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: remove path aliases and rewrite to default exports
- Loading branch information
1 parent
5a9fea4
commit 44cfa74
Showing
12 changed files
with
46 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,18 @@ | ||
import { ActionsOrganizationSecret } from '@pulumi/github' | ||
|
||
import * as environment from '~/shared/environment' | ||
|
||
import * as environment from '../shared/environment' | ||
import cluster from './cluster' | ||
|
||
type Options = { | ||
cluster: Awaited<ReturnType<typeof cluster>>, | ||
} | ||
|
||
export = async ( { cluster: { kubeconfig } }: Options ) => { | ||
const githubSecretsModule = async ( { cluster: { kubeconfig } }: Options ) => { | ||
new ActionsOrganizationSecret( 'kubeconfig-github-secret', { | ||
secretName: `${environment.name.toUpperCase()}__KUBECONFIG`, | ||
visibility: 'all', | ||
plaintextValue: kubeconfig, | ||
} ) | ||
} | ||
|
||
export default githubSecretsModule |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
import { getClientConfig } from '@pulumi/azure-native/authorization' | ||
|
||
export = async () => { | ||
const azureModule = async () => { | ||
const { subscriptionId, tenantId } = await getClientConfig() | ||
|
||
return { subscriptionId, tenantId } | ||
} | ||
|
||
export default azureModule |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
import azureModule from '~/shared/azure' | ||
import identityModule from '~/shared/identity' | ||
|
||
import azureModule from '../shared/azure' | ||
import identityModule from '../shared/identity' | ||
import keyVaultModule from './key-vault' | ||
|
||
export = async () => { | ||
const stack = async () => { | ||
const azure = await azureModule() | ||
|
||
const identity = await identityModule() | ||
|
||
await keyVaultModule( { azure, identity } ) | ||
} | ||
|
||
export = stack |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters