apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: admin-tools-gerrit
  annotations:
    konghq.com/preserve-host: 'false'
    konghq.com/protocols: 'http,https'
  labels:
    app: gerrit
    {{- include "gerrit-operator.metaLabels" . | nindent 4 }}
spec:
  ingressClassName: kong-admin-tools
  rules:
  - host: {{ template "admin-tools.hostname" . }}
    http:
      paths:
        - path: /{{ .Values.gerrit.basePath }}
          pathType: ImplementationSpecific
          backend:
            service:
              name: admin-tools-gerrit
              port:
                number: {{ .Values.gerrit.port }}
