Skip to content

Commit

Permalink
return nil on empty schema
Browse files Browse the repository at this point in the history
  • Loading branch information
petar-cvit committed Oct 24, 2024
1 parent d548123 commit ad33e12
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cyclops-ctrl/internal/controller/helm.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@ func (h *Helm) GetReleaseSchema(ctx *gin.Context) {
return
}

if len(release.Chart.Schema) == 0 {
ctx.JSON(http.StatusOK, nil)
}

var root *helm2.Property
err = json.Unmarshal(release.Chart.Schema, &root)
if err != nil {
Expand Down

0 comments on commit ad33e12

Please sign in to comment.