update statefulset to include verbose PVC reference#654
update statefulset to include verbose PVC reference#654ritzk wants to merge 1 commit intoopensearch-project:mainfrom
Conversation
|
@ritzk Please do DCO Checks and check the linting output. |
@DandyDeveloper lint failed due to n/w issues on the action runner. |
|
@ritzk One thing you will wanna test, can you install the original, then upgrade with your changes. Can you confirm if this "breaks" because the STS isn't immutable? This will cause some real problems because people would effectively need to remove the STS, then apply these updates which could bring multiple nodes down on an upgrade if forced. |
This is what is written to kubernetes, atleast on 1.24.x & 1.29.x → helm install -n opensearch --create-namespace opensearch opensearch/opensearch
→ kubectl -n opensearch get statefulsets.apps opensearch-cluster-master -o jsonpath-as-json='{.spec.volumeClaimTemplates[0]}'|jq .
[
{
"apiVersion": "v1",
"kind": "PersistentVolumeClaim",
"metadata": {
"creationTimestamp": null,
"name": "opensearch-cluster-master"
},
"spec": {
"accessModes": [
"ReadWriteOnce"
],
"resources": {
"requests": {
"storage": "8Gi"
}
},
"volumeMode": "Filesystem"
},
"status": {
"phase": "Pending"
}
}
] |
|
@ritzk Sorry for the delay, I mean we need to test an install from the current chart version, then upgrade to yours. Because the change in spec MAY complain that the This will mean people upgrading will all break and have to forcefully remove and add the statefulset. This could be bad! Can you check this? |
@DandyDeveloper Works fine. install upgrade |
Signed-off-by: Ritesh Khadgaray <khadgaray@gmail.com>
Description
The issue is that the verbose reference is added once ArgoCD applies the chart to cluster. This results in ArgoCD thinking there is a diff, when there is none. This can be solved by adding a patch which adds the verbose reference.
Issues Resolved
n/a
Check List
For any changes to files within Helm chart directories:
CHANGELOG.mdupdated to reflect changeBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.
Similar to bitnami/charts#17140