x-google-marketplace:
  schemaVersion: v2

  applicationApiVersion: v1beta1

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

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

  images:
    '':
      properties:
        nginx.image.repo:
          type: REPO_WITH_REGISTRY
        nginx.image.tag:
          type: TAG
    debian:
      properties:
        nginx.initImage:
          type: FULL
    nginx-exporter:
      properties:
        exporter.image:
          type: FULL
    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
  nginx.replicas:
    type: integer
    title: Replicas
    description: The number of Pods run within NGINX solution
    default: 3
    minimum: 1
  nginx.persistence.storageClass:
    type: string
    title: StorageClass
    description: You can choose an existing StorageClass or create a new one.
    x-google-marketplace:
      type: STORAGE_CLASS
      storageClass:
        type: SSD
  nginx.persistence.size:
    type: string
    title: Storage size for persistent volumes
    default: "5Gi"
    description: NGINX storage size
    pattern: '^[1-9][0-9]*(\.[0-9]+)?[TGM]i?$'
  certificate:
    type: string
    x-google-marketplace:
      type: TLS_CERTIFICATE
      tlsCertificate:
        generatedProperties:
          base64EncodedPrivateKey: tls.base64EncodedPrivateKey
          base64EncodedCertificate: tls.base64EncodedCertificate
  metrics.curatedExporter.enabled:
    type: boolean
    title: Enable Stackdriver Metrics Exporter For Free Curated Metrics
    description: Your GCP project should have Stackdriver enabled. Disable if you use
      non-GCP clusters, because export of metrics to Stackdriver is not supported yet.
    default: true
  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
  publicIp.available:
    type: boolean
    default: true
    x-google-marketplace:
      type: INGRESS_AVAILABLE

required:
- name
- namespace
- nginx.replicas
- metrics.exporter.enabled
