You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(spaces): adds spaces + consolidates with the template (#62)
## what
- This adds Spacelift Spaces and tests for them
- Introduces a bunch of fixes and improvements from template module.
## why
- Keeping our automation modules in order.
## references
-
[INT-70](https://www.notion.so/masterpoint/Move-Spacelift-Spaces-into-Automation-module-1e0859758a56807d9a20d15b3aac4136?pvs=4)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
- **New Features**
- Added support for managing multiple Spacelift Spaces dynamically via a
new input variable.
- Introduced a new resource for Spacelift Spaces with configurable
attributes.
- **Documentation**
- Enhanced README with branding, organizational info, contribution
guidelines, and updated Terraform provider constraints.
- Added and updated configuration files for automated documentation
generation.
- **Chores**
- Updated code owners and improved various configuration files for
review, linting, and automation tools.
- Upgraded tool and action versions across workflows and dependency
management.
- **Tests**
- Added and updated tests to verify correct creation and configuration
of Spacelift Spaces.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
Copy file name to clipboardExpand all lines: .coderabbit.yaml
+10-5Lines changed: 10 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,7 @@ language: en
7
7
tone_instructions: |
8
8
Provide feedback in a professional, friendly, constructive, and concise tone.
9
9
Offer clear, specific suggestions and best practices to help enhance the code quality and promote learning.
10
+
Be concise and only comment on significant issues.
10
11
11
12
early_access: true
12
13
@@ -26,21 +27,25 @@ knowledge_base:
26
27
reviews:
27
28
profile: chill
28
29
auto_review:
29
-
# Ignore reviewing if the title of the pull request contains any of these keywords (case-insensitive)
30
+
# Disable incremental code review on each push
31
+
auto_incremental_review: false
32
+
# The keywords are case-insensitive
30
33
ignore_title_keywords:
31
34
- wip
32
35
- draft
33
36
- test
34
-
# Set the commit status to 'pending' when the review is in progress and 'success' when it is complete.
35
37
commit_status: false
36
-
# Post review details on each review. Additionally, post a review status when a review is skipped in certain cases.
37
-
review_status: false
38
38
path_instructions:
39
39
- path: "**/*.tf"
40
40
instructions: |
41
-
You're a Terraform expert who has thoroughly studied all the documentation from Hashicorp https://developer.hashicorp.com/terraform/docs and OpenTofu https://opentofu.org/docs/.
41
+
You're a Terraform expert who has thoroughly studied all the documentation from Hashicorp https://developer.hashicorp.com/terraform/docs and OpenTofu https://opentofu.org/docs/.
42
42
You have a strong grasp of Terraform syntax and prioritize providing accurate and insightful code suggestions.
43
43
As a fan of the Cloud Posse / SweetOps ecosystem, you incorporate many of their best practices https://docs.cloudposse.com/best-practices/terraform/ while balancing them with general Terraform guidelines.
44
+
changed_files_summary: false
45
+
poem: false
46
+
# Don't post review details on each review.
47
+
review_status: false
48
+
sequence_diagrams: false
44
49
tools:
45
50
# By default, all tools are enabled.
46
51
# Masterpoint uses Trunk (https://trunk.io) so we do not need a lot of this feedback due to overlap.
💡 Learn more about Masterpoint [below](#who-we-are-𐦂𖨆𐀪𖠋).
8
+
9
+
## Purpose and Functionality
4
10
5
11
This Terraform child module provides infrastructure automation for projects in [Spacelift](https://docs.spacelift.io/).
6
12
7
-
## Overview
13
+
###Overview
8
14
9
15
This `spacelift-automation` child module is designed to streamline the deployment and management of all Spacelift infrastructure, including creating a Spacelift Stack to manage itself.
10
16
@@ -225,7 +231,7 @@ This is to support easy local and outside-spacelift operations. Keeping variable
225
231
226
232
<!-- prettier-ignore-start -->
227
233
<!-- markdownlint-disable -->
228
-
<!-- BEGIN_TF_DOCS -->
234
+
<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
229
235
## Requirements
230
236
231
237
| Name | Version |
@@ -238,8 +244,8 @@ This is to support easy local and outside-spacelift operations. Keeping variable
| [jsonschema_validator.runtime_overrides](https://registry.terraform.io/providers/bpedman/jsonschema/latest/docs/data-sources/validator) | data source |
@@ -307,6 +314,7 @@ This is to support easy local and outside-spacelift operations. Keeping variable
307
314
| <a name="input_runtime_overrides"></a> [runtime\_overrides](#input\_runtime\_overrides) | Runtime overrides that are merged into the stack config.<br/> This allows for per-root-module overrides of the stack resources at runtime<br/> so you have more flexibility beyond the variable defaults and the static stack config files.<br/> Keys are the root module names and values match the StackConfig schema.<br/> See `stack-config.schema.json` for full details on the schema and<br/> `tests/fixtures/multi-instance/root-module-a/stacks/default-example.yaml` for a complete example. | `any` | `{}` | no |
308
315
| <a name="input_space_id"></a> [space\_id](#input\_space\_id) | Place the created stacks in the specified space\_id. Mutually exclusive with space\_name. | `string` | `null` | no |
309
316
| <a name="input_space_name"></a> [space\_name](#input\_space\_name) | Place the created stacks in the specified space\_name. Mutually exclusive with space\_id. | `string` | `null` | no |
317
+
| <a name="input_spaces"></a> [spaces](#input\_spaces) | A map of Spacelift Spaces to create | <pre>map(object({<br/> description = optional(string, null)<br/> inherit_entities = optional(bool, false)<br/> labels = optional(list(string), null)<br/> parent_space_id = optional(string, "root")<br/> }))</pre> | `{}` | no |
310
318
| <a name="input_terraform_smart_sanitization"></a> [terraform\_smart\_sanitization](#input\_terraform\_smart\_sanitization) | Indicates whether runs on this will use terraform's sensitive value system to sanitize<br/>the outputs of Terraform state and plans in spacelift instead of sanitizing all fields. | `bool` | `false` | no |
311
319
| <a name="input_terraform_version"></a> [terraform\_version](#input\_terraform\_version) | Terraform version to use. | `string` | `"1.7.2"` | no |
312
320
| <a name="input_terraform_workflow_tool"></a> [terraform\_workflow\_tool](#input\_terraform\_workflow\_tool) | Defines the tool that will be used to execute the workflow.<br/>This can be one of OPEN\_TOFU, TERRAFORM\_FOSS or CUSTOM. | `string` | `"OPEN_TOFU"` | no |
@@ -317,22 +325,69 @@ This is to support easy local and outside-spacelift operations. Keeping variable
317
325
| Name | Description |
318
326
|------|-------------|
319
327
| <a name="output_spacelift_stacks"></a> [spacelift\_stacks](#output\_spacelift\_stacks) | A map of Spacelift stacks with selected attributes.<br/>To reduce the risk of accidentally exporting sensitive data, only a subset of attributes is exported. |
320
-
<!-- END_TF_DOCS -->
328
+
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
321
329
<!-- markdownlint-enable -->
322
330
<!-- prettier-ignore-end -->
323
331
324
-
## Contributing
332
+
## Built By
333
+
334
+
Powered by the [Masterpoint team](https://masterpoint.io/who-we-are/) and driven forward by contributions from the community ❤️
Found an issue or want to request a feature? [Open an issue](https://github.com/masterpointio/terraform-spacelift-automation/issues/new)
342
+
Found an issue or want to request a feature? [Open an issue][issues-url]
329
343
330
-
Want to fix a bug you found or add some functionality?
331
-
Fork, clone, commit, push, and PR and we'll check it out.
344
+
Want to fix a bug you found or add some functionality? Fork, clone, commit, push, and PR — we'll check it out.
332
345
333
-
If you have any issues or are waiting a long time for a PR to get merged then
334
-
feel free to ping us at [hello@masterpoint.io](mailto:hello@masterpoint.io).
346
+
## Who We Are 𐦂𖨆𐀪𖠋
335
347
336
-
## Built By
348
+
Established in 2016, Masterpoint is a team of experienced software and platform engineers specializing in Infrastructure as Code (IaC). We provide expert guidance to organizations of all sizes, helping them leverage the latest IaC practices to accelerate their engineering teams.
349
+
350
+
### Our Mission
351
+
352
+
Our mission is to simplify cloud infrastructure so developers can innovate faster, safer, and with greater confidence. By open-sourcing tools and modules that we use internally, we aim to contribute back to the community, promoting consistency, quality, and security.
353
+
354
+
### Our Commitments
355
+
356
+
- 🌟 **Open Source**: We live and breathe open source, contributing to and maintaining hundreds of projects across multiple organizations.
357
+
- 🌎 **1% for the Planet**: Demonstrating our commitment to environmental sustainability, we are proud members of [1% for the Planet](https://www.onepercentfortheplanet.org), pledging to donate 1% of our annual sales to environmental nonprofits.
358
+
- 🇺🇦 **1% Towards Ukraine**: With team members and friends affected by the ongoing [Russo-Ukrainian war](https://en.wikipedia.org/wiki/Russo-Ukrainian_War), we donate 1% of our annual revenue to invasion relief efforts, supporting organizations providing aid to those in need. [Here's how you can help Ukraine with just a few clicks](https://masterpoint.io/updates/supporting-ukraine/).
359
+
360
+
## Connect With Us
361
+
362
+
We're active members of the community and are always publishing content, giving talks, and sharing our hard earned expertise. Here are a few ways you can see what we're up to:
0 commit comments