We help companies build, run, deploy and scale software and infrastructure by embracing the right technologies and principles. Check out our website at https://lablabs.io/
A terraform module to deploy the Argo Notifications
This module deploys ArgoCD in two different ways:
- A helm release
- ArgoCD Application CRD
When argo_application_enabled variable is set to true, Argo Notifications are deployed as ArgoCD Application resource
Check out these related projects.
- terraform-aws-eks-external-dns
- terraform-aws-eks-calico
- terraform-aws-eks-alb-ingress
- terraform-aws-eks-metrics-server
- terraform-aws-eks-prometheus-node-exporter
- terraform-aws-eks-kube-state-metrics
- terraform-aws-eks-node-problem-detector
See Basic example for further information.
When deploying with ArgoCD application, Kubernetes terraform provider requires access to Kubernetes cluster API during plan time. This introduces potential issue when you want to deploy the cluster with this addon at the same time, during the same Terraform run.
To overcome this issue, the module deploys the ArgoCD application object using the Helm provider, which does not require API access during plan. If you want to deploy the application using this workaround, you can set the argo_application_use_helm variable to true.
| Name | Version |
|---|---|
| terraform | >= 1.0 |
| helm | >= 1.0 |
| kubernetes | >= 2.4 |
| utils | >= 0.12.0 |
No modules.
| Name | Type |
|---|---|
| helm_release.argocd_application | resource |
| helm_release.self | resource |
| kubernetes_manifest.self | resource |
| utils_deep_merge_yaml.argo_application_values | data source |
| Name | Description | Type | Default | Required |
|---|---|---|---|---|
| argo_application_enabled | If set to true, the module will be deployed as ArgoCD application, otherwise it will be deployed as a Helm release | bool |
false |
no |
| argo_application_namespace | Namespace where to deploy Argo application | string |
"argo" |
no |
| argo_application_use_helm | If set to true, the ArgoCD Application manifest will be deployed using Kubernetes provider as a Helm release. Otherwise it'll be deployed as a Kubernetes manifest. See Readme for more info | bool |
false |
no |
| argo_application_values | Value overrides to use when deploying argo application object with helm | string |
"" |
no |
| argo_destionation_server | Destination server for ArgoCD Application | string |
"https://kubernetes.default.svc" |
no |
| argo_info | ArgoCD info manifest parameter | list |
[ |
no |
| argo_project | ArgoCD Application project | string |
"default" |
no |
| argo_sync_policy | ArgoCD syncPolicy manifest parameter | map |
{} |
no |
| enabled | Variable indicating whether deployment is enabled | bool |
true |
no |
| helm_atomic | If set, installation process purges chart on fail. The wait flag will be set automatically if atomic is used. Defaults to false. | bool |
false |
no |
| helm_chart_name | Helm chart name to be installed | string |
"argocd-notifications" |
no |
| helm_chart_version | Version of the Helm chart | string |
"1.2.1" |
no |
| helm_cleanup_on_fail | Allow deletion of new resources created in this upgrade when upgrade fails. Defaults to false. | bool |
false |
no |
| helm_create_namespace | Create the namespace if it does not yet exist | bool |
true |
no |
| helm_release_name | Helm release name | string |
"argocd-notifications" |
no |
| helm_repo_url | Helm repository | string |
"https://argoproj.github.io/argo-helm" |
no |
| helm_timeout | Time in seconds to wait for any individual kubernetes operation (like Jobs for hooks). Defaults to 300 seconds. | number |
300 |
no |
| helm_wait | Will wait until all resources are in a ready state before marking the release as successful. It will wait for as long as timeout. Defaults to true. | bool |
true |
no |
| k8s_namespace | The K8s namespace in which the ingress-nginx has been created | string |
"argo" |
no |
| settings | Additional settings which will be passed to the Helm chart values, see https://artifacthub.io/packages/helm/argo/argo-cd | map(any) |
{} |
no |
| values | Additional yaml encoded values which will be passed to the Helm chart. | string |
"" |
no |
| Name | Description |
|---|---|
| helm_release_application_metadata | Argo application helm release attributes |
| helm_release_metadata | Helm release attributes |
| kubernetes_application_attributes | Argo kubernetes manifest attributes |
Feel free to create an issue in this repository if you have questions, suggestions or feature requests.
We want to provide high quality code and modules. For this reason we are using several pre-commit hooks and GitHub Actions workflow. A pull-request to the master branch will trigger these validations and lints automatically. Please check your code before you will create pull-requests. See pre-commit documentation and GitHub Actions documentation for further details.
See LICENSE for full details.
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
