genshengyang opened a new issue, #4826:
URL: https://github.com/apache/inlong/issues/4826

   ### What happened
   
   helm upgrade inlong failed when volumes.persistence in values.yaml is set to 
true and volumes.persistence.storageClassName is set to "tke-cfs-storage".
   
   kubectl create namespace inlong
   helm upgrade inlong --install -n inlong ./
   
   Error: UPGRADE FAILED: failed to create resource: PersistentVolumeClaim in 
version "v1" cannot be handled as a PersistentVolumeClaim: 
v1.PersistentVolumeClaim.Spec: v1.PersistentVolumeClaimSpec.Resources: 
v1.ResourceRequirements.Requests: unmarshalerDecoder: quantities must match the 
regular expression '^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$', error found 
in #10 byte of ...|s-storage"}}}}
   |..., bigger context 
...|orage":"10Gi","storageClassName":"tke-cfs-storage"}}}}
   |...
   
   btw, when I changed the value of volumes.persistence.storageClassName to 
"tke\\-cfs\\-storage", the Error above disappeared,
   but the new error below had occurred .
   
   Error: UPGRADE FAILED: YAML parse error on 
inlong/templates/tubemq-broker-statefulset.yaml: error converting YAML to JSON: 
yaml: line 134: found unknown escape character
   
   
   ### What you expected to happen
   
   no errors
   
   ### How to reproduce
   
   volumes.persistence in values.yaml is set to true and 
volumes.persistence.storageClassName is set to "tke-cfs-storage"
   
   kubectl create namespace inlong
   helm upgrade inlong --install -n inlong ./
   
   ### Environment
   
   kubectl version
   
   Client Version: version.Info{Major:"1", Minor:"24", GitVersion:"v1.24.0", 
GoVersion:"go1.18.1", Compiler:"gc", Platform:"windows/amd64"}
   Kustomize Version: v4.5.4
   
   Server Version: version.Info{Major:"1", Minor:"18+", 
GitVersion:"v1.18.8-aliyun.1", GoVersion:"go1.13.15", Compiler:"gc", 
Platform:"linux/amd64"}
   
   
   ### InLong version
   
   1.2.0
   
   ### InLong Component
   
   Other for not specified component
   
   ### Are you willing to submit PR?
   
   - [ ] Yes, I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to