k8s.io/test-infra@v0.0.0-20240520184403-27c6b4c223d8/config/prow/cluster/needs-rebase_deployment.yaml (about)

     1  # Copyright 2016 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: needs-rebase
    20    labels:
    21      app: needs-rebase
    22  spec:
    23    replicas: 1
    24    selector:
    25      matchLabels:
    26        app: needs-rebase
    27    template:
    28      metadata:
    29        labels:
    30          app: needs-rebase
    31      spec:
    32        terminationGracePeriodSeconds: 180
    33        containers:
    34        - name: needs-rebase
    35          image: gcr.io/k8s-prow/needs-rebase:v20240517-ea10bd814
    36          imagePullPolicy: Always
    37          args:
    38          - --dry-run=false
    39          - --github-endpoint=http://ghproxy
    40          - --github-endpoint=https://api.github.com
    41          - --github-token-path=/etc/github/oauth
    42          - --update-period=6h
    43          ports:
    44            - name: http
    45              containerPort: 8888
    46          volumeMounts:
    47          - name: hmac
    48            mountPath: /etc/webhook
    49            readOnly: true
    50          - name: oauth
    51            mountPath: /etc/github
    52            readOnly: true
    53          - name: plugins
    54            mountPath: /etc/plugins
    55            readOnly: true
    56        volumes:
    57        - name: hmac
    58          secret:
    59            secretName: hmac-token
    60        - name: oauth
    61          secret:
    62            secretName: oauth-token
    63        - name: plugins
    64          configMap:
    65            name: plugins