{{ if eq .ConfigItems.enable_ingress_template_controller "true"}}
apiVersion: apps/v1
kind: Deployment
metadata:
  name: ingress-template-controller
  namespace: kube-system
  labels:
    application: ingress-template-controller
    version: master-5
spec:
  replicas: 1
  selector:
    matchLabels:
      application: ingress-template-controller
  template:
    metadata:
      labels:
        application: ingress-template-controller
        version: master-5
    spec:
      dnsConfig:
        options:
          - name: ndots
            value: "1"
      serviceAccountName: ingress-template-controller
      containers:
      - name: ingress-template-controller
        image: pierone.stups.zalan.do/teapot/ingress-template-controller:master-5
        resources:
          limits:
            cpu: 10m
            memory: 50Mi
          requests:
            cpu: 10m
            memory: 50Mi
{{ end }}

{{ if eq .ConfigItems.enable_ingress_template_controller "true"}}
apiVersion: apps/v1
kind: Deployment
metadata:
  name: ingress-template-controller
  namespace: kube-system
  labels:
    application: ingress-template-controller
spec:
  replicas: 1
  selector:
    matchLabels:
      application: ingress-template-controller
  template:
    metadata:
      labels:
        application: ingress-template-controller
    spec:
      dnsConfig:
        options:
          - name: ndots
            value: "1"
      serviceAccountName: ingress-template-controller
      containers:
      - name: ingress-template-controller
        image: pierone.stups.zalan.do/teapot/ingress-template-controller:3ec5b3c
        resources:
          limits:
            cpu: 10m
            memory: 50Mi
          requests:
            cpu: 10m
            memory: 50Mi
{{ end }}

Update ingress-template-controller to work with v1.18
Update ingress-template-controller to work with v1.18

Signed-off-by: Mikkel Oscar Lyderik Larsen <81479e3d2d1e6902cb05f938ea9a734a092b1af3@zalando.de>
