openebs-archive / maya

Manage Container Attached Storage (CAS) - Data Engines in Kubernetes
https://docs.openebs.io
Apache License 2.0
184 stars 201 forks source link

feat(cas-template-engine): add 'data' map key to volumeconfig alongside value and enabled #1823

Closed niladrih closed 3 years ago

niladrih commented 3 years ago

Signed-off-by: Niladri Halder niladri.halder@mayadata.io

Why is this PR required? What issue does it fix?: This is required in openebs/dynamic-localpv-provisioner repo to parse the cas-template of format

- name: XFSQuota
  enabled: true
  data: |
      SoftLimitGrace: 80
      HardLimitGrace: 85

What this PR does?: Adds instruction to add the embedded Data component from v1alpha1.config object to the map when ConfigToMap function is called.

niladrih commented 3 years ago

This change breaks existing code. Closing this.