3.7. 配置管道解析器
您可以在 TektonConfig
自定义资源 (CR) 中配置管道解析器。您可以启用或禁用这些管道解析器:
-
enable-bundles-resolver
-
enable-cluster-resolver
-
enable-git-resolver
-
enable-hub-resolver
Example
apiVersion: operator.tekton.dev/v1alpha1 kind: TektonConfig metadata: name: config spec: pipeline: enable-bundles-resolver: true enable-cluster-resolver: true enable-git-resolver: true enable-hub-resolver: true
您还可以在 TektonConfig
CR 中提供特定于解析器的配置。例如,以 map[string]string
格式定义以下字段来为每个管道解析器设置配置:
Example
apiVersion: operator.tekton.dev/v1alpha1 kind: TektonConfig metadata: name: config spec: pipeline: bundles-resolver-config: default-service-account: pipelines cluster-resolver-config: default-namespace: test git-resolver-config: server-url: localhost.com hub-resolver-config: default-tekton-hub-catalog: tekton