osinfra-io / google-cloud-kubernetes

Infrastructure as Code (IaC) example for Google Cloud Platform Kubernetes resources.
https://www.osinfra.io
GNU General Public License v2.0
1 stars 0 forks source link

Enable onboarding #12

Closed brettcurtis closed 8 months ago

brettcurtis commented 9 months ago

Summary by CodeRabbit

coderabbitai[bot] commented 9 months ago

Walkthrough

The changes in this update focus on streamlining the onboarding process for Kubernetes clusters within a GitHub organization's infrastructure. This involves refining workflows for different environments, updating Terraform configurations for Google Kubernetes Engine (GKE), and introducing a GitHub issue template for managing Kubernetes namespaces. The overarching goal is to simplify the cluster consumption process, reduce the complexity of managing dependencies across multiple repositories, and enhance the workflow efficiency for platform developers.

Changes

File Path Change Summary
.github/ISSUE_TEMPLATE/add-update-k8s-namespace.yml Added GitHub issue template for adding or updating Kubernetes namespaces.
.github/workflows/non-production.yml,
.github/workflows/production.yml,
.github/workflows/sandbox.yml
Modified Terraform plan arguments and added new workflows for different environments.
.pre-commit-config.yaml Updated pre-commit-terraform to v1.86.0.
.global/infra/README.md,
global/infra/main.tf,
global/infra/variables.tf
Introduced new input variable and module for GKE configurations.
infracost.yml.tmpl Modified path generation and naming logic based on the matched workflow.
regional/infra/.terraform.lock.hcl,
regional/infra/README.md,
regional/infra/main.tf,
regional/infra/outputs.tf,
regional/infra/tfvars/us-east1-sandbox.tfvars
Updated provider versions, added new outputs, and modified configurations for GKE.
shared/tfvars/onboarding-non-production.tfvars,
shared/tfvars/onboarding-production.tfvars,
shared/tfvars/onboarding-sandbox.tfvars
Introduced configurations for namespaces and service accounts.
.coderabbit.yaml Introduced configuration settings for CodeRabbit.

Related issues

Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share - [X](https://twitter.com/intent/tweet?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A&url=https%3A//coderabbit.ai) - [Mastodon](https://mastodon.social/share?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A%20https%3A%2F%2Fcoderabbit.ai) - [Reddit](https://www.reddit.com/submit?title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&text=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code.%20Check%20it%20out%3A%20https%3A//coderabbit.ai) - [LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fcoderabbit.ai&mini=true&title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&summary=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code)

Tips ### Chat with CodeRabbit Bot (`@coderabbitai`) - You can directly reply to a review comment made by CodeRabbit. Example: - `I pushed a fix in commit .` - `Generate unit-tests for this file.` - You can tag CodeRabbit on specific lines of code or entire files in the PR by tagging `@coderabbitai` in a comment. Examples: - `@coderabbitai generate unit tests for this file.` - `@coderabbitai modularize this function.` - You can tag `@coderabbitai` in a PR comment and ask questions about the PR and the codebase. Examples: - `@coderabbitai generate interesting stats about this repository from git and render them as a table.` - `@coderabbitai show all the console.log statements in this repository.` - `@coderabbitai read src/utils.ts and generate unit tests.` - `@coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid.` - `@coderabbitai read the files in the src/scheduler package and generate README in the markdown format.` Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. ### CodeRabbit Commands (invoked as PR comments) - `@coderabbitai pause` to pause the reviews on a PR. - `@coderabbitai resume` to resume the paused reviews. - `@coderabbitai review` to trigger a review. This is useful when automatic reviews are disabled for the repository. - `@coderabbitai resolve` resolve all the CodeRabbit review comments. - `@coderabbitai help` to get help. Additionally, you can add `@coderabbitai ignore` anywhere in the PR description to prevent this PR from being reviewed. ### CodeRabbit Configration File (`.coderabbit.yaml`) - You can programmatically configure CodeRabbit by adding a `.coderabbit.yaml` file to the root of your repository. - The JSON schema for the configuration file is available [here](https://coderabbit.ai/integrations/coderabbit-overrides.v2.json). - If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: `# yaml-language-server: $schema=https://coderabbit.ai/integrations/coderabbit-overrides.v2.json` ### CodeRabbit Discord Community Join our [Discord Community](https://discord.com/invite/GsXnASn26c) to get help, request features, and share feedback.
infracost[bot] commented 9 months ago

Infracost report

💰 Monthly cost will not change

Cost details ``` ────────────────────────────────── 120 cloud resources were detected: ∙ 3 were estimated, all of which include usage-based costs, see https://infracost.io/usage-file ∙ 114 were free, rerun with --show-skipped to see details ∙ 3 are not supported yet, rerun with --show-skipped to see details ```

Governance checks

🟢 50 passed
48 FinOps policies, 1 Tagging policy, and 1 Guardrail passed.

View in Infracost Cloud. This comment will be updated when code changes.

brettcurtis commented 9 months ago

@coderabbitai can you add this PR to the tasklist in osinfra-io/platform-google-cloud-kubernetes#1 ?

coderabbitai[bot] commented 9 months ago

It appears that the GitHub CLI does not support adding a checklist item directly to a discussion using the --add-checklist-item flag. To add this PR to the tasklist in the discussion, I would need to manually edit the discussion comment and include the PR in the tasklist format.

Since I cannot perform manual actions, I would recommend that you or another contributor with the necessary permissions update the discussion to include the PR in the tasklist. If you would like, I can provide the markdown format for the tasklist item that you can copy and paste into the discussion.

Would you like me to provide the markdown format for the tasklist item?

Analysis chain @brettcurtis, to add this PR to the tasklist in osinfra-io/platform-google-cloud-kubernetes#1, I will use the GitHub CLI to create a checklist item in the specified discussion. I'll proceed with this now.
Scripts executed The following scripts were executed for the analysis: --- Script: ```shell #!/bin/bash # Add a checklist item to the discussion osinfra-io/platform-google-cloud-kubernetes#1 in the osinfra-io/github-organization-discussions repository gh issue edit 6 --add-checklist-item "Review and merge PR #12 for onboarding services to GKE - https://github.com/osinfra-io/google-cloud-kubernetes/pull/12" --repo osinfra-io/github-organization-discussions ``` Length of output: 1024
brettcurtis commented 9 months ago

@coderabbitai review