Skip to content

Commit

Permalink
Merge pull request #1145 from merico-dev/chore-ht
Browse files Browse the repository at this point in the history
Chore: Add `chart.version` Field And Unify the Indentation Style of the Config Files
  • Loading branch information
IronCore864 authored Oct 8, 2022
2 parents f1c6127 + 45bf443 commit ad09525
Show file tree
Hide file tree
Showing 20 changed files with 487 additions and 467 deletions.
72 changes: 37 additions & 35 deletions internal/pkg/show/config/plugins/argocd.yaml
Original file line number Diff line number Diff line change
@@ -1,36 +1,38 @@
tools:
# name of the tool
- name: argocd
# id of the tool instance
instanceID: default
# format: name.instanceID; If specified, dtm will make sure the dependency is applied first before handling this tool.
dependsOn: [ ]
# options for the plugin
options:
# Helm repo information, this section is optional
repo:
# name of the Helm repo
name: argo
# url of the Helm repo
url: https://argoproj.github.io/argo-helm
# Helm chart information
chart:
# local path of the chart; if chartPath != "", repo.name and repo.url will be ignored. e.g. "foo.tgz", "./foo.tgz", "/tmp/foo.tgz"
chartPath: ""
# name of the chart
chartName: argo/argo-cd
# release name of the chart
releaseName: argocd
# k8s namespace where ArgoCD will be installed
namespace: argocd
# whether to wait for the release to be deployed or not
wait: true
# the time to wait for any individual Kubernetes operation (like Jobs for hooks). This defaults to 5m0s
timeout: 5m
# whether to perform a CRD upgrade during installation
upgradeCRDs: true
# custom configuration (Optional). You can refer to [ArgoCD values.yaml](https://github.com/argoproj/argo-helm/blob/master/charts/argo-cd/values.yaml)
valuesYaml: |
controller:
service:
port: 8080
# name of the tool
- name: argocd
# id of the tool instance
instanceID: default
# format: name.instanceID; If specified, dtm will make sure the dependency is applied first before handling this tool.
dependsOn: [ ]
# options for the plugin
options:
# Helm repo information, this section is optional
repo:
# name of the Helm repo
name: argo
# url of the Helm repo
url: https://argoproj.github.io/argo-helm
# Helm chart information
chart:
# local path of the chart; if chartPath != "", repo.name and repo.url will be ignored. e.g. "foo.tgz", "./foo.tgz", "/tmp/foo.tgz"
chartPath: ""
# name of the chart
chartName: argo/argo-cd
# version of the chart
version: ""
# release name of the chart
releaseName: argocd
# k8s namespace where ArgoCD will be installed
namespace: argocd
# whether to wait for the release to be deployed or not
wait: true
# the time to wait for any individual Kubernetes operation (like Jobs for hooks). This defaults to 5m0s
timeout: 5m
# whether to perform a CRD upgrade during installation
upgradeCRDs: true
# custom configuration (Optional). You can refer to [ArgoCD values.yaml](https://github.com/argoproj/argo-helm/blob/master/charts/argo-cd/values.yaml)
valuesYaml: |
controller:
service:
port: 8080
56 changes: 28 additions & 28 deletions internal/pkg/show/config/plugins/argocdapp.yaml
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
tools:
# name of the tool
- name: argocdapp
# id of the tool instance
instanceID: default
# format: name.instanceID; If specified, dtm will make sure the dependency is applied first before handling this tool.
dependsOn: [ "argocd.ARGOCD_INSTANCE_NAME" ]
# options for the plugin
options:
# information on the ArgoCD Application
app:
# name of the ArgoCD Application
name: hello
# where the ArgoCD Application custom resource will be created
namespace: argocd
# destination of the ArgoCD Application
destination:
# on which server to deploy
server: https://kubernetes.default.svc
# in which namespace to deploy
namespace: default
# source of the application
source:
# which values file to use in the Helm chart
valuefile: values.yaml
# path of the Helm chart
path: charts/go-hello-http
# Helm chart repo URL, this is only an example, do not use this
repoURL: YOUR_CHART_REPO_URL
# name of the tool
- name: argocdapp
# id of the tool instance
instanceID: default
# format: name.instanceID; If specified, dtm will make sure the dependency is applied first before handling this tool.
dependsOn: [ "argocd.ARGOCD_INSTANCE_NAME" ]
# options for the plugin
options:
# information on the ArgoCD Application
app:
# name of the ArgoCD Application
name: hello
# where the ArgoCD Application custom resource will be created
namespace: argocd
# destination of the ArgoCD Application
destination:
# on which server to deploy
server: https://kubernetes.default.svc
# in which namespace to deploy
namespace: default
# source of the application
source:
# which values file to use in the Helm chart
valuefile: values.yaml
# path of the Helm chart
path: charts/go-hello-http
# Helm chart repo URL, this is only an example, do not use this
repoURL: YOUR_CHART_REPO_URL
2 changes: 2 additions & 0 deletions internal/pkg/show/config/plugins/artifactory.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ tools:
chartPath: ""
# name of the chart
chartName: jfrog/artifactory
# version of the chart
version: ""
# k8s namespace where Harbor will be installed
namespace: artifactory
# release name of the chart
Expand Down
92 changes: 46 additions & 46 deletions internal/pkg/show/config/plugins/githubactions-golang.yaml
Original file line number Diff line number Diff line change
@@ -1,48 +1,48 @@
tools:
# name of the tool
- name: githubactions-golang
# id of the tool instance
instanceID: default
# format: name.instanceID; If specified, dtm will make sure the dependency is applied first before handling this tool.
dependsOn: [ ]
# options for the plugin
options:
# the repo's owner. It should be case-sensitive here; strictly use your GitHub user name; please change the value below.
owner: YOUR_GITHUB_USERNAME
# the repo where you'd like to setup GitHub Actions; please change the value below to an existing repo.
# the repo's org. If you set this property, then the new repo will be created under the org you're given, and the "owner" setting above will be ignored.
org: YOUR_ORGANIZATION_NAME
repo: YOUR_REPO_NAME
# programming language specific settings
language:
name: go
# version of the language
version: "1.18"
# main branch of the repo (to which branch the plugin will submit the workflows)
branch: main
build:
# name of the tool
- name: githubactions-golang
# id of the tool instance
instanceID: default
# format: name.instanceID; If specified, dtm will make sure the dependency is applied first before handling this tool.
dependsOn: [ ]
# options for the plugin
options:
# the repo's owner. It should be case-sensitive here; strictly use your GitHub user name; please change the value below.
owner: YOUR_GITHUB_USERNAME
# the repo where you'd like to setup GitHub Actions; please change the value below to an existing repo.
# the repo's org. If you set this property, then the new repo will be created under the org you're given, and the "owner" setting above will be ignored.
org: YOUR_ORGANIZATION_NAME
repo: YOUR_REPO_NAME
# programming language specific settings
language:
name: go
# version of the language
version: "1.18"
# main branch of the repo (to which branch the plugin will submit the workflows)
branch: main
build:
# default to false
enable: True
# build command, OPTIONAL, the given value below is default value
command: "go build ./..."
test:
# default to false
enable: True
# test command, OPTIONAL, the given value below is default value
command: "go test ./..."
coverage:
# default to false
enable: True
# build command, OPTIONAL, the given value below is default value
command: "go build ./..."
test:
# default to false
enable: True
# test command, OPTIONAL, the given value below is default value
command: "go test ./..."
coverage:
# default to false
enable: False
# go test profile subcommand, OPTIONAL, the given value below is default value
profile: "-race -covermode=atomic"
output: "coverage.out"
docker:
# docker build/push related, default to false
enable: True
registry:
# dockerhub or harbor, default to dockerhub
type: dockerhub
# dockerhub/harbor username
username: YOUR_DOCKERHUB_USERNAME
# dockerhub/harbor image repository name
repository: YOUR_DOCKERHUB_REPOSITORY
enable: False
# go test profile subcommand, OPTIONAL, the given value below is default value
profile: "-race -covermode=atomic"
output: "coverage.out"
docker:
# docker build/push related, default to false
enable: True
registry:
# dockerhub or harbor, default to dockerhub
type: dockerhub
# dockerhub/harbor username
username: YOUR_DOCKERHUB_USERNAME
# dockerhub/harbor image repository name
repository: YOUR_DOCKERHUB_REPOSITORY
42 changes: 21 additions & 21 deletions internal/pkg/show/config/plugins/githubactions-nodejs.yaml
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
tools:
# name of the tool
- name: githubactions-nodejs
# id of the tool instance
instanceID: default
# format: name.instanceID; If specified, dtm will make sure the dependency is applied first before handling this tool.
dependsOn: [ ]
# options for the plugin
options:
# the repo's owner. It should be case-sensitive here; strictly use your GitHub user name; please change the value below.
owner: YOUR_GITHUB_USERNAME
# the repo's org. If you set this property, then the new repo will be created under the org you're given, and the "owner" setting above will be ignored.
org: YOUR_ORGANIZATION_NAME
# the repo where you'd like to setup GitHub Actions; please change the value below to an existing repo.
repo: YOUR_REPO_NAME
# programming language specific settings
language:
name: nodejs
# version of the language
version: "16.14"
# main branch of the repo (to which branch the plugin will submit the workflows)
branch: main
# name of the tool
- name: githubactions-nodejs
# id of the tool instance
instanceID: default
# format: name.instanceID; If specified, dtm will make sure the dependency is applied first before handling this tool.
dependsOn: [ ]
# options for the plugin
options:
# the repo's owner. It should be case-sensitive here; strictly use your GitHub user name; please change the value below.
owner: YOUR_GITHUB_USERNAME
# the repo's org. If you set this property, then the new repo will be created under the org you're given, and the "owner" setting above will be ignored.
org: YOUR_ORGANIZATION_NAME
# the repo where you'd like to setup GitHub Actions; please change the value below to an existing repo.
repo: YOUR_REPO_NAME
# programming language specific settings
language:
name: nodejs
# version of the language
version: "16.14"
# main branch of the repo (to which branch the plugin will submit the workflows)
branch: main
42 changes: 21 additions & 21 deletions internal/pkg/show/config/plugins/githubactions-python.yaml
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
tools:
# name of the tool
- name: githubactions-python
# id of the tool instance
instanceID: default
# format: name.instanceID; If specified, dtm will make sure the dependency is applied first before handling this tool.
dependsOn: [ ]
# options for the plugin
options:
# the repo's owner. It should be case-sensitive here; strictly use your GitHub user name; please change the value below.
owner: YOUR_GITHUB_USERNAME
# the repo's org. If you set this property, then the new repo will be created under the org you're given, and the "owner" setting above will be ignored.
org: YOUR_ORGANIZATION_NAME
# the repo where you'd like to setup GitHub Actions; please change the value below to an existing repo.
repo: YOUR_REPO_NAME
# programming language specific settings
language:
name: python
# version of the language
version: "3.8"
# main branch of the repo (to which branch the plugin will submit the workflows)
branch: main
# name of the tool
- name: githubactions-python
# id of the tool instance
instanceID: default
# format: name.instanceID; If specified, dtm will make sure the dependency is applied first before handling this tool.
dependsOn: [ ]
# options for the plugin
options:
# the repo's owner. It should be case-sensitive here; strictly use your GitHub user name; please change the value below.
owner: YOUR_GITHUB_USERNAME
# the repo's org. If you set this property, then the new repo will be created under the org you're given, and the "owner" setting above will be ignored.
org: YOUR_ORGANIZATION_NAME
# the repo where you'd like to setup GitHub Actions; please change the value below to an existing repo.
repo: YOUR_REPO_NAME
# programming language specific settings
language:
name: python
# version of the language
version: "3.8"
# main branch of the repo (to which branch the plugin will submit the workflows)
branch: main
36 changes: 18 additions & 18 deletions internal/pkg/show/config/plugins/gitlabci-generic.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
tools:
# name of the tool
- name: gitlabci-generic
# id of the tool instance
instanceID: default
# format: name.instanceID; If specified, dtm will make sure the dependency is applied first before handling this tool.
dependsOn: [ ]
# options for the plugin
options:
projectRepo:
owner: YOUR_GITLAB_USERNAME
repo: YOUR_GITLAB_REPO_NAME
branch: YOUR_GITLAB_REPO_BRANCH
baseURL: YOUR_GITLAB_HOST_ADDRESS
ci:
remoteURL : https://someplace.com/to/download/your/template
vars:
key1: value1
key2: value2
# name of the tool
- name: gitlabci-generic
# id of the tool instance
instanceID: default
# format: name.instanceID; If specified, dtm will make sure the dependency is applied first before handling this tool.
dependsOn: [ ]
# options for the plugin
options:
projectRepo:
owner: YOUR_GITLAB_USERNAME
repo: YOUR_GITLAB_REPO_NAME
branch: YOUR_GITLAB_REPO_BRANCH
baseURL: YOUR_GITLAB_HOST_ADDRESS
ci:
remoteURL : https://someplace.com/to/download/your/template
vars:
key1: value1
key2: value2
26 changes: 13 additions & 13 deletions internal/pkg/show/config/plugins/gitlabci-golang.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
tools:
# name of the tool
- name: gitlabci-golang
# id of the tool instance
instanceID: default
# format: name.instanceID; If specified, dtm will make sure the dependency is applied first before handling this tool.
dependsOn: [ ]
# options for the plugin
options:
projectRepo:
owner: YOUR_GITLAB_USERNAME
repo: YOUR_GITLAB_REPO_NAME
branch: YOUR_GITLAB_REPO_BRANCH
baseURL: YOUR_GITLAB_HOST_ADDRESS
# name of the tool
- name: gitlabci-golang
# id of the tool instance
instanceID: default
# format: name.instanceID; If specified, dtm will make sure the dependency is applied first before handling this tool.
dependsOn: [ ]
# options for the plugin
options:
projectRepo:
owner: YOUR_GITLAB_USERNAME
repo: YOUR_GITLAB_REPO_NAME
branch: YOUR_GITLAB_REPO_BRANCH
baseURL: YOUR_GITLAB_HOST_ADDRESS
2 changes: 2 additions & 0 deletions internal/pkg/show/config/plugins/harbor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ tools:
chartPath: ""
# name of the chart
chartName: harbor/harbor
# version of the chart
version: ""
# k8s namespace where Harbor will be installed
namespace: harbor
# release name of the chart
Expand Down
Loading

0 comments on commit ad09525

Please sign in to comment.