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

feat: add tenant api to create tenant resources for cloud #4

Merged
merged 1 commit into from
Aug 28, 2023

Conversation

Kaitou786
Copy link
Contributor

@Kaitou786 Kaitou786 commented Aug 27, 2023

Adding the initial version of the tenant API
This is based on a POST request and the cloud specified does the following:

  • Generates a random password for the database and encrypts it using sops with the specified
  • Creates all the required tenant resources; HelmRelease, namespace, secret
  • add the tenant in the specific location and add its entry into kustomization.yaml
  • creates a commit for it
  • send an automated PR to update the aws-sandbox repository

Test Plan:

Tested locally by passing the config file with correct credentials and things with the example tenant present on this diff.

see the opened diffs: https://github.com/flanksource/aws-sandbox/pull/166

closes #1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

API - Create new tenant
2 participants