# Copyright 2019 The Tekton Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

apiVersion: v1
kind: ConfigMap
metadata:
  name: config-defaults
  namespace: tekton-pipelines
  labels:
    app.kubernetes.io/instance: default
    app.kubernetes.io/part-of: tekton-pipelines
data:
  _example: "################################\n#                              #\n#
    \   EXAMPLE CONFIGURATION     #\n#                              #\n################################\n\n#
    This block is not actually functional configuration,\n# but serves to illustrate
    the available configuration\n# options and document them in a way that is accessible\n#
    to users that `kubectl edit` this config map.\n#\n# These sample configuration
    options may be copied out of\n# this example block and unindented to be in the
    data block\n# to actually change the configuration.\n\n# default-timeout-minutes
    contains the default number of\n# minutes to use for TaskRun and PipelineRun,
    if none is specified.\ndefault-timeout-minutes: \"60\"  # 60 minutes\n\n# default-service-account
    contains the default service account name\n# to use for TaskRun and PipelineRun,
    if none is specified.\ndefault-service-account: \"default\"\n\n# default-managed-by-label-value
    contains the default value given to the\n# \"app.kubernetes.io/managed-by\" label
    applied to all Pods created for\n# TaskRuns. If a user's requested TaskRun specifies
    another value for this\n# label, the user's request supercedes.\ndefault-managed-by-label-value:
    \"tekton-pipelines\"\n\n# default-pod-template contains the default pod template
    to use\n# TaskRun and PipelineRun, if none is specified. If a pod template\n#
    is specified, the default pod template is ignored.\n# default-pod-template:\n\n#
    default-cloud-events-sink contains the default CloudEvents sink to be\n# used
    for TaskRun and PipelineRun, when no sink is specified.\n# Note that right now
    it is still not possible to set a PipelineRun or\n# TaskRun specific sink, so
    the default is the only option available.\n# If no sink is specified, no CloudEvent
    is generated\n# default-cloud-events-sink:\n  \n# default-task-run-workspace-binding
    contains the default workspace\n# configuration provided for any Workspaces that
    a Task declares\n# but that a TaskRun does not explicitly provide.\n# default-task-run-workspace-binding:
    |\n#   emptyDir: {}\n"
