Skip to content

Commit

Permalink
Revamp Argo Workflows chart to be more maintainable and fix issues in…
Browse files Browse the repository at this point in the history
… Argo CD chart (#2)

Signed-off-by: Yuan Tang <[email protected]>
  • Loading branch information
terrytangyuan authored Dec 20, 2021
1 parent 9cd954a commit 370856a
Show file tree
Hide file tree
Showing 48 changed files with 633 additions and 1,640 deletions.
46 changes: 44 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Local Development and Testing

### Pre-commit Hook
### Pre-commit Hook and Lint Checks

We use [helm-docs](https://github.com/norwoodj/helm-docs) to automatically generate reference for the charts and we use a [pre-commit](https://pre-commit.com/) hook to make sure we always update the docs when there are any changes in `values.yaml`.

Expand All @@ -13,6 +13,12 @@ brew install pre-commit
pre-commit install
```

Install the lint checker tools via `brew install chart-testing yamllint` and then run:

```
ct lint --debug --config ./.github/configs/ct-lint.yaml --lint-conf ./.github/configs/lintconf.yaml
```

### Argo CD

Installing dependencies first:
Expand All @@ -25,7 +31,7 @@ helm dependency update
Installing Argo CD:
```
cd -
helm install argo-cd charts/argo-cd -n argo
helm install argo-cd charts/argo-cd -n argocd
```


Expand All @@ -43,3 +49,39 @@ Uninstalling Argo CD:
```
helm uninstall argo-cd
```

### Argo Workflows

Installing Argo Workflows:

```
helm install argo-workflows charts/argo-workflows -n argo
```

```
> NAME: argo-workflows
LAST DEPLOYED: Mon Dec 13 15:59:15 2021
NAMESPACE: argo
STATUS: deployed
REVISION: 1
TEST SUITE: None
NOTES:
1. Get Argo Server external IP/domain by running:
kubectl --namespace argo get services -o wide | grep argo-server
2. Submit the hello-world workflow by running:
argo submit https://raw.githubusercontent.com/argoproj/argo-workflows/master/examples/hello-world.yaml --watch
```

Accessing UI via https://localhost:2746/:
```
kubectl port-forward svc/argo-server 2746:2746 -n argo
```

Uninstalling Argo Workflows:

```
helm uninstall argo-workflows
```
2 changes: 1 addition & 1 deletion charts/argo-cd/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: v2
version: 1.0.0
version: 1.0.1
appVersion: 2.2.0
description: A Helm chart for ArgoCD, a declarative, GitOps continuous delivery tool for Kubernetes.
name: argo-cd
Expand Down
18 changes: 14 additions & 4 deletions charts/argo-cd/DOCS.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# argo-cd

![Version: 0.0.20](https://img.shields.io/badge/Version-0.0.20-informational?style=flat-square) ![AppVersion: 2.1.5](https://img.shields.io/badge/AppVersion-2.1.5-informational?style=flat-square)
![Version: 1.0.1](https://img.shields.io/badge/Version-1.0.1-informational?style=flat-square) ![AppVersion: 2.2.0](https://img.shields.io/badge/AppVersion-2.2.0-informational?style=flat-square)

A Helm chart for ArgoCD, a declarative, GitOps continuous delivery tool for Kubernetes.

Expand All @@ -12,14 +12,20 @@ A Helm chart for ArgoCD, a declarative, GitOps continuous delivery tool for Kube
| ---- | ------ | --- |
| terrytangyuan | [email protected] | |
| jessesuen | [email protected] | |
| wanghong230 | | |
| wanghong230 | [email protected] | |

## Requirements

| Repository | Name | Version |
|------------|------|---------|
| https://charts.akuity.io | argo-cd-extensions | 0.0.1 |

## Values

| Key | Type | Default | Description |
|-----|------|---------|-------------|
| clusterRoles | object | `{"enabled":true}` | Installs necessary ClusterRoles to allow Argo CD to deploy to the same cluster Argo CD is installed in |
| config | object | `{"argocd":null,"createSecret":true,"gpgKeys":null,"params":null,"rbac":null,"secret":null,"sshKnownHosts":{"additional":"","default":"bitbucket.org ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAubiN81eDcafrgMeLzaFPsw2kNvEcqTKl/VqLat/MaB33pZy0y3rJZtnqwR2qOOvbwKZYKiEO1O6VqNEBxKvJJelCq0dTXWT5pbO2gDXC6h6QDXCaHo6pOHGPUy+YBaGQRGuSusMEASYiWunYN0vCAI8QaXnWMXNMdFP3jHAJH0eDsoiGnLPBlBp4TNm6rYI74nMzgz3B9IikW4WVK+dc8KZJZWYjAuORU3jc1c/NPskD2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qivl+siMkPGbO5xR/En4iEY6K2XPASUEMaieWVNTRCtJ4S8H+9\nssh.dev.azure.com ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC7Hr1oTWqNqOlzGJOfGJ4NakVyIzf1rXYd4d7wo6jBlkLvCA4odBlL0mDUyZ0/QUfTTqeu+tm22gOsv+VrVTMk6vwRU75gY/y9ut5Mb3bR5BV58dKXyq9A9UeB5Cakehn5Zgm6x1mKoVyf+FFn26iYqXJRgzIZZcZ5V6hrE0Qg39kZm4az48o0AUbf6Sp4SLdvnuMa2sVNwHBboS7EJkm57XQPVU3/QpyNLHbWDdzwtrlS+ez30S3AdYhLKEOxAG8weOnyrtLJAUen9mTkol8oII1edf7mWWbWVf0nBmly21+nZcmCTISQBtdcyPaEno7fFQMDD26/s0lfKob4Kw8H\nvs-ssh.visualstudio.com ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC7Hr1oTWqNqOlzGJOfGJ4NakVyIzf1rXYd4d7wo6jBlkLvCA4odBlL0mDUyZ0/QUfTTqeu+tm22gOsv+VrVTMk6vwRU75gY/y9ut5Mb3bR5BV58dKXyq9A9UeB5Cakehn5Zgm6x1mKoVyf+FFn26iYqXJRgzIZZcZ5V6hrE0Qg39kZm4az48o0AUbf6Sp4SLdvnuMa2sVNwHBboS7EJkm57XQPVU3/QpyNLHbWDdzwtrlS+ez30S3AdYhLKEOxAG8weOnyrtLJAUen9mTkol8oII1edf7mWWbWVf0nBmly21+nZcmCTISQBtdcyPaEno7fFQMDD26/s0lfKob4Kw8H\n"},"tlsCerts":null}` | Argo Configuration |
| config | object | `{"argocd":{"application.resourceTrackingMethod":"annotation"},"createSecret":true,"gpgKeys":null,"params":null,"rbac":null,"secret":null,"sshKnownHosts":{"additional":"","default":"bitbucket.org ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAubiN81eDcafrgMeLzaFPsw2kNvEcqTKl/VqLat/MaB33pZy0y3rJZtnqwR2qOOvbwKZYKiEO1O6VqN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SENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg=\ngithub.com ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOMqqnkVzrm0SdG6UOoqKLsabgH5C9okWi0dh2l9GKJl\n"},"tlsCerts":null}` | Argo Configuration |
| config.createSecret | bool | `true` | Disable creation of the argocd-secret (e.g. if it managed elsewhere SealedSecret / ExternalSecret) |
| config.gpgKeys | string | `nil` | policy.default is the name of the default role which Argo CD will falls back to, when -- authorizing API requests (optional). If omitted or empty, users may be still be able to login, -- but will see no apps, projects, etc... policy.default: role:readonly -- scopes controls which OIDC scopes to examine during rbac enforcement (in addition to `sub` scope). -- If omitted, defaults to: '[groups]'. The scope value can be a string, or a list of strings. scopes: '[cognito:groups, email]' -- [GnuPG](https://argoproj.github.io/argo-cd/user-guide/gpg-verification/) keys to add to the key ring |
| config.rbac | string | `nil` | RBAC config. Reference https://github.com/argoproj/argo-cd/blob/master/docs/operator-manual/rbac.md |
Expand All @@ -44,9 +50,13 @@ A Helm chart for ArgoCD, a declarative, GitOps continuous delivery tool for Kube
| disasterRecovery.bucketName | string | `""` | Bucket name to send backup to |
| disasterRecovery.command | string | `"argocd-backup.sh"` | The command to run backup (useful for testing) |
| disasterRecovery.instanceName | string | `""` | Unique name for this argocd instance incorporated to the backup filename |
| extensions.enabled | bool | `false` | |
| extensions.image.pullPolicy | string | `nil` | |
| extensions.image.repository | string | `"ghcr.io/argoproj-labs/argocd-extensions"` | |
| extensions.image.tag | string | `"v0.1.0"` | |
| global.image.pullPolicy | string | `nil` | If defined, an image pull policy will be applied to all ArgoCD deployments |
| global.image.repository | string | `"quay.io/akuity/argocd"` | If defined, a repository applied to all ArgoCD deployments |
| global.image.tag | string | `"v2.1.6-ak.0"` | If defined, a tag applied to all ArgoCD deployments |
| global.image.tag | string | `"v2.2.0-ak.0rc1"` | If defined, a tag applied to all ArgoCD deployments |
| redis | object | `{"enabled":true,"image":{"pullPolicy":null,"repository":"redis","tag":"6.2.4-alpine"},"resources":null}` | Redis configurations |
| repoServer | object | `{"extraArgs":null,"image":{"pullPolicy":null,"repository":null,"tag":null},"replicas":2,"resources":null}` | Repo Server |
| repoServer.extraArgs | string | `nil` | Additional command line arguments to pass to argocd-repo-server |
Expand Down
61 changes: 0 additions & 61 deletions charts/argo-cd/README.md

This file was deleted.

4 changes: 2 additions & 2 deletions charts/argo-cd/ci/test-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ config:
dex.github.clientSecret: aaabbbcccdddeeefffggghhhiiijjjkkklllmm
server.secretkey: J3bcC2LjNYbCGf8s2sScN7JpPVUiduiiogDK7uvtLAU=
# bcrypt of the string: "password"
admin.password": $2a$04$PJ/GxgRlyVyx/bvKQhlYouPRumbizCm89xy31u/eLbWapmUoFEn1K
admin.passwordMtime": "2021-10-21T09:00:07Z"
admin.password: $2a$04$PJ/GxgRlyVyx/bvKQhlYouPRumbizCm89xy31u/eLbWapmUoFEn1K
admin.passwordMtime: "2021-10-21T09:00:07Z"

server:
insecure: false
Expand Down
2 changes: 1 addition & 1 deletion charts/argo-cd/templates/argocd-server/ingress.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if and .Values.server.enabled .Values.server.ingress.enabled }}
{{- if .Values.server.ingress.enabled }}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
Expand Down
4 changes: 2 additions & 2 deletions charts/argo-workflows/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
version: 0.0.11
appVersion: 3.1.8
version: 1.0.0
appVersion: 3.2.4
name: argo-workflows
description: A Helm chart for Argo Workflows
type: application
Expand Down
Loading

0 comments on commit 370856a

Please sign in to comment.