-
Notifications
You must be signed in to change notification settings - Fork 194
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] config constraint xml formatter error #5817
Comments
This configuration file has the slice type, the current configuration does not support slice type patches, it is recommended to reconfigure by updating instead of patch. The only difference between update and patch is whether there is configconstraint, so delete the constraintRef field in configSpec. |
@sophon-zt |
The same problem also exists in OpsRequest: {
"apiVersion": "apps.kubeblocks.io/v1alpha1",
"kind": "OpsRequest",
"metadata": {
"generateName": "hbase-reconfiguring-11",
"namespace": "default"
},
"spec": {
"clusterRef": "hbase",
"reconfigure": {
"componentName": "hbase-master",
"configurations": [
{
"keys": [
{
"key": "hbase-site.xml",
"parameters": [
{
"key": "zookeeper.session.timeout",
"value": "30001"
}
]
}
],
"name": "hbase-config"
}
]
},
"ttlSecondsAfterSucceed": 0,
"type": "Reconfiguring"
}
} kubectl describe opsrequests hbase-reconfiguring-114m47z
|
opsrequest can't solve this problem, so update the entire file. remove cd.spec.componentDefs[@name=hbase-master].configSpecs[0].constraintRef
|
Because the schema is not strictly defined, it is currently not possible to support list updates like the k8s API. |
OK, we will support the update of array later.
|
If there is enough time, we will support this feature in version 0.8, otherwise it may be delayed to 0.9. |
remove cd.spec.componentDefs[@name=hbase-master].configSpecs[0].constraintRef kbcli cluster edit-config hbase
or
kbcli cluster edit-config hbase --component hbase-master command error:
|
This issue has been marked as stale because it has been open for 30 days with no activity |
Describe the bug
When using config constraint, The formatter is xml, the expected results are not obtained after modifying the configuration file.
To Reproduce
Steps to reproduce the behavior:
Kubernetes: v1.27.4+k3s1
KubeBlocks: 0.7.0
kbcli: 0.7.0
clusterdefinition.yaml
config-tpl-configmap.yaml
configconstraint.yaml
hbase-config.tpl
hbase-config-constraint.cue
4.edit result
![image](https://private-user-images.githubusercontent.com/89451328/281927803-4faaf0b5-5eec-46b2-84b5-6f6bbbcdb7b3.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwMjYwOTQsIm5iZiI6MTczOTAyNTc5NCwicGF0aCI6Ii84OTQ1MTMyOC8yODE5Mjc4MDMtNGZhYWYwYjUtNWVlYy00NmIyLTg0YjUtNmY2YmJiY2RiN2IzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA4VDE0NDMxNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTEyMThmM2QwNmZhNWMzNDgzYzEzNDc5N2Q2YmE2MTQwYWFhYTJhZGJkNTZhNWM3NzhmMzcxNjY1NGJmNjI0YzUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.1mjueIe0gcM1uRypmkS_nIwgny861tyG_TFqB3HlV1M)
Expected behavior
expect
actual
The text was updated successfully, but these errors were encountered: