apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
%{ if can(namespace) }namespace: ${namespace}%{ endif }

resources:
%{ for resource in resources }- ${resource}
%{ endfor }