Skip to content

Commit

Permalink
support alternate method of creating github webhooks for argocd
Browse files Browse the repository at this point in the history
  • Loading branch information
milldr committed Jan 30, 2024
1 parent d353666 commit 8f7b09a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion modules/eks/argocd/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ Reference: https://stackoverflow.com/questions/75046330/argo-cd-error-server-sec
| <a name="input_argocd_rbac_default_policy"></a> [argocd\_rbac\_default\_policy](#input\_argocd\_rbac\_default\_policy) | Default ArgoCD RBAC default role.<br><br>See https://argo-cd.readthedocs.io/en/stable/operator-manual/rbac/#basic-built-in-roles for more information. | `string` | `"role:readonly"` | no |
| <a name="input_argocd_rbac_groups"></a> [argocd\_rbac\_groups](#input\_argocd\_rbac\_groups) | List of ArgoCD Group Role Assignment strings to be added to the argocd-rbac configmap policy.csv item.<br>e.g.<br>[<br> {<br> group: idp-group-name,<br> role: argocd-role-name<br> },<br>]<br>becomes: `g, idp-group-name, role:argocd-role-name`<br>See https://argo-cd.readthedocs.io/en/stable/operator-manual/rbac/ for more information. | <pre>list(object({<br> group = string,<br> role = string<br> }))</pre> | `[]` | no |
| <a name="input_argocd_rbac_policies"></a> [argocd\_rbac\_policies](#input\_argocd\_rbac\_policies) | List of ArgoCD RBAC Permission strings to be added to the argocd-rbac configmap policy.csv item.<br><br>See https://argo-cd.readthedocs.io/en/stable/operator-manual/rbac/ for more information. | `list(string)` | `[]` | no |
| <a name="input_argocd_repositories"></a> [argocd\_repositories](#input\_argocd\_repositories) | Map of objects defining an `argocd_repo` to configure. The key is the name of the ArgoCD repository. | <pre>map(object({<br> environment = string # The environment where the `argocd_repo` component is deployed.<br> stage = string # The stage where the `argocd_repo` component is deployed.<br> tenant = string # The tenant where the `argocd_repo` component is deployed.<br> github_organization = optional(string, "")<br> }))</pre> | `{}` | no |
| <a name="input_argocd_repositories"></a> [argocd\_repositories](#input\_argocd\_repositories) | Map of objects defining an `argocd_repo` to configure. The key is the name of the ArgoCD repository. | <pre>map(object({<br> environment = string # The environment where the `argocd_repo` component is deployed.<br> stage = string # The stage where the `argocd_repo` component is deployed.<br> tenant = string # The tenant where the `argocd_repo` component is deployed.<br> }))</pre> | `{}` | no |
| <a name="input_atomic"></a> [atomic](#input\_atomic) | If set, installation process purges chart on fail. The wait flag will be set automatically if atomic is used. | `bool` | `true` | no |
| <a name="input_attributes"></a> [attributes](#input\_attributes) | ID element. Additional attributes (e.g. `workers` or `cluster`) to add to `id`,<br>in the order they appear in the list. New attributes are appended to the<br>end of the list. The elements of the list are joined by the `delimiter`<br>and treated as a single ID element. | `list(string)` | `[]` | no |
| <a name="input_certificate_issuer"></a> [certificate\_issuer](#input\_certificate\_issuer) | Certificate manager cluster issuer | `string` | `"letsencrypt-staging"` | no |
Expand Down
1 change: 0 additions & 1 deletion modules/eks/argocd/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ locals {
for k, v in var.argocd_repositories : replace(k, "/", "-") => {
clone_url = module.argocd_repo[k].outputs.repository_ssh_clone_url
github_deploy_key = data.aws_ssm_parameter.github_deploy_key[k].value
organization = v.github_organization
repository = module.argocd_repo[k].outputs.repository
}
} : {}
Expand Down
7 changes: 3 additions & 4 deletions modules/eks/argocd/variables-argocd.tf
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,9 @@ variable "argocd_create_namespaces" {

variable "argocd_repositories" {
type = map(object({
environment = string # The environment where the `argocd_repo` component is deployed.
stage = string # The stage where the `argocd_repo` component is deployed.
tenant = string # The tenant where the `argocd_repo` component is deployed.
github_organization = optional(string, "")
environment = string # The environment where the `argocd_repo` component is deployed.
stage = string # The stage where the `argocd_repo` component is deployed.
tenant = string # The tenant where the `argocd_repo` component is deployed.
}))
description = "Map of objects defining an `argocd_repo` to configure. The key is the name of the ArgoCD repository."
default = {}
Expand Down

0 comments on commit 8f7b09a

Please sign in to comment.