Giter Site home page Giter Site logo

Comments (4)

Kanaga13579 avatar Kanaga13579 commented on June 9, 2024 1

@aravindavk do you remember what option has high priority? If not, will have a quick look at the code.

looks like kadalu_format: native (default value) is taking high preference here. Removing the default value for kadalu_format field from CRD file will fix this issue.

from kadalu.

leelavg avatar leelavg commented on June 9, 2024

What am I missing here?

from kadalu.

Kanaga13579 avatar Kanaga13579 commented on June 9, 2024

Change kadalu_format to single_pv_per_pool ---> In this fix, please remove default value given for kadalu_format field in CRD file.
https://github.com/kadalu/kadalu/blob/devel/helm/kadalu/charts/operator/crds/kadalu_storage.yaml#L45
Because if I just use single_pv_per_pool: true in my kadalu storage class, I still see storage class getting created with single_pv_per_pool as "False", as default value "native" is getting applied for kadalu_format field.

This is the file I applied.

apiVersion: kadalu-operator.storage/v1alpha1
kind: KadaluStorage
metadata:
  name: check-vol
spec:
  details:
    gluster_hosts: [10.10.126.140,10.10.136.24,10.10.146.207]
    gluster_options: log-level=DEBUG
    gluster_volname: glustervol3
  pvReclaimPolicy: retain
  single_pv_per_pool: true
  type: External

This is the object which got created.

allowVolumeExpansion: true
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
  annotations:
    kubectl.kubernetes.io/last-applied-configuration: |
      {"allowVolumeExpansion":true,"apiVersion":"storage.k8s.io/v1","kind":"StorageClass","metadata":{"annotations":{},"name":"kadalu.check-vol"},"parameters":{"gluster_hosts":"10.10.126.140,10.10.136.24,10.10.146.207","gluster_options":"log-level=DEBUG","gluster_volname":"glustervol3","hostvol_type":"External","single_pv_per_pool":"False"},"provisioner":"kadalu"}
  creationTimestamp: "2023-04-12T08:05:59Z"
  name: kadalu.check-vol
  resourceVersion: "13874"
  uid: 80876066-2917-41fe-904f-db7d13058f6d
parameters:
  gluster_hosts: 10.10.126.140,10.10.136.24,10.10.146.207
  gluster_options: log-level=DEBUG
  gluster_volname: glustervol3
  hostvol_type: External
  single_pv_per_pool: "False"
provisioner: kadalu
reclaimPolicy: Delete
volumeBindingMode: Immediate

Now, I have to use both fields(kadalu_format: non-native single_pv_per_pool: true) in my storage yaml file to make this work.

from kadalu.

leelavg avatar leelavg commented on June 9, 2024

@aravindavk do you remember what option has high priority? If not, will have a quick look at the code.

from kadalu.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.