apiVersion: v1
kind: ConfigMap
metadata:
  name: aks-egress-controller-config-map
  namespace: aks-egress-system
  labels:
    control-plane: aks-egress-controller-manager
    app: egress-azure
    chart: {{ .Chart.Name }}-{{ .Chart.Version }}
data:
{{ if .Values.fw.policyResourceID }}
  FW_POLICY_RESOURCE_ID: {{ .Values.fw.policyResourceID | quote }}
{{ else }}
  FW_POLICY_RESOURCE_GROUP: {{ default "" .Values.fw.policyResourceGroup | quote }}
  FW_POLICY_SUBSCRIPTION_ID: {{ default "" .Values.fw.policySubscriptionId | quote}}
  FW_POLICY_NAME: {{ default "" .Values.fw.policyName | quote }}
{{ end }}
  FW_POLICY_RULE_COLLECTION_GROUP: {{ .Values.fw.policyRuleCollectionGroup | quote }}
  FW_POLICY_RULE_COLLECTION_GROUP_PRIORITY: {{ .Values.fw.policyRuleCollectionGroupPriority | quote }}