From 1025090595551f78b8d462a86696c4f36b4649a9 Mon Sep 17 00:00:00 2001 From: riqardos Date: Tue, 28 Nov 2023 11:10:01 +0100 Subject: [PATCH] rename addon --- README.md | 24 ++++++++++++------------ argo-helm.tf | 2 +- examples/basic/base.tf | 2 +- iam.tf | 4 ++-- outputs.tf | 2 +- variables.tf | 20 ++++++++++---------- 6 files changed, 27 insertions(+), 27 deletions(-) diff --git a/README.md b/README.md index d2529b2..ef24540 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# AWS EKS <$addon-name> Terraform module +# AWS EKS Kube Green Terraform module [](https://lablabs.io/) @@ -6,12 +6,12 @@ We help companies build, run, deploy and scale software and infrastructure by em --- -[![Terraform validate](https://github.com/lablabs/terraform-aws-eks-<$addon-name>/actions/workflows/validate.yaml/badge.svg)](https://github.com/lablabs/terraform-aws-eks-<$addon-name>/actions/workflows/validate.yaml) -[![pre-commit](https://github.com/lablabs/terraform-aws-eks-<$addon-name>/actions/workflows/pre-commit.yml/badge.svg)](https://github.com/lablabs/terraform-aws-eks-<$addon-name>/actions/workflows/pre-commit.yml) +[![Terraform validate](https://github.com/lablabs/terraform-aws-eks-kube-green/actions/workflows/validate.yaml/badge.svg)](https://github.com/lablabs/terraform-aws-eks-kube-green/actions/workflows/validate.yaml) +[![pre-commit](https://github.com/lablabs/terraform-aws-eks-kube-green/actions/workflows/pre-commit.yml/badge.svg)](https://github.com/lablabs/terraform-aws-eks-kube-green/actions/workflows/pre-commit.yml) ## Description -A Terraform module to deploy the <$addon-name> on Amazon EKS cluster. +A Terraform module to deploy the kube-green on Amazon EKS cluster. ## Related Projects @@ -111,7 +111,7 @@ No modules. | [aws\_partition](#input\_aws\_partition) | AWS partition in which the resources are located. Available values are `aws`, `aws-cn`, `aws-us-gov` | `string` | `"aws"` | no | | [enabled](#input\_enabled) | Variable indicating whether deployment is enabled | `bool` | `true` | no | | [helm\_atomic](#input\_helm\_atomic) | If set, installation process purges chart on fail. The wait flag will be set automatically if atomic is used | `bool` | `false` | no | -| [helm\_chart\_name](#input\_helm\_chart\_name) | Helm chart name to be installed | `string` | `"<$addon-name>"` | no | +| [helm\_chart\_name](#input\_helm\_chart\_name) | Helm chart name to be installed | `string` | `"kube-green"` | no | | [helm\_chart\_version](#input\_helm\_chart\_version) | Version of the Helm chart | `string` | `""` | no | | [helm\_cleanup\_on\_fail](#input\_helm\_cleanup\_on\_fail) | Allow deletion of new resources created in this helm upgrade when upgrade fails | `bool` | `false` | no | | [helm\_create\_namespace](#input\_helm\_create\_namespace) | Create the namespace if it does not yet exist | `bool` | `true` | no | @@ -127,7 +127,7 @@ No modules. | [helm\_postrender](#input\_helm\_postrender) | Value block with a path to a binary file to run after helm renders the manifest which can alter the manifest contents | `map(any)` | `{}` | no | | [helm\_recreate\_pods](#input\_helm\_recreate\_pods) | Perform pods restart during helm upgrade/rollback | `bool` | `false` | no | | [helm\_release\_max\_history](#input\_helm\_release\_max\_history) | Maximum number of release versions stored per release | `number` | `0` | no | -| [helm\_release\_name](#input\_helm\_release\_name) | Helm release name | `string` | `"<$addon-name>"` | no | +| [helm\_release\_name](#input\_helm\_release\_name) | Helm release name | `string` | `"kube-green"` | no | | [helm\_render\_subchart\_notes](#input\_helm\_render\_subchart\_notes) | If set, render helm subchart notes along with the parent | `bool` | `true` | no | | [helm\_replace](#input\_helm\_replace) | Re-use the given name of helm release, only if that name is a deleted release which remains in the history. This is unsafe in production | `bool` | `false` | no | | [helm\_repo\_ca\_file](#input\_helm\_repo\_ca\_file) | Helm repositories cert file | `string` | `""` | no | @@ -148,14 +148,14 @@ No modules. | [irsa\_assume\_role\_enabled](#input\_irsa\_assume\_role\_enabled) | Whether IRSA is allowed to assume role defined by irsa\_assume\_role\_arn. | `bool` | `false` | no | | [irsa\_policy\_enabled](#input\_irsa\_policy\_enabled) | Whether to create opinionated policy to allow operations on specified zones in `policy_allowed_zone_ids`. | `bool` | `true` | no | | [irsa\_role\_create](#input\_irsa\_role\_create) | Whether to create IRSA role and annotate service account | `bool` | `true` | no | -| [irsa\_role\_name\_prefix](#input\_irsa\_role\_name\_prefix) | The IRSA role name prefix for <$addon-name> | `string` | `"<$addon-name>-irsa"` | no | +| [irsa\_role\_name\_prefix](#input\_irsa\_role\_name\_prefix) | The IRSA role name prefix for kube-green | `string` | `"kube-green-irsa"` | no | | [irsa\_tags](#input\_irsa\_tags) | IRSA resources tags | `map(string)` | `{}` | no | -| [namespace](#input\_namespace) | The K8s namespace in which the <$addon-name> service account has been created | `string` | `"<$addon-name>"` | no | +| [namespace](#input\_namespace) | The K8s namespace in which the kube-green service account has been created | `string` | `"kube-green"` | no | | [rbac\_create](#input\_rbac\_create) | Whether to create and use RBAC resources | `bool` | `true` | no | | [service\_account\_create](#input\_service\_account\_create) | Whether to create Service Account | `bool` | `true` | no | -| [service\_account\_name](#input\_service\_account\_name) | The k8s <$addon-name> service account name | `string` | `"<$addon-name>"` | no | -| [settings](#input\_settings) | Additional helm sets which will be passed to the Helm chart values, see https://hub.helm.sh/charts/stable/<$addon-name> | `map(any)` | `{}` | no | -| [values](#input\_values) | Additional yaml encoded values which will be passed to the Helm chart, see https://hub.helm.sh/charts/stable/<$addon-name> | `string` | `""` | no | +| [service\_account\_name](#input\_service\_account\_name) | The k8s kube-green service account name | `string` | `"kube-green"` | no | +| [settings](#input\_settings) | Additional helm sets which will be passed to the Helm chart values, see https://hub.helm.sh/charts/stable/kube-green | `map(any)` | `{}` | no | +| [values](#input\_values) | Additional yaml encoded values which will be passed to the Helm chart, see https://hub.helm.sh/charts/stable/kube-green | `string` | `""` | no | ## Outputs @@ -163,7 +163,7 @@ No modules. |------|-------------| | [helm\_release\_application\_metadata](#output\_helm\_release\_application\_metadata) | Argo application helm release attributes | | [helm\_release\_metadata](#output\_helm\_release\_metadata) | Helm release attributes | -| [iam\_role\_attributes](#output\_iam\_role\_attributes) | <$addon-name> IAM role atributes | +| [iam\_role\_attributes](#output\_iam\_role\_attributes) | Kube green IAM role atributes | | [kubernetes\_application\_attributes](#output\_kubernetes\_application\_attributes) | Argo kubernetes manifest attributes | diff --git a/argo-helm.tf b/argo-helm.tf index b4d0b19..df3e263 100644 --- a/argo-helm.tf +++ b/argo-helm.tf @@ -115,7 +115,7 @@ resource "kubernetes_job" "helm_argo_application_wait" { image = "bitnami/kubectl:latest" command = ["/bin/bash", "-ecx"] # Waits for ArgoCD Application to be "Healthy", see https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#wait - # i.e. kubectl wait --for=jsonpath='{.status.sync.status}'=Healthy application.argoproj.io <$addon-name> + # i.e. kubectl wait --for=jsonpath='{.status.sync.status}'=Healthy application.argoproj.io kube-green args = [ <<-EOT kubectl wait \ diff --git a/examples/basic/base.tf b/examples/basic/base.tf index 25ad652..1469557 100644 --- a/examples/basic/base.tf +++ b/examples/basic/base.tf @@ -2,7 +2,7 @@ module "vpc" { source = "terraform-aws-modules/vpc/aws" version = "4.0.0" - name = "<$addon-name>-vpc" + name = "kube-green-vpc" cidr = "10.0.0.0/16" azs = ["eu-central-1a", "eu-central-1b"] public_subnets = ["10.0.101.0/24", "10.0.102.0/24"] diff --git a/iam.tf b/iam.tf index 4e26c64..e864497 100644 --- a/iam.tf +++ b/iam.tf @@ -21,7 +21,7 @@ data "aws_iam_policy_document" "this_assume" { count = local.irsa_role_create && var.irsa_assume_role_enabled ? 1 : 0 statement { - sid = "AllowAssume<$addon-name>Role" + sid = "AllowAssumeKubeGreenRole" effect = "Allow" actions = [ "sts:AssumeRole" @@ -37,7 +37,7 @@ resource "aws_iam_policy" "this" { name = "${var.irsa_role_name_prefix}-${var.helm_chart_name}" # tflint-ignore: aws_iam_policy_invalid_name path = "/" - description = "Policy for <$addon-name> service" + description = "Policy for kube-green service" policy = var.irsa_assume_role_enabled ? data.aws_iam_policy_document.this_assume[0].json : data.aws_iam_policy_document.this[0].json tags = var.irsa_tags diff --git a/outputs.tf b/outputs.tf index 9a231e6..4a71b1c 100644 --- a/outputs.tf +++ b/outputs.tf @@ -14,6 +14,6 @@ output "kubernetes_application_attributes" { } output "iam_role_attributes" { - description = "<$addon-name> IAM role atributes" + description = "Kube green IAM role atributes" value = try(aws_iam_role.this[0], {}) } diff --git a/variables.tf b/variables.tf index 7930a21..2e752b6 100644 --- a/variables.tf +++ b/variables.tf @@ -18,7 +18,7 @@ variable "cluster_identity_oidc_issuer_arn" { variable "helm_chart_name" { type = string - default = "<$addon-name>" + default = "kube-green" description = "Helm chart name to be installed" } @@ -30,7 +30,7 @@ variable "helm_chart_version" { variable "helm_release_name" { type = string - default = "<$addon-name>" + default = "kube-green" description = "Helm release name" } @@ -48,20 +48,20 @@ variable "helm_create_namespace" { variable "namespace" { type = string - default = "<$addon-name>" - description = "The K8s namespace in which the <$addon-name> service account has been created" + default = "kube-green" + description = "The K8s namespace in which the kube-green service account has been created" } variable "settings" { type = map(any) default = {} - description = "Additional helm sets which will be passed to the Helm chart values, see https://hub.helm.sh/charts/stable/<$addon-name>" + description = "Additional helm sets which will be passed to the Helm chart values, see https://hub.helm.sh/charts/stable/kube-green" } variable "values" { type = string default = "" - description = "Additional yaml encoded values which will be passed to the Helm chart, see https://hub.helm.sh/charts/stable/<$addon-name>" + description = "Additional yaml encoded values which will be passed to the Helm chart, see https://hub.helm.sh/charts/stable/kube-green" } # ================ IRSA variables (optional) ================ @@ -80,8 +80,8 @@ variable "service_account_create" { variable "service_account_name" { type = string - default = "<$addon-name>" - description = "The k8s <$addon-name> service account name" + default = "kube-green" + description = "The k8s kube-green service account name" } variable "irsa_role_create" { @@ -116,8 +116,8 @@ variable "irsa_additional_policies" { variable "irsa_role_name_prefix" { type = string - default = "<$addon-name>-irsa" - description = "The IRSA role name prefix for <$addon-name>" + default = "kube-green-irsa" + description = "The IRSA role name prefix for kube-green" } variable "irsa_tags" {