跳转至

tekton 插件

用例

YAML
tools:
  # name of the tool
  - name: tekton
    # 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:
      repo:
        # name of the Helm repo
        name: tekton
        # url of the Helm repo, use self host helm config beacuse official helm does'nt support namespace config
        url: https://steinliber.github.io/tekton-helm-chart/
      # 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: tekton/tekton-pipeline
        # k8s namespace where Tekton will be installed
        namespace: tekton
        # release name of the chart
        releaseName: tekton
        # 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
        valuesYaml: |
          serviceaccount:
            enabled: true

Default Configs

key default value description
chart.chartPath "" 本地 chart 包路径
chart.chartName tekton/tekton-pipeline helm 包名称
chart.timeout 5m 等待部署成功的时间
chart.upgradeCRDs true 默认更新 CRD 配置(如果存在的话)
chart.releaseName tekton helm 发布名称
chart.wait true 是否等待部署完成
chart.namespace tekton helm 部署的命名空间名称
repo.url https://steinliber.github.io/tekton-helm-chart/ helm 官方仓库地址
repo.name tekton helm 仓库名

目前除了 valuesYaml 和默认配置,以上其它配置项均为必填项。