{{ if eq .ConfigItems.kube_aws_iam_controller_kube_system_enable "true"}}
apiVersion: zalando.org/v1
kind: AWSIAMRole
metadata:
  name: zmon-aws-iam-credentials
  namespace: kube-system
spec:
  roleReference: {{.LocalID}}-app-zmon
{{ end }}

{{ if eq .ConfigItems.kube_aws_iam_controller_kube_system_enable "true"}}
apiVersion: zalando.org/v1
kind: AWSIAMRole
metadata:
  name: zmon-aws-iam-credentials
  namespace: visibility
spec:
  roleReference: {{.LocalID}}-app-zmon
{{ end }}

Deploy IAM role in correct namespace
Deploy IAM role in correct namespace

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