-
Notifications
You must be signed in to change notification settings - Fork 468
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Re-enabling pre-commit and fixing issues (#865)
- Loading branch information
1 parent
33eab94
commit 658b582
Showing
66 changed files
with
720 additions
and
375 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,43 +3,57 @@ name: Pull Request | |
on: | ||
pull_request: | ||
branches: | ||
- main | ||
- main | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
build-website: | ||
name: 'Build website' | ||
name: "Build website" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
- name: Use Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18 | ||
- name: Get kubectl version | ||
run: | | ||
source hack/lib/kubectl-version.sh | ||
echo "Using kubectl ${KUBECTL_VERSION}" | ||
echo "KUBECTL_VERSION=$KUBECTL_VERSION" >> $GITHUB_ENV | ||
- uses: azure/setup-kubectl@v3 | ||
with: | ||
version: '${{ env.KUBECTL_VERSION }}' | ||
id: install | ||
- name: Run website build | ||
working-directory: website | ||
run: | | ||
npm install | ||
npm run build | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
- name: Use Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18 | ||
- name: Get kubectl version | ||
run: | | ||
source hack/lib/kubectl-version.sh | ||
echo "Using kubectl ${KUBECTL_VERSION}" | ||
echo "KUBECTL_VERSION=$KUBECTL_VERSION" >> $GITHUB_ENV | ||
- uses: azure/setup-kubectl@v3 | ||
with: | ||
version: "${{ env.KUBECTL_VERSION }}" | ||
id: install | ||
- name: Run website build | ||
working-directory: website | ||
run: | | ||
npm install | ||
npm run build | ||
build-lab: | ||
name: 'Build lab' | ||
name: "Build lab" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
- name: Make shell | ||
run: | | ||
make shell shell_simple_command='ls' | ||
pre-commit: | ||
name: "Pre-commit hooks" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
- name: Make shell | ||
run: | | ||
make shell shell_simple_command='ls' | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
- name: Setup TFLint | ||
uses: terraform-linters/setup-tflint@v4 | ||
- name: Setup terraform-docs | ||
uses: jaxxstorm/[email protected] | ||
with: | ||
repo: terraform-docs/terraform-docs | ||
- uses: pre-commit/[email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,21 @@ | ||
repos: [] | ||
#- repo: https://github.com/antonbabenko/pre-commit-terraform | ||
# rev: v1.77.0 | ||
# hooks: | ||
# - id: terraform_fmt | ||
# # - id: terraform_validate | ||
# - id: terraform_docs | ||
# args: | ||
# - '--args=--lockfile=false' | ||
# - id: terraform_tflint | ||
# args: | ||
# - '--args=--only=terraform_deprecated_interpolation' | ||
# - '--args=--only=terraform_deprecated_index' | ||
# - '--args=--only=terraform_unused_declarations' | ||
# - '--args=--only=terraform_comment_syntax' | ||
# - '--args=--only=terraform_documented_outputs' | ||
# - '--args=--only=terraform_documented_variables' | ||
# - '--args=--only=terraform_typed_variables' | ||
# - '--args=--only=terraform_module_pinned_source' | ||
# - '--args=--only=terraform_naming_convention' | ||
# - '--args=--only=terraform_required_version' | ||
# - '--args=--only=terraform_required_providers' | ||
# # - '--args=--only=terraform_standard_module_structure' | ||
# - '--args=--only=terraform_workspace_remote' | ||
#- repo: https://github.com/pre-commit/pre-commit-hooks | ||
# rev: v4.4.0 | ||
# hooks: | ||
# - id: check-merge-conflict | ||
# - id: end-of-file-fixer | ||
repos: | ||
- repo: https://github.com/antonbabenko/pre-commit-terraform | ||
rev: v1.77.0 | ||
hooks: | ||
- id: terraform_fmt | ||
#- id: terraform_validate | ||
- id: terraform_docs | ||
args: | ||
- "--args=--lockfile=false" | ||
- id: terraform_tflint | ||
args: | ||
- "--args=--only=terraform_deprecated_interpolation" | ||
- "--args=--only=terraform_deprecated_index" | ||
- "--args=--only=terraform_unused_declarations" | ||
- "--args=--only=terraform_comment_syntax" | ||
- "--args=--only=terraform_documented_outputs" | ||
- "--args=--only=terraform_documented_variables" | ||
- "--args=--only=terraform_typed_variables" | ||
- "--args=--only=terraform_module_pinned_source" | ||
- "--args=--only=terraform_naming_convention" | ||
- "--args=--only=terraform_workspace_remote" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,35 @@ | ||
# tflint-ignore: terraform_unused_declarations | ||
variable "eks_cluster_id" { | ||
type = string | ||
description = "EKS cluster name" | ||
type = string | ||
} | ||
|
||
# tflint-ignore: terraform_unused_declarations | ||
variable "eks_cluster_version" { | ||
type = string | ||
description = "EKS cluster version" | ||
type = string | ||
} | ||
|
||
# tflint-ignore: terraform_unused_declarations | ||
variable "cluster_security_group_id" { | ||
type = any | ||
description = "EKS cluster security group ID" | ||
type = any | ||
} | ||
|
||
# tflint-ignore: terraform_unused_declarations | ||
variable "addon_context" { | ||
type = any | ||
description = "Addon context that can be passed directly to blueprints addon modules" | ||
type = any | ||
} | ||
|
||
# tflint-ignore: terraform_unused_declarations | ||
variable "tags" { | ||
type = any | ||
description = "Tags to apply to AWS resources" | ||
type = any | ||
} | ||
|
||
# tflint-ignore: terraform_unused_declarations | ||
variable "resources_precreated" { | ||
type = bool | ||
description = "Have expensive resources been created already" | ||
type = bool | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
output "environment" { | ||
value = try(module.lab.environment, "") | ||
description = "Evaluated by the IDE shell" | ||
value = try(module.lab.environment, "") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 18 additions & 6 deletions
24
manifests/modules/aiml/inferentia/.workshop/terraform/vars.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,35 @@ | ||
# tflint-ignore: terraform_unused_declarations | ||
variable "eks_cluster_id" { | ||
type = string | ||
description = "EKS cluster name" | ||
type = string | ||
} | ||
|
||
# tflint-ignore: terraform_unused_declarations | ||
variable "eks_cluster_version" { | ||
type = string | ||
description = "EKS cluster version" | ||
type = string | ||
} | ||
|
||
# tflint-ignore: terraform_unused_declarations | ||
variable "cluster_security_group_id" { | ||
type = any | ||
description = "EKS cluster security group ID" | ||
type = any | ||
} | ||
|
||
# tflint-ignore: terraform_unused_declarations | ||
variable "addon_context" { | ||
type = any | ||
description = "Addon context that can be passed directly to blueprints addon modules" | ||
type = any | ||
} | ||
|
||
# tflint-ignore: terraform_unused_declarations | ||
variable "tags" { | ||
type = any | ||
description = "Tags to apply to AWS resources" | ||
type = any | ||
} | ||
|
||
# tflint-ignore: terraform_unused_declarations | ||
variable "resources_precreated" { | ||
type = bool | ||
description = "Have expensive resources been created already" | ||
type = bool | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 18 additions & 6 deletions
24
manifests/modules/automation/controlplanes/ack/.workshop/terraform/vars.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,35 @@ | ||
# tflint-ignore: terraform_unused_declarations | ||
variable "eks_cluster_id" { | ||
type = string | ||
description = "EKS cluster name" | ||
type = string | ||
} | ||
|
||
# tflint-ignore: terraform_unused_declarations | ||
variable "eks_cluster_version" { | ||
type = string | ||
description = "EKS cluster version" | ||
type = string | ||
} | ||
|
||
# tflint-ignore: terraform_unused_declarations | ||
variable "cluster_security_group_id" { | ||
type = any | ||
description = "EKS cluster security group ID" | ||
type = any | ||
} | ||
|
||
# tflint-ignore: terraform_unused_declarations | ||
variable "addon_context" { | ||
type = any | ||
description = "Addon context that can be passed directly to blueprints addon modules" | ||
type = any | ||
} | ||
|
||
# tflint-ignore: terraform_unused_declarations | ||
variable "tags" { | ||
type = any | ||
description = "Tags to apply to AWS resources" | ||
type = any | ||
} | ||
|
||
# tflint-ignore: terraform_unused_declarations | ||
variable "resources_precreated" { | ||
type = bool | ||
description = "Have expensive resources been created already" | ||
type = bool | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 18 additions & 6 deletions
24
manifests/modules/automation/controlplanes/crossplane/.workshop/terraform/vars.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,35 @@ | ||
# tflint-ignore: terraform_unused_declarations | ||
variable "eks_cluster_id" { | ||
type = string | ||
description = "EKS cluster name" | ||
type = string | ||
} | ||
|
||
# tflint-ignore: terraform_unused_declarations | ||
variable "eks_cluster_version" { | ||
type = string | ||
description = "EKS cluster version" | ||
type = string | ||
} | ||
|
||
# tflint-ignore: terraform_unused_declarations | ||
variable "cluster_security_group_id" { | ||
type = any | ||
description = "EKS cluster security group ID" | ||
type = any | ||
} | ||
|
||
# tflint-ignore: terraform_unused_declarations | ||
variable "addon_context" { | ||
type = any | ||
description = "Addon context that can be passed directly to blueprints addon modules" | ||
type = any | ||
} | ||
|
||
# tflint-ignore: terraform_unused_declarations | ||
variable "tags" { | ||
type = any | ||
description = "Tags to apply to AWS resources" | ||
type = any | ||
} | ||
|
||
# tflint-ignore: terraform_unused_declarations | ||
variable "resources_precreated" { | ||
type = bool | ||
description = "Have expensive resources been created already" | ||
type = bool | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.