Skip to content

Updates Karpenter to 1.0.0 #2

Merged
merged 40 commits into from
Aug 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
93da352
ci(base): add repo features
morga471 Aug 2, 2024
fb8470d
lints
morga471 Aug 2, 2024
2d7e3ea
add changelog
morga471 Aug 2, 2024
4851a68
fix(main.tf): correct the value for amd_ami_family
morga471 Aug 2, 2024
65e7880
use scm for ver
morga471 Aug 2, 2024
088e718
add changelog
morga471 Aug 2, 2024
2d0bd44
examples(terragrunt.hcl): mv terragrunt.hcl to examples/ folder
morga471 Aug 2, 2024
4b609e8
move tg.hcl to examples folder
morga471 Aug 2, 2024
e3ef9e1
typo
morga471 Aug 5, 2024
6ac5e99
use data item and count
morga471 Aug 5, 2024
5681295
add logic for service-linked role
morga471 Aug 6, 2024
d5e8126
fix format on policy
morga471 Aug 6, 2024
b5b3444
dupe
morga471 Aug 6, 2024
e04825a
✨ feat(prometheus): enables serviceMonitor to captures karpenter metr…
morga471 Aug 7, 2024
38582ff
✨ feat(many): subnet tagging updated nodepoolandnodeclass
morga471 Aug 7, 2024
61b13de
subnets ref
morga471 Aug 7, 2024
6ad7b3f
cleanup
morga471 Aug 7, 2024
324c45f
simpler securitygroup selector
morga471 Aug 7, 2024
9fca10c
fix profilename
morga471 Aug 7, 2024
9978391
add custom suffix to service-linked-role
morga471 Aug 7, 2024
2df93b7
update data item query
morga471 Aug 7, 2024
5000b67
no tag filtering in subet
morga471 Aug 7, 2024
48ecaab
yamlencode
morga471 Aug 7, 2024
d5a84ad
jsonencode
morga471 Aug 7, 2024
6c4ee2c
drop tags from node_class template
morga471 Aug 7, 2024
0a4118b
remove i said
morga471 Aug 7, 2024
bc7ad84
bump for 1.0 release
morga471 Aug 19, 2024
e89cd54
revert change to chart repo
morga471 Aug 19, 2024
10a9afc
✨ feat(karpenter): update module upstream to 1.0.0
morga471 Aug 19, 2024
3d5d881
update to pull image from docker.io for kubectl
morga471 Aug 19, 2024
3ee4974
🐛 fix(kubectl): fixes for kubectl image
morga471 Aug 19, 2024
33a703a
minus v
morga471 Aug 19, 2024
2b3875f
add images to helm
morga471 Aug 19, 2024
d247ce6
update version for kubectl
morga471 Aug 19, 2024
a471e0a
yep
morga471 Aug 19, 2024
d76f3ea
wtfwasithinking
morga471 Aug 19, 2024
2e83849
update ec2nodeClass
morga471 Aug 19, 2024
3e572d6
updates from docs
morga471 Aug 20, 2024
77b3115
bump: version 0.0.0 → 0.1.0
morga471 Aug 20, 2024
87ce2ce
rename
morga471 Aug 20, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .cz.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
commitizen:
major_version_zero: true
name: cz_gitmoji
tag_format: $version
update_changelog_on_bump: true
version_provider: scm
version_scheme: semver2
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "terraform" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "daily"
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Local .terraform directories
**/.terraform/*
**/.terragrunt-cache/*

# terraform lock file.
**/.terraform.lock.hcl
Expand Down Expand Up @@ -35,4 +36,3 @@ override.tf.json
# Ignore CLI configuration files
.terraformrc
terraform.rc

111 changes: 111 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
# Git style
- id: check-added-large-files
- id: check-merge-conflict
- id: check-vcs-permalinks
- id: forbid-new-submodules
- id: no-commit-to-branch
- id: check-byte-order-marker
- id: check-case-conflict
- id: check-json
- id: check-merge-conflict
- id: check-symlinks
- id: check-vcs-permalinks
- id: check-toml
- id: check-xml
- id: detect-private-key
- id: requirements-txt-fixer
- id: sort-simple-yaml

# Common errors
- id: end-of-file-fixer
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
exclude: CHANGELOG.md
- id: check-yaml
- id: check-merge-conflict
- id: check-executables-have-shebangs

# Cross platform
- id: check-case-conflict
- id: mixed-line-ending
args: [--fix=lf]

# Security
- id: detect-aws-credentials
args: ['--allow-missing-credentials']
- id: detect-private-key

# JSON5 Linter
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v4.0.0-alpha.8
hooks:
- id: prettier
# https://prettier.io/docs/en/options.html#parser
files: '.json5$'

# Terraform Hooks
- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: v1.92.1 # Get the latest from: https://github.com/antonbabenko/pre-commit-terraform/releases
hooks:
- id: terraform_fmt
args:
- --hook-config=--parallelism-ci-cpu-cores=2
- id: terraform_docs
args:
- --hook-config=--parallelism-ci-cpu-cores=2
- id: terraform_tflint
name: Terraform validate with tflint
description: Validates all Terraform configuration files with TFLint.
require_serial: true
entry: hooks/terraform_tflint.sh
language: script
files: (\.tf|\.tfvars)$
exclude: \.(terraform/.*|terragrunt-cache)$
args:
- --hook-config=--parallelism-ci-cpu-cores=2
- id: terragrunt_fmt
name: Terragrunt fmt
description: Rewrites all Terragrunt configuration files to a canonical format.
entry: hooks/terragrunt_fmt.sh
language: script
files: (\.hcl)$
exclude: \.(terraform/.*|terragrunt-cache)$
args:
- --hook-config=--parallelism-ci-cpu-cores=2
# Will require dependency mocks
# - id: terragrunt_validate
# name: Terragrunt validate
# description: Validates all Terragrunt configuration files.
# entry: hooks/terragrunt_validate.sh
# language: script
# files: (\.hcl)$
# exclude: \.(terraform/.*|terragrunt-cache)$
# args:
# - --hook-config=--parallelism-ci-cpu-cores=2
# - id: terragrunt_validate_inputs
# name: Terragrunt validate inputs
# description: Validates Terragrunt unused and undefined inputs.
# entry: hooks/terragrunt_validate_inputs.sh
# language: script
# files: (\.hcl)$
# exclude: \.(terraform/.*|terragrunt-cache)$
# args:
# - --hook-config=--parallelism-ci-cpu-cores=2
# - id: terragrunt_providers_lock
# name: Terragrunt providers lock
# description: Updates provider signatures in dependency lock files using terragrunt.
# entry: hooks/terragrunt_providers_lock.sh
# language: script
# files: (terragrunt|\.terraform\.lock)\.hcl$
# exclude: \.(terraform/.*|terragrunt-cache)$
# args:
# - --hook-config=--parallelism-ci-cpu-cores=2

- repo: https://github.com/ljnsn/cz-conventional-gitmoji
rev: v0.3.2
hooks:
- id: conventional-gitmoji
170 changes: 170 additions & 0 deletions .pre-commit-hooks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,170 @@
#### THESE ARE NOT ENABLED, THEY ARE FOR REFERENCE
# - id: infracost_breakdown
# name: Infracost breakdown
# description: Check terraform infrastructure cost
# entry: hooks/infracost_breakdown.sh
# language: script
# require_serial: true
# files: \.(tf(vars)?|hcl)$
# exclude: \.terraform/.*$

# - id: terraform_fmt
# name: Terraform fmt
# description: Rewrites all Terraform configuration files to a canonical format.
# entry: hooks/terraform_fmt.sh
# language: script
# files: (\.tf|\.tfvars)$
# exclude: \.terraform/.*$

# - id: terraform_docs
# name: Terraform docs
# description: Inserts input and output documentation into README.md (using terraform-docs).
# require_serial: true
# entry: hooks/terraform_docs.sh
# language: script
# files: (\.tf|\.terraform\.lock\.hcl)$
# exclude: \.terraform/.*$

# - id: terraform_docs_without_aggregate_type_defaults
# name: Terraform docs (without aggregate type defaults)
# description: Inserts input and output documentation into README.md (using terraform-docs). Identical to terraform_docs.
# require_serial: true
# entry: hooks/terraform_docs.sh
# language: script
# files: (\.tf)$
# exclude: \.terraform/.*$

# - id: terraform_docs_replace
# name: Terraform docs (overwrite README.md)
# description: Overwrite content of README.md with terraform-docs.
# require_serial: true
# entry: terraform_docs_replace
# language: python
# files: (\.tf)$
# exclude: \.terraform/.*$

# - id: terraform_validate
# name: Terraform validate
# description: Validates all Terraform configuration files.
# require_serial: true
# entry: hooks/terraform_validate.sh
# language: script
# files: \.(tf(vars)?|terraform\.lock\.hcl)$
# exclude: \.terraform/.*$

# - id: terraform_providers_lock
# name: Lock terraform provider versions
# description: Updates provider signatures in dependency lock files.
# require_serial: true
# entry: hooks/terraform_providers_lock.sh
# language: script
# files: (\.terraform\.lock\.hcl)$
# exclude: \.terraform/.*$

# - id: terraform_tflint
# name: Terraform validate with tflint
# description: Validates all Terraform configuration files with TFLint.
# require_serial: true
# entry: hooks/terraform_tflint.sh
# language: script
# files: (\.tf|\.tfvars)$
# exclude: \.terraform/.*$

# - id: terragrunt_fmt
# name: Terragrunt fmt
# description: Rewrites all Terragrunt configuration files to a canonical format.
# entry: hooks/terragrunt_fmt.sh
# language: script
# files: (\.hcl)$
# exclude: \.terraform/.*$

# - id: terragrunt_validate
# name: Terragrunt validate
# description: Validates all Terragrunt configuration files.
# entry: hooks/terragrunt_validate.sh
# language: script
# files: (\.hcl)$
# exclude: \.terraform/.*$

# - id: terragrunt_validate_inputs
# name: Terragrunt validate inputs
# description: Validates Terragrunt unused and undefined inputs.
# entry: hooks/terragrunt_validate_inputs.sh
# language: script
# files: (\.hcl)$
# exclude: \.terraform/.*$

# - id: terragrunt_providers_lock
# name: Terragrunt providers lock
# description: Updates provider signatures in dependency lock files using terragrunt.
# entry: hooks/terragrunt_providers_lock.sh
# language: script
# files: (terragrunt|\.terraform\.lock)\.hcl$
# exclude: \.(terraform/.*|terragrunt-cache)$

# - id: terraform_tfsec
# name: Terraform validate with tfsec (deprecated, use "terraform_trivy")
# description: Static analysis of Terraform templates to spot potential security issues.
# require_serial: true
# entry: hooks/terraform_tfsec.sh
# files: \.tf(vars)?$
# language: script

# - id: terraform_trivy
# name: Terraform validate with trivy
# description: Static analysis of Terraform templates to spot potential security issues.
# require_serial: true
# entry: hooks/terraform_trivy.sh
# files: \.tf(vars)?$
# language: script

# - id: checkov
# name: checkov (deprecated, use "terraform_checkov")
# description: Runs checkov on Terraform templates.
# entry: checkov -d .
# language: python
# pass_filenames: false
# always_run: false
# files: \.tf$
# exclude: \.terraform/.*$
# require_serial: true

# - id: terraform_checkov
# name: Checkov
# description: Runs checkov on Terraform templates.
# entry: hooks/terraform_checkov.sh
# language: script
# always_run: false
# files: \.tf$
# exclude: \.terraform/.*$
# require_serial: true

# - id: terraform_wrapper_module_for_each
# name: Terraform wrapper with for_each in module
# description: Generate Terraform wrappers with for_each in module.
# entry: hooks/terraform_wrapper_module_for_each.sh
# language: script
# pass_filenames: false
# always_run: false
# require_serial: true
# files: \.tf$
# exclude: \.terraform/.*$

# - id: terrascan
# name: terrascan
# description: Runs terrascan on Terraform templates.
# language: script
# entry: hooks/terrascan.sh
# files: \.tf$
# exclude: \.terraform/.*$
# require_serial: true

# - id: tfupdate
# name: tfupdate
# description: Runs tfupdate on Terraform templates.
# language: script
# entry: hooks/tfupdate.sh
# args:
# - --args=terraform
# files: \.tf$
# require_serial: true
36 changes: 36 additions & 0 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"branches": [
"main",
"master"
],
"ci": false,
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
[
"@semantic-release/github",
{
"successComment":
"This ${issue.pull_request ? 'PR is included' : 'issue has been resolved'} in version ${nextRelease.version} :tada:",
"labels": false,
"releasedLabels": false
}
],
[
"@semantic-release/changelog",
{
"changelogFile": "CHANGELOG.md",
"changelogTitle": "# Changelog\n\nAll notable changes to this project will be documented in this file."
}
],
[
"@semantic-release/git",
{
"assets": [
"CHANGELOG.md"
],
"message": "chore(release): version ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
]
]
}
44 changes: 44 additions & 0 deletions .terraform-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
formatter: markdown table

header-from: main.tf
footer-from: ""

sections:
## hide: []
show:
- data-sources
- header
- footer
- inputs
- modules
- outputs
- providers
- requirements
- resources

output:
file: README.md
mode: inject
template: |-
<!-- BEGIN_TF_DOCS -->
{{ .Content }}
<!-- END_TF_DOCS -->
output-values:
enabled: false
from: ""

sort:
enabled: true
by: name

settings:
anchor: true
color: true
default: true
description: true
escape: true
indent: 2
required: true
sensitive: true
type: true
Loading