-
Notifications
You must be signed in to change notification settings - Fork 59
Use Postgres for Grafana backend #2494
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 4 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -21,10 +21,7 @@ const cloudSqlEnterprisePlus = spliceConfig.pulumiProjectConfig.cloudSql.enterpr | |
| const project = gcp.organizations.getProjectOutput({}); | ||
|
|
||
| // use existing default network (needs to have a private vpc connection) | ||
| export const privateNetwork = gcp.compute.Network.get( | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In infra stack, we're already creating this resource, so when this is imported from infra stack, it triggers a duplicate resource error. AFAICT, all we need from here is the ID, so no real point in even creating this resource.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. sounds plausible |
||
| 'default', | ||
| pulumi.interpolate`projects/${project.name}/global/networks/default` | ||
| ); | ||
| export const privateNetworkId = pulumi.interpolate`projects/${project.name}/global/networks/default`; | ||
|
|
||
| export function generatePassword( | ||
| name: string, | ||
|
|
@@ -120,7 +117,7 @@ export class CloudPostgres extends pulumi.ComponentResource implements Postgres | |
| : undefined), | ||
| ipConfiguration: { | ||
| ipv4Enabled: false, | ||
| privateNetwork: privateNetwork.id, | ||
| privateNetwork: privateNetworkId, | ||
| enablePrivatePathForGoogleCloudServices: true, | ||
| }, | ||
| userLabels: opts.migrationId | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,7 +5,8 @@ | |
| "@pulumi/auth0": "3.21.0", | ||
| "@pulumi/kubernetes-cert-manager": "0.2.0", | ||
| "@pulumiverse/grafana": "0.16.3", | ||
| "@lfdecentralizedtrust/splice-pulumi-common": "1.0.0" | ||
| "@lfdecentralizedtrust/splice-pulumi-common": "1.0.0", | ||
| "@pulumi/gcp": "8.32.1" | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not 100% sure why having this in common did not suffice, but it didn't...
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. npm 🤷 |
||
| }, | ||
| "overrides": { | ||
| "@pulumi/kubernetes-cert-manager": { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is filtering out postgres ok? Isn't this one of the main stateful sets we have? It seems like we really should just filter out everything in the observability namespace no?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will push a fix for that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pushed