---
apiVersion: agent.open-cluster-management.io/v1
kind: KlusterletAddonConfig
metadata:
  name: '{{{name}}}'
  namespace: '{{{name}}}'
spec:
  clusterName: '{{{name}}}'
  clusterNamespace: '{{{name}}}'
  clusterLabels:
{{#switch infrastructure}}
  {{#case 'AWS'}}
    cloud: Amazon
  {{/case}}
  {{#case 'GCP'}}
    cloud: Google
  {{/case}}
  {{#case 'Azure'}}
    cloud: Azure
  {{/case}}
  {{#case 'BMC'}}
    cloud: Bare-Metal
  {{/case}}
  {{#case 'vSphere'}}
    cloud: vSphere
  {{/case}}
  {{#case 'OpenStack'}}
    cloud: OpenStack
  {{/case}}
{{/switch}}
    vendor: {{{distribution}}}
  applicationManager:
    {{#if argocdcluster}}
    argocdCluster: true
    {{/if}}
    enabled: true
  policyController:
    enabled: true
  searchCollector:
    enabled: true
  certPolicyController:
    enabled: true
  iamPolicyController:
    enabled: true
