Skip to content

Commit

Permalink
Add pre-commit action and run pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
tjohnes committed Jan 24, 2024
1 parent d425a03 commit ab9d91d
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 19 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: pre-commit

on:
pull_request:
branches:
- "main"
push:
branches:
- "gh-actions"

jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-python@v3
with:
cache: "pip"
- uses: pre-commit/action@v3.0.0
12 changes: 7 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: tests

on:
pull_request:
branches:
Expand All @@ -19,16 +20,17 @@ jobs:
with:
fetch-depth: 0

- name: "Setup Python"
uses: "actions/setup-python@master"
with:
python-version: "3.11"

- name: "Setup Terraform"
uses: hashicorp/setup-terraform@v3
with:
terraform_version: "1.7.1"

- name: "Setup Python"
uses: "actions/setup-python@master"
with:
python-version: "3.11"
cache: "pip"

- name: "Install Python requirements"
run: |
pip install -U pip wheel
Expand Down
15 changes: 1 addition & 14 deletions examples/bootstrap/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,18 +47,5 @@ terraform destroy

| Name | Description |
|------|-------------|
| <a name="output_bastion_instance_id"></a> [bastion\_instance\_id](#output\_bastion\_instance\_id) | Bastion EC2 instance ID |
| <a name="output_bastion_security_group_id"></a> [bastion\_security\_group\_id](#output\_bastion\_security\_group\_id) | Bastion security group ID |
| <a name="output_cluster_name"></a> [cluster\_name](#output\_cluster\_name) | Cluster name |
| <a name="output_key_pair_filename"></a> [key\_pair\_filename](#output\_key\_pair\_filename) | Key pair name.<br>This is assigned to the Bastion instance, and may be assigned to worker node instances. |
| <a name="output_key_pair_name"></a> [key\_pair\_name](#output\_key\_pair\_name) | Key pair name.<br>This is assigned to the Bastion instance, and may be assigned to worker node instances. |
| <a name="output_kubeconfig_path"></a> [kubeconfig\_path](#output\_kubeconfig\_path) | Path to the generated kubeconfig file |
| <a name="output_name_prefix"></a> [name\_prefix](#output\_name\_prefix) | Used as a prefix for the 'Name' tag for each created resource |
| <a name="output_node_iam_instance_profile_name"></a> [node\_iam\_instance\_profile\_name](#output\_node\_iam\_instance\_profile\_name) | Worker node IAM instance profile name |
| <a name="output_node_iam_role_name"></a> [node\_iam\_role\_name](#output\_node\_iam\_role\_name) | Worker node IAM role name |
| <a name="output_oidc_issuer"></a> [oidc\_issuer](#output\_oidc\_issuer) | Cluster OIDC issuer URL |
| <a name="output_oidc_provider"></a> [oidc\_provider](#output\_oidc\_provider) | IAM OIDC provider for the cluster OIDC issuer URL |
| <a name="output_placement_group_name"></a> [placement\_group\_name](#output\_placement\_group\_name) | Placement group name.<br>Worker node instances may be started in this placement group to cluster instances close together. |
| <a name="output_private_subnet_ids"></a> [private\_subnet\_ids](#output\_private\_subnet\_ids) | Subnet IDs of the two private subnets |
| <a name="output_vpc_id"></a> [vpc\_id](#output\_vpc\_id) | VPC ID |
| <a name="output_bootstrap"></a> [bootstrap](#output\_bootstrap) | Bootstrap module outputs |
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->

0 comments on commit ab9d91d

Please sign in to comment.