Skip to content
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

[openfga] Configure cloud-sql-proxy sidecar #15692

Merged
merged 1 commit into from
Jan 12, 2023

Conversation

easyCZ
Copy link
Member

@easyCZ easyCZ commented Jan 11, 2023

Description

Adds a cloud-sql-proxy sidecar to the openfga deployment, if a CloudSQL config is specified.

We require that the openfga deployment talks to a database in a single region. That means we can't use the existing cloud-sql-proxy because that is configured to talk to a regional instance.

Related Issue(s)

How to test

Not really testable in preview, will need to validate on staging with config.

Release Notes

NONE

Documentation

Werft options:

  • /werft with-local-preview
    If enabled this will build install/preview
  • /werft with-preview
  • /werft with-large-vm
  • /werft with-integration-tests=all
    Valid options are all, workspace, webapp, ide, jetbrains, vscode, ssh

@easyCZ easyCZ requested review from a team January 11, 2023 13:59
@github-actions github-actions bot added team: SID team: webapp Issue belongs to the WebApp team labels Jan 11, 2023
@easyCZ easyCZ force-pushed the mp/openfga-cloud-sql-proxy-sidecar branch from eada9e6 to 4b355ce Compare January 11, 2023 13:59
@easyCZ easyCZ force-pushed the mp/openfga-cloud-sql-proxy-sidecar branch from 4b355ce to a3c2f52 Compare January 12, 2023 08:23
Comment on lines +62 to +65
Requests: corev1.ResourceList{
"cpu": resource.MustParse("1m"),
"memory": resource.MustParse("30Mi"),
},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where are these resource limits taken from, or are they an initial best guess?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

An initial one, just picked something small. They are just requests (not limits) so it will realistically consume more

@roboquat roboquat merged commit 0c84d03 into main Jan 12, 2023
@roboquat roboquat deleted the mp/openfga-cloud-sql-proxy-sidecar branch January 12, 2023 08:50
@roboquat roboquat added the deployed: webapp Meta team change is running in production label Jan 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deployed: webapp Meta team change is running in production release-note-none size/L team: SID team: webapp Issue belongs to the WebApp team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants