apiVersion: v1
kind: ConfigMap

metadata:
  name: swift-account-caretaker
  labels:
    system: openstack
    service: objectstore
    component: configuration

data:
  config.yaml: |
    common:
      os_auth_url: {{ .Values.swift_account_caretaker.auth_url }}
      os_user_domain_name: Default
      os_username: swift_caretaker
      os_password: { fromEnv: CARETAKER_PASSWORD }
      os_project_domain_name: cc3test
      os_project_name: swift_test
    verify:
      - cluster_name: cluster-3
        os_auth_url: {{ .Values.swift_account_caretaker.auth_url }}
        os_user_domain_name: Default
        os_username: swift_caretaker
        os_password: { fromEnv: CARETAKER_PASSWORD }
        os_project_domain_name: Default
        os_project_name: service

  statsd-exporter.yaml: |
    defaults:
      observer_type: histogram
      histogram_options:
        buckets: [.025, .1, .25, 1, 2.5]
      match_type: glob
      glob_disable_ordering: false
      ttl: 0 # metrics do not expire
    mappings:
    - match: caretaker.accounts.*
      name: "swift_cluster_accounts_${1}"
