github.com/zppinho/prow@v0.0.0-20240510014325-1738badeb017/test/integration/config/prow/cluster/prow_controller_manager_deployment.yaml (about)

     1  # Copyright 2020 The Kubernetes Authors All rights reserved.
     2  #
     3  # Licensed under the Apache License, Version 2.0 (the "License");
     4  # you may not use this file except in compliance with the License.
     5  # You may obtain a copy of the License at
     6  #
     7  #     http://www.apache.org/licenses/LICENSE-2.0
     8  #
     9  # Unless required by applicable law or agreed to in writing, software
    10  # distributed under the License is distributed on an "AS IS" BASIS,
    11  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  # See the License for the specific language governing permissions and
    13  # limitations under the License.
    14  
    15  apiVersion: apps/v1
    16  kind: Deployment
    17  metadata:
    18    namespace: default
    19    name: prow-controller-manager
    20    labels:
    21      app: prow-controller-manager
    22  spec:
    23    # Mutually exclusive with plank. Only one of them may have more than zero replicas.
    24    replicas: 1
    25    revisionHistoryLimit: 2
    26    selector:
    27      matchLabels:
    28        app: prow-controller-manager
    29    template:
    30      metadata:
    31        labels:
    32          app: prow-controller-manager
    33      spec:
    34        serviceAccountName: prow-controller-manager
    35        containers:
    36        - name: prow-controller-manager
    37          image: localhost:5001/prow-controller-manager
    38          args:
    39          - --config-path=/etc/config/config.yaml
    40          - --dry-run=false
    41          - --enable-controller=plank
    42          - --job-config-path=/etc/job-config
    43          env:
    44          # Use KUBECONFIG envvar rather than --kubeconfig flag in order to provide multiple configs to merge.
    45          - name: KUBECONFIG
    46            value: "/etc/kubeconfig/config"
    47          volumeMounts:
    48          - mountPath: /etc/kubeconfig
    49            name: kubeconfig
    50            readOnly: true
    51          - name: config
    52            mountPath: /etc/config
    53            readOnly: true
    54          - name: job-config
    55            mountPath: /etc/job-config
    56            readOnly: true
    57        volumes:
    58        - name: kubeconfig
    59          secret:
    60            defaultMode: 420
    61            secretName: kubeconfig
    62        - name: config
    63          configMap:
    64            name: config
    65        - name: job-config
    66          configMap:
    67            name: job-config