Skip to content

Commit 218069a

Browse files
committed
feat: helm-installer support argocd
Signed-off-by: Daniel Hu <tao.hu@merico.dev>
1 parent 8d88fa9 commit 218069a

31 files changed

Lines changed: 284 additions & 332 deletions

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ build-core: generate fmt lint vet mod-tidy ## Build dtm core only, without plugi
6464
.PHONY: build-plugin.%
6565
build-plugin.%: generate fmt lint vet mod-tidy ## Build one dtm plugin, like "make build-plugin.argocd".
6666
$(eval plugin_name := $(strip $*))
67-
@[ -d $(ROOT_DIR)/cmd/plugin/$(plugin_name) ] || { echo -e "\n${RED}✘ Plugin '$(plugin_name)' not found!${RESET} The valid plugin name is as follows (Eg. You can use ${YELLOW}make build-plugin.argocd${RESET} to build argocd plugin): \n\n$(shell ls ./cmd/plugin/)\n"; exit 1; }
67+
@[ -d $(ROOT_DIR)/cmd/plugin/$(plugin_name) ] || { echo -e "\n${RED}✘ Plugin '$(plugin_name)' not found!${RESET} The valid plugin name is as follows (Eg. You can use ${YELLOW}make build-plugin.argocdapp${RESET} to build argocdapp plugin): \n\n$(shell ls ./cmd/plugin/)\n"; exit 1; }
6868
@echo "$(YELLOW)Building plugin '$(plugin_name)'$(RESET)"
6969
${GO_PLUGIN_BUILD} -o ${PLUGINS_DIR}/${plugin_name}-${PLUGIN_SUFFIX}.so ${ROOT_DIR}/cmd/plugin/${plugin_name}
7070
@$(MAKE) md5-plugin.$(plugin_name)

cmd/plugin/argocd/main.go

Lines changed: 0 additions & 41 deletions
This file was deleted.

docs/plugins/argocd.md

Lines changed: 0 additions & 29 deletions
This file was deleted.

docs/plugins/argocd.zh.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

docs/plugins/helm-installer.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,26 @@
11
# helm-installer plugin
22

3-
TODO(daniel-hutao): I'll add the document after code refactoring finished.
3+
TODO(daniel-hutao): I'll update this the document after code refactoring finished.
44

55
## Usage
66

77
``` yaml
88
--8<-- "helm-installer.yaml"
99
```
10+
11+
### Argo CD
12+
13+
#### Default Configs
14+
15+
| key | default value | description |
16+
| ---------------- | ------------------------------------ | ------------------------------------------------ |
17+
| chart.chartPath | "" | local chart path |
18+
| chart.chartName | argo/argo-cd | chart name |
19+
| chart.version | "" | chart version
20+
| chart.timeout | 5m | this config will wait 5 minutes to deploy Argo CD |
21+
| chart.upgradeCRDs | true | default update CRD config |
22+
| chart.releaseName | argocd | helm release name |
23+
| chart.namespace | argocd | namespace where helm to deploy |
24+
| chart.wait | true | whether to wait until installation is complete |
25+
| repo.url | https://argoproj.github.io/argo-helm | helm official repo address |
26+
| repo.name | argo | helm repo name |

docs/plugins/helm-installer.zh.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# helm-installer 插件
22

3-
TODO(daniel-hutao): I'll add the document after code refactoring finished.
4-
3+
TODO(daniel-hutao): I'll update this the document after code refactoring finished.
54
## 用例
65

76
``` yaml

docs/plugins/plugins-list.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
| CI | ci-generic | Generic CI plugin | [doc](ci-generic.md) |
2020
| CI | tekton | Tekton CI installation | [doc](tekton.md) |
2121
| Code Quality/Security | sonarqube | SonarQube | [doc](sonarqube.md)
22-
| CD/GitOps | argocd | ArgoCD installation | [doc](argocd.md) |
2322
| CD/GitOps | argocdapp | ArgoCD Application creation | [doc](argocdapp.md) |
2423
| Image Repository | artifactory | Artifactory installation | [doc](artifactory.md) |
2524
| Image Repository | harbor | Harbor helm installation | [doc](harbor.md) |
@@ -34,7 +33,6 @@ Or, to get a list of plugins, run:
3433

3534
```shell
3635
$ dtm list plugins
37-
argocd
3836
argocdapp
3937
artifactory
4038
ci-generic

internal/pkg/plugin/argocd/create.go

Lines changed: 0 additions & 31 deletions
This file was deleted.

internal/pkg/plugin/argocd/delete.go

Lines changed: 0 additions & 25 deletions
This file was deleted.

internal/pkg/plugin/argocd/read.go

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)