---
# Source: hookshot/templates/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
  name: hookshot
  namespace: matrix
  labels:
    helm.sh/chart: hookshot-0.1.16
    app.kubernetes.io/name: hookshot
    app.kubernetes.io/instance: release-name
    app.kubernetes.io/version: "6.0.2"
    app.kubernetes.io/managed-by: Helm
---
# Source: hookshot/templates/configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
  name: hookshot-config
  namespace: matrix
  labels:
    helm.sh/chart: hookshot-0.1.16
    app.kubernetes.io/name: hookshot
    app.kubernetes.io/instance: release-name
    app.kubernetes.io/version: "6.0.2"
    app.kubernetes.io/managed-by: Helm
data:
  config.yml: |
    bridge:
      bindAddress: 127.0.0.1
      domain: matrix-lp.allarddcs.nl
      mediaUrl: https://matrix-lp.allarddcs.nl
      port: 9993
      url: http://matrix-lp:8008
    listeners:
    - bindAddress: 0.0.0.0
      port: 9000
      resources:
      - webhooks
    - bindAddress: 127.0.0.1
      port: 9001
      resources:
      - metrics
      - provisioning
    - bindAddress: 0.0.0.0
      port: 9002
      resources:
      - widgets
    logging:
      colorize: true
      json: false
      level: info
      timestampFormat: HH:mm:ss:SSS
    passFile: passkey.pem
  registration.yml: |
    as_token: ""
    generic:
      enabled: true
      urlPrefix: https://hookshot-lp.allarddcs.nl
    hs_token: ""
    id: matrix-hookshot
    namespaces:
      rooms: []
      users: []
    rate_limited: false
    sender_localpart: hookshot
    url: http://example.com
  passkey.pem: |
---
apiVersion: v1
kind: Service
metadata:
  name: hookshot
  namespace: matrix
  labels:
    helm.sh/chart: hookshot-0.1.16
    app.kubernetes.io/name: hookshot
    app.kubernetes.io/instance: release-name
    app.kubernetes.io/version: "6.0.2"
    app.kubernetes.io/managed-by: Helm
spec:
  type: ClusterIP
  ports:
    - port: 9000
      targetPort: webhook
      protocol: TCP
      name: webhook
    - port: 9001
      targetPort: metrics
      protocol: TCP
      name: metrics
    - port: 9002
      targetPort: appservice
      protocol: TCP
      name: appservice
  selector:
    app.kubernetes.io/name: hookshot
    app.kubernetes.io/instance: release-name
---
# Source: hookshot/templates/deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: hookshot
  namespace: matrix
  labels:
    helm.sh/chart: hookshot-0.1.16
    app.kubernetes.io/name: hookshot
    app.kubernetes.io/instance: release-name
    app.kubernetes.io/version: "6.0.2"
    app.kubernetes.io/managed-by: Helm
spec:
  replicas: 1
  selector:
    matchLabels:
      app.kubernetes.io/name: hookshot
      app.kubernetes.io/instance: release-name
  template:
    metadata:
      labels:
        app.kubernetes.io/name: hookshot
        app.kubernetes.io/instance: release-name
    spec:
      containers:
        - name: hookshot
          image: "halfshot/matrix-hookshot:6.0.2"
          imagePullPolicy: IfNotPresent
          volumeMounts:
            - name: config
              mountPath: "/data"
          ports:
            - name: webhook
              containerPort: 9000
              protocol: TCP
            - name: metrics
              containerPort: 9001
              protocol: TCP
            - name: appservice
              containerPort: 9002
              protocol: TCP
          env:
          envFrom:
          livenessProbe:
            null
          readinessProbe:
            null
          resources:
            {}
      volumes:
        - name: config
          configMap:
            name: release-name-hookshot-config
---
apiVersion: v1
kind: Pod
metadata:
  name: "hookshot-test-connection"
  labels:
    helm.sh/chart: hookshot-0.1.16
    app.kubernetes.io/name: hookshot
    app.kubernetes.io/instance: release-name
    app.kubernetes.io/version: "6.0.2"
    app.kubernetes.io/managed-by: Helm
  annotations:
    "helm.sh/hook": test
spec:
  containers:
    - name: wget
      image: busybox
      command: ['wget']
      args: ['hookshot:9000']
  restartPolicy: Never
