apiVersion: nplus.cloud/v1beta1
kind: Application
metadata:
  {{- if .this.utils.includeNamespace }}
  namespace: {{ .Release.Namespace }}
  {{- end }}
  name: {{ .component.fullName }}
  labels:
    {{- include "nplus.instanceLabels" . | nindent 4 }}
  annotations:
    {{- include "nplus.annotations" . | nindent 4 }}
    argocd.argoproj.io/sync-wave: "1"
spec:
  docAreas:
    {{- toYaml .Values.docAreas | nindent 4 }}
  run:
    {{- toYaml .Values.run | nindent 4 }}
  selector:
    {{- include "nplus.selectorLabels" . | nindent 4 }}
