apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    app.kubernetes.io/component: kubeflow
    app.kubernetes.io/instance: tektoncd-install-v0.7.0
    app.kubernetes.io/managed-by: kfctl
    app.kubernetes.io/name: tektoncd-install
    app.kubernetes.io/part-of: kubeflow
    app.kubernetes.io/version: v0.7.0
  name: tekton-pipelines-webhook
  namespace: tekton-pipelines
spec:
  replicas: 1
  selector:
    matchLabels:
      app: tekton-pipelines-webhook
      app.kubernetes.io/component: kubeflow
      app.kubernetes.io/instance: tektoncd-install-v0.7.0
      app.kubernetes.io/managed-by: kfctl
      app.kubernetes.io/name: tektoncd-install
      app.kubernetes.io/part-of: kubeflow
      app.kubernetes.io/version: v0.7.0
  template:
    metadata:
      annotations:
        cluster-autoscaler.kubernetes.io/safe-to-evict: "false"
        sidecar.istio.io/inject: "false"
      labels:
        app: tekton-pipelines-webhook
        app.kubernetes.io/component: kubeflow
        app.kubernetes.io/instance: tektoncd-install-v0.7.0
        app.kubernetes.io/managed-by: kfctl
        app.kubernetes.io/name: tektoncd-install
        app.kubernetes.io/part-of: kubeflow
        app.kubernetes.io/version: v0.7.0
    spec:
      containers:
      - env:
        - name: SYSTEM_NAMESPACE
          valueFrom:
            fieldRef:
              fieldPath: metadata.namespace
        image: gcr.io/tekton-releases/github.com/tektoncd/pipeline/cmd/webhook@sha256:7215a25a58c074bbe30a50db93e6a47d2eb5672f9af7570a4e4ab75e50329131
        name: webhook
        volumeMounts:
        - mountPath: /etc/config-logging
          name: config-logging
      serviceAccountName: tekton-pipelines-controller
      volumes:
      - configMap:
          name: config-logging
        name: config-logging
