File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change
1
+ changelog :
2
+ - type : NON_USER_FACING
3
+ issueLink : https://github.com/solo-io/gloo-mesh-enterprise/issues/10495
4
+ description : >
5
+ Sort helm values by description if keys are the same.
Original file line number Diff line number Diff line change @@ -251,7 +251,13 @@ func (c Chart) GenerateHelmDoc() string {
251
251
252
252
// alphabetize all values
253
253
sort .Slice (helmValuesForDoc , func (i , j int ) bool {
254
- return helmValuesForDoc [i ].Key < helmValuesForDoc [j ].Key
254
+ if helmValuesForDoc [i ].Key != helmValuesForDoc [j ].Key {
255
+ return helmValuesForDoc [i ].Key < helmValuesForDoc [j ].Key
256
+ }
257
+ if helmValuesForDoc [i ].Description != helmValuesForDoc [j ].Description {
258
+ return helmValuesForDoc [i ].Description < helmValuesForDoc [j ].Description
259
+ }
260
+ return helmValuesForDoc [i ].Type < helmValuesForDoc [j ].Type
255
261
})
256
262
257
263
return helmValuesForDoc .ToMarkdown (c .ValuesReferenceDocs .Title )
You can’t perform that action at this time.
0 commit comments