github.com/zppinho/prow@v0.0.0-20240510014325-1738badeb017/cmd/pipeline/dev.yaml (about)

     1  kind: Deployment
     2  apiVersion: apps/v1
     3  metadata:
     4    name: prow-pipeline
     5  spec:
     6    replicas: 1
     7    selector:
     8      matchLabels:
     9        app: prow-pipeline
    10    template:
    11      metadata:
    12        labels:
    13          app: prow-pipeline
    14      spec:
    15        serviceAccount: prow-pipeline
    16        containers:
    17        - name: pipeline
    18          image: gcr.io/k8s-testimages/pipeline:latest  # Note: not gcr.io/k8s-prow for dev
    19          imagePullPolicy: Always  # Good practice for dev/debugging, bad for prod
    20          args:
    21          - --config=/etc/config/config.yaml
    22          volumeMounts:
    23          - mountPath: /etc/config
    24            name: config
    25            readOnly: true
    26        volumes:
    27        - name: config
    28          configMap:
    29            # This should be the name of the config map for your prow instance
    30            name: config
    31  ---
    32  kind: ServiceAccount
    33  apiVersion: v1
    34  metadata:
    35    name: prow-pipeline
    36  ---
    37  
    38  kind: ClusterRole
    39  apiVersion: rbac.authorization.k8s.io/v1
    40  metadata:
    41    name: prow-pipeline
    42  rules:
    43  - apiGroups:
    44    - pipeline.tekton.dev
    45    resources:
    46    - pipelineruns
    47    verbs:
    48    - create
    49    - delete
    50    - get
    51    - list
    52    - watch
    53  - apiGroups:
    54    - prow.k8s.io
    55    resources:
    56    - prowjobs
    57    verbs:
    58    - get
    59    - list
    60    - watch
    61    - update
    62    - patch
    63  
    64  ---
    65  
    66  kind: ClusterRoleBinding
    67  apiVersion: rbac.authorization.k8s.io/v1
    68  metadata:
    69    name: prow-pipeline
    70  roleRef:
    71    apiGroup: rbac.authorization.k8s.io
    72    kind: ClusterRole
    73    name: prow-pipeline
    74  subjects:
    75  - kind: ServiceAccount
    76    name: prow-pipeline
    77    namespace: default