mirror of
https://github.com/kubevela/kubevela.git
synced 2026-08-19 04:26:39 +00:00
Fix: remove .cue suffix from the component name of observability (#2796)
If the component name has a suffix `.cue`, it will hit issue of not match a DNS name
This commit is contained in:
@@ -501,6 +501,9 @@ func RenderApplication(addon *types.Addon, args map[string]interface{}) (*v1beta
|
||||
if err != nil {
|
||||
return nil, nil, ErrRenderCueTmpl
|
||||
}
|
||||
if addon.Name == "observability" && strings.HasSuffix(comp.Name, ".cue") {
|
||||
comp.Name = strings.Split(comp.Name, ".cue")[0]
|
||||
}
|
||||
app.Spec.Components = append(app.Spec.Components, *comp)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user