x-google-marketplace:
  schemaVersion: v2

  applicationApiVersion: v1beta1

  publishedVersion: "$TAG"
  publishedVersionMetadata:
    releaseNote: >-
      A regular update.
    releaseTypes:
    - Feature
    recommended: false

  clusterConstraints:
    resources:
    - requests:
        cpu: 100m
        memory: 100Mi

  images:
    '':
      properties:
        influxdb.image.repo:
          type: REPO_WITH_REGISTRY
        influxdb.image.tag:
          type: TAG
    prometheus-to-sd:
      properties:
        metrics.image:
          type: FULL

properties:
  name:
    type: string
    x-google-marketplace:
      type: NAME
  namespace:
    type: string
    x-google-marketplace:
      type: NAMESPACE
  influxdb.persistence.storageClass:
    type: string
    title: StorageClass
    description: You can choose an existing StorageClass or create a new one. Newly created StorageClass provisioner will be "pd-ssd".
    x-google-marketplace:
      type: STORAGE_CLASS
      storageClass:
        type: SSD
  influxdb.persistence.size:
    type: string
    title: InfluxDB application storage size
    description: Storage size for InfluxDB data persistent volume
    default: '1Gi'
    pattern: '^[1-9][0-9]*(\.[0-9]+)?[TGM]i?$'
  admin.user:
    type: string
    title: InfluxDB admin username
    description: Username for administrator account of InfluxDB database
    default: influxdb-admin
  admin.password:
    type: string
    x-google-marketplace:
      type: GENERATED_PASSWORD
      generatedPassword:
        length: 32
        base64: false
  admin.apiToken:
    type: string
    x-google-marketplace:
      type: GENERATED_PASSWORD
      generatedPassword:
        length: 32
        base64: false
  metrics.exporter.enabled:
    type: boolean
    title: Enable Stackdriver Metrics Exporter
    description: Your GCP project should have Stackdriver enabled. For non-GCP clusters, export of metrics to Stackdriver is not supported yet
    default: false

required:
- name
- namespace
- admin.user
- admin.password
- metrics.exporter.enabled
