工作流控制器配置映射¶
简介¶
Workflow Controller Config Map 用于设置控制器范围的配置。
如需查看详细示例,请参阅workflow-controller-configmap.yaml。
替代结构¶
在所有版本中,配置可能位于 config: | 键下:
# This file describes the config settings available in the workflow controller configmap
apiVersion: v1
kind: ConfigMap
metadata:
name: workflow-controller-configmap
data:
config: |
instanceID: my-ci-controller
artifactRepository:
archiveLogs: true
s3:
endpoint: s3.amazonaws.com
bucket: my-bucket
region: us-west-2
insecure: false
accessKeySecret:
name: my-s3-credentials
key: accessKey
secretKeySecret:
name: my-s3-credentials
key: secretKey
在2.7+版本中,config: |键是可选的。但如果未使用config: |键,则顶层键下的所有嵌套映射都应为字符串。这使得使用Kustomize等配置管理工具生成映射更加容易。
# This file describes the config settings available in the workflow controller configmap
apiVersion: v1
kind: ConfigMap
metadata:
name: workflow-controller-configmap
data: # "config: |" key is optional in 2.7+!
instanceID: my-ci-controller
artifactRepository: | # However, all nested maps must be strings
archiveLogs: true
s3:
endpoint: s3.amazonaws.com
bucket: my-bucket
region: us-west-2
insecure: false
accessKeySecret:
name: my-s3-credentials
key: accessKey
secretKeySecret:
name: my-s3-credentials
key: secretKey