Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Formatted all the code and added addons #12

Merged
merged 46 commits into from
Jan 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
15a4816
feat-created file structure
Tanveer143s Dec 26, 2023
ed4fb42
feat-added Networking,GKE.Addons code
Tanveer143s Dec 27, 2023
5061cff
feat-created Network & GKE template and added addons
Tanveer143s Dec 27, 2023
fcf4083
feat- Created module for GKE
Tanveer143s Dec 28, 2023
76ccdee
feat- Create module for GKE addons
Tanveer143s Dec 28, 2023
9b17f0f
feat- added terraform module for cluster autoscaler
Tanveer143s Dec 28, 2023
0b7657e
feat- added ingress code
Tanveer143s Jan 2, 2024
541074b
feat: update version.tf
Tanveer143s Jan 2, 2024
45bd1d6
feat: Initial setup
AshutoshAM2002 Jan 10, 2024
39e4e1e
feat: modified cluster autoscaler
AshutoshAM2002 Jan 10, 2024
47bfb7a
feat: Removed unnessessary attributes
AshutoshAM2002 Jan 11, 2024
e6cfb6c
feat: Created module for Ingress-Nginx
Tanveer143s Jan 11, 2024
9903446
feat: remove unneccessary data from main.tf
Tanveer143s Jan 11, 2024
364a644
Merge pull request #6 from clouddrove/feat/ingress
AshutoshAM2002 Jan 11, 2024
7041000
feat: Added cert-manager addon
AshutoshAM2002 Jan 11, 2024
e90bd77
Merge pull request #9 from clouddrove/feat/cert-manager
AshutoshAM2002 Jan 11, 2024
8a53db2
feat: Modified as per review
AshutoshAM2002 Jan 12, 2024
5941db7
feat: Modified as per review
AshutoshAM2002 Jan 12, 2024
8d7b53b
feat: Modified as per review
AshutoshAM2002 Jan 15, 2024
48b54e8
Merge pull request #11 from clouddrove/feat/review_changes
AshutoshAM2002 Jan 15, 2024
bec41b7
feat: Modified as per review comments
AshutoshAM2002 Jan 18, 2024
06d8714
feat: Modified as per review comments
AshutoshAM2002 Jan 18, 2024
504e457
feat: Modified folder names
AshutoshAM2002 Jan 18, 2024
6ad3018
feat: Modified keda addon
AshutoshAM2002 Jan 18, 2024
ff9da57
Merge pull request #13 from clouddrove/feat/keda
AshutoshAM2002 Jan 18, 2024
12e62ea
feat: Added required workflows
AshutoshAM2002 Jan 19, 2024
f1e3e48
feat: Added tags and cluster version
AshutoshAM2002 Jan 19, 2024
8542c4c
feat: Added tags to cluster
AshutoshAM2002 Jan 19, 2024
203debb
feat: Resolved tfcheck
AshutoshAM2002 Jan 19, 2024
73c4df9
feat: Resolved tfcheck
AshutoshAM2002 Jan 19, 2024
98b5908
feat: Resolved warnings
AshutoshAM2002 Jan 19, 2024
9935671
feat: Resolved warnings
AshutoshAM2002 Jan 19, 2024
1b1fb18
feat: Resolved warnings
AshutoshAM2002 Jan 19, 2024
9027917
feat: Resolved warnings
AshutoshAM2002 Jan 19, 2024
627cdf1
feat: Resolved warnings
AshutoshAM2002 Jan 19, 2024
76ca81e
feat: Resolved warnings
AshutoshAM2002 Jan 19, 2024
ddefc59
feat: Resolved warnings
AshutoshAM2002 Jan 19, 2024
858588c
feat: Resolved warnings
AshutoshAM2002 Jan 19, 2024
e0b6a8c
feat: Resolved tfchecks
AshutoshAM2002 Jan 19, 2024
5887268
feat: Resolved tfchecks
AshutoshAM2002 Jan 19, 2024
2877279
feat: Resolved warnings
AshutoshAM2002 Jan 19, 2024
0edea67
feat: Resolved warnings
AshutoshAM2002 Jan 19, 2024
f26d737
feat: Modified readme.yaml
AshutoshAM2002 Jan 19, 2024
c5f4fd9
feat: Checking readme workflow
AshutoshAM2002 Jan 19, 2024
d0dd7b1
feat: Resolved readme github workflow
AshutoshAM2002 Jan 22, 2024
22d7c68
Testing readme
AshutoshAM2002 Jan 22, 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
12 changes: 12 additions & 0 deletions .github/workflows/automerge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
name: Auto merge
on:
pull_request:
jobs:
auto-merge:
uses: clouddrove/github-shared-workflows/.github/workflows/[email protected]
secrets:
GITHUB: ${{ secrets.GITHUB }}
with:
tfcheck: 'tf-checks-complete-example / Check code format'
...
4 changes: 2 additions & 2 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ on:
- "*"
workflow_dispatch:
jobs:
changelog:
call-workflow-changelog:
uses: clouddrove/github-shared-workflows/.github/workflows/changelog.yml@master
secrets: inherit
with:
branch: 'master'
branch: 'master'
80 changes: 38 additions & 42 deletions .github/workflows/readme.yml
Original file line number Diff line number Diff line change
@@ -1,54 +1,50 @@
name: 'Create README.md file'
permissions: write-all

on:
push:
branches:
- master
- feat/addons
paths-ignore:
- '**/*README.md'
workflow_dispatch:

jobs:
readme:
name: 'readme-create'
runs-on: ubuntu-latest
steps:
- name: 'Checkout'
uses: actions/checkout@master

- name: 'Set up Python 3.7'
uses: actions/setup-python@v5
with:
python-version: '3.x'

- name: 'create readme'
uses: 'clouddrove/[email protected]'
with:
actions_subcommand: 'readme'
github_token: '${{ secrets.GITHUB }}'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}


- name: 'pre-commit check errors'
uses: pre-commit/[email protected]
continue-on-error: true
readme-create:
uses: clouddrove/github-shared-workflows/.github/workflows/readme.yml@master
secrets:
TOKEN: ${{ secrets.GITHUB }}
SLACK_WEBHOOK_TERRAFORM: ${{ secrets.SLACK_WEBHOOK_TERRAFORM }}

- name: 'pre-commit fix erros'
uses: pre-commit/[email protected]
continue-on-error: true
# Create README for each Submodules
readme-create-addon:
name: 'Addon readme-create'
runs-on: ubuntu-latest
steps:
- name: Updating GitHub Token
env:
GITHUB_TOKEN: ${{ secrets.GITHUB }}
run: echo "GH_TOKEN=${GITHUB_TOKEN}" >> $GITHUB_ENV

- name: 'push readme'
uses: 'clouddrove/[email protected]'
continue-on-error: true
- name: checkout
uses: actions/checkout@master
with:
actions_subcommand: 'push'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
fetch-depth: 0
ref: ${{ github.head_ref }}
token: ${{ env.GH_TOKEN }}

- name: 'Slack Notification'
uses: clouddrove/action-slack@v2
- name: Generate TF Docs
uses: terraform-docs/[email protected]
with:
status: ${{ job.status }}
fields: repo,author
author_name: 'CloudDrove'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # required
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_TERRAFORM }} # required
if: always()
working-dir: addons/cluster-autoscaler,addons/cert-manager,addons/ingress-nginx,addons/keda,addons/reloader
git-push: true
template: |-
<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
{{ .Content }}
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
git-push-user-name: "clouddrove-ci"
git-push-user-email: [email protected]
git-commit-message: "readme: Update add-on's readme"


15 changes: 15 additions & 0 deletions .github/workflows/tf-checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: tf-checks
on:
push:
branches: [ master ]
pull_request:
workflow_dispatch:
jobs:
tf-checks-complete-example:
uses: clouddrove/github-shared-workflows/.github/workflows/tf-checks.yml@master
with:
working_directory: './_examples/complete/'
tf-checks-basic-example:
uses: clouddrove/github-shared-workflows/.github/workflows/tf-checks.yml@master
with:
working_directory: './_examples/basic/'
11 changes: 11 additions & 0 deletions .github/workflows/tflint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: tf-lint
on:
push:
branches: [ master ]
pull_request:
workflow_dispatch:
jobs:
tf-lint:
uses: clouddrove/github-shared-workflows/.github/workflows/tf-lint.yml@master
secrets:
GITHUB: ${{ secrets.GITHUB }}
11 changes: 11 additions & 0 deletions .github/workflows/tfsec.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: tfsec
permissions: write-all
on:
pull_request:
workflow_dispatch:
jobs:
tfsec:
uses: clouddrove/github-shared-workflows/.github/workflows/tfsec.yml@master
secrets: inherit
with:
working_directory: '.'
25 changes: 8 additions & 17 deletions README.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,23 @@
#
# This is the canonical configuration for the `README.md`
# Run `make readme` to rebuild the `README.md`
#

# Name of this project
name : Terraform Module Template

name: Terraform GOOGLE GKE ADDONS
# License of this project
license: "APACHE"

# Canonical GitHub repo
github_repo: clouddrove/terraform-module-template
github_repo: clouddrove/terraform-google-gke-addons

# Badges to display
badges:
- name: "Latest Release"
image: "https://img.shields.io/github/release/clouddrove/terraform-module-template.svg"
url: "https://github.com/clouddrove/terraform-module-template/releases/latest"
image: "https://img.shields.io/github/release/clouddrove/terraform-google-gke-addons.svg"
url: "https://github.com/clouddrove/terraform-google-gke-addons/releases/latest"
- name: "tfsec"
image: "https://github.com/clouddrove/terraform-module-template/actions/workflows/tfsec.yml/badge.svg"
url: ""
image: "https://github.com/clouddrove/terraform-google-gke-addons/actions/workflows/tfsec.yml/badge.svg"
url: "https://github.com/clouddrove/terraform-google-gke-addons/actions/workflows/tfsec.yml"
- name: "Licence"
image: "https://img.shields.io/badge/License-APACHE-blue.svg"
url: "LICENSE.md"
Expand All @@ -31,14 +29,7 @@ prerequesties:

# description of this project
description: |-
Terraform module template to create new modules using this as baseline
A Terraform Addons module to customize & install widely used helmchart during or after creation of your AWS EKS cluster.
# extra content
include:
- "terraform.md"

# How to use this project
# How to use this project
usage: |-
Here are some examples of how you can use this module in your inventory structure:
```hcl
```
- "terraform.md"
14 changes: 14 additions & 0 deletions _examples/basic/locals.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
locals {
name = "helm-addons-test"
environment = "test"
region = "us-central1"
cluster_version = "1.28.3-gke.1203001"
gcp_project_id = "dev-env-3b53"
cluster_name = "test-cluster"
tags = {
Name = local.name
Environment = local.environment
GithubRepo = "terraform-helm-gke-addons"
GithubOrg = "clouddrove"
}
}
Loading
Loading