---
# Source: lighthouse/templates/webhooks-deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: lighthouse-webhooks
  labels:
    draft: draft-app
    chart: "lighthouse-0.0.683"
    app: lighthouse-webhooks
  annotations:
    checksum/config: 76ab9fb6ef968b6e338a15d4353d8d9ac76760519d0e8cedba062f6a61462bd2
spec:
  replicas: 2
  selector:
    matchLabels:
      draft: draft-app
      app: lighthouse-webhooks
  template:
    metadata:
      labels:
        draft: draft-app
        app: lighthouse-webhooks
    spec:
      serviceAccountName: lighthouse-webhooks
      containers:
      - name: lighthouse-webhooks
        image: gcr.io/jenkinsxio/lighthouse-webhooks:0.0.683
        imagePullPolicy: IfNotPresent
        args:
          - "--namespace=jx"
        env:
          - name: "GIT_KIND"
            value: "github"
          - name: "GIT_SERVER"
            value: "https://github.com"
          - name: "GIT_USER"
            value: todo
          - name: "GIT_TOKEN"
            valueFrom:
              secretKeyRef:
                name: lighthouse-oauth-token
                key: oauth
          - name: "HMAC_TOKEN"
            valueFrom:
              secretKeyRef:
                name: "lighthouse-hmac-token"
                key: hmac
          - name: "JX_LOG_FORMAT"
            value: "json"
          - name: "LOGRUS_FORMAT"
            value: "json"
          - name: JX_DEFAULT_IMAGE
            value: "gcr.io/jenkinsxio-labs-private/jxl:0.0.208"
        ports:
        - containerPort: 8080
        livenessProbe:
          httpGet:
            path: /
            port: 8080
          initialDelaySeconds: 60
          periodSeconds: 10
          successThreshold: 1
          timeoutSeconds: 1
        readinessProbe:
          httpGet:
            path: /
            port: 8080
          periodSeconds: 10
          successThreshold: 1
          timeoutSeconds: 1
        resources:
            limits:
              cpu: 100m
              memory: 256Mi
            requests:
              cpu: 80m
              memory: 128Mi
      terminationGracePeriodSeconds: 180
