# AUTHORED ONLY — not run from this repo.
# Validate with: kubectl --dry-run=client, yamllint.
# Apply to your own GKE cluster per the gcp-pd-csi primer instructions.
---
id: storage-gcp-pd-csi-dynamic
name: "GCP PD CSI Dynamic Provision"
description: >-
  GCE PD CSI Driver dynamically provisions a Persistent Disk from a PVC using
  a pd-ssd StorageClass with WaitForFirstConsumer binding. The darkroom pod
  mounts the volume and verifies data can be written and read.
labels:
  customer: any
  profile: gke
  chart-test-swarm/target-k8s-version: gke-1.30
cluster:
  provider: gke
  k8s_version: "1.30"
  preinstall:
    - kind: raw_manifest
      path: chart-test/fixtures/storage/gcp-pd-csi/storageclass-ssd.yaml
product:
  chart: ./chart
  release: sample
  namespace: sample
  set:
    darkroom.enabled: "true"
    darkroom.persistence.enabled: "true"
    darkroom.persistence.storageClassName: "pd-ssd"
    darkroom.persistence.accessMode: "ReadWriteOnce"
    darkroom.persistence.size: "10Gi"
asserts:
  - type: helm-status-deployed
    release: sample
    namespace: sample
  - type: pods-ready
    namespace: sample
  - type: smoke-script
    path: chart-test/assertions/storage/gcp-pd-csi/dynamic-provision.sh
tags: [cloud-native, storage]
mechanisms: ['cloud:gke', 'addon:gcp-pd-csi']
category: storage/csi
tier: authored-only
integration: gcp-pd-csi
