-
Notifications
You must be signed in to change notification settings - Fork 199
feat: add plugin zentao #670
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
2a52627
to
c723bf7
Compare
I used your code for a local test, and it can run well. It's good that you try to specify the deployment method through configuration. Documents can be completed. @HXCGIT |
/hold |
It seems MySQL is a requirement for zentao. Do you think it's possible to install MySQL as well? @HXCGIT @daniel-hutao @KeHaohaoke |
@IronCore864 Yep, Zentao need MySQL.
@KeHaohaoke @daniel-hutao any good ideas? |
By the way, the official image doesn't seem to work well in |
How to reopen this pull request? |
2b73529
to
a22cd6f
Compare
@KeHaohaoke @IronCore864 PTAL. |
Signed-off-by: hxcGit <houxc_mail@163.com>
Zentao's official image integrates MySQL, so we discuss that we can use the official image first. That's ok. @HXCGIT |
Signed-off-by: hxcGit <houxc_mail@163.com>
@HXCGIT thanks for this great contribution. I'll test it locally and get back to you ASAP. |
Merging now, see discussions in Slack. Please contribute another PR to follow up on those discussions. Thanks for your contribution! @HXCGIT |
Pre-Checklist
Note: please complete ALL items in the following checklist.
Description
Add zentao plugin, currently just deal with zentao installation.
For this implementation zentao application is deployed in a k8s cluster by client-go, later I expect to deploy zentao by Helm.
Implementation
1. create.go
Create zentao namespaces, persistentVolume, persistentVolumeClaim, deployment, service.
HostPath
and in a single-node cluster now.NodePort
.2. delete.go
Delete zentao namespaces, persistentVolume, persistentVolumeClaim, deployment, service.
3. k8s.go
Some cluster-related operations
4. update.go
Just rebuild zentao deployment and service.
Options and configuration
Here needs more advice and consideration. I want to support different installation way in config files and use
type
field to indicate.A simple example configuration file is as follows:
By the way, I am not particularly satisfied with the current implementation, I need more requirements and suggestions.
Please feel free to give me any advice you think would make sense, I would really appreciate it!
Related Issues
#508
New Behavior (screenshots if needed)