Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion backend/pkg/helm/release.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,12 @@
listClient.Short = true
listClient.SetStateMask()

return listClient.Run()
releases, err := listClient.Run()
if releases == nil {
releases = []*release.Release{}
}

return releases, err
}

func (h *Handler) ListRelease(clientConfig clientcmd.ClientConfig, w http.ResponseWriter, r *http.Request) {
Expand Down Expand Up @@ -195,7 +200,7 @@
return validate.Struct(req)
}

func (h *Handler) GetRelease(clientConfig clientcmd.ClientConfig, w http.ResponseWriter, r *http.Request) {

Check failure on line 203 in backend/pkg/helm/release.go

View workflow job for this annotation

GitHub Actions / build

Function 'GetRelease' is too long (63 > 60) (funlen)
// Parse request
var req GetReleaseRequest

Expand Down Expand Up @@ -345,7 +350,7 @@
return validate.Struct(req)
}

func (h *Handler) UninstallRelease(clientConfig clientcmd.ClientConfig, w http.ResponseWriter, r *http.Request) {

Check failure on line 353 in backend/pkg/helm/release.go

View workflow job for this annotation

GitHub Actions / build

Function 'UninstallRelease' is too long (69 > 60) (funlen)
// Parse request
var req UninstallReleaseRequest

Expand Down Expand Up @@ -447,7 +452,7 @@
return validate.Struct(req)
}

func (h *Handler) RollbackRelease(clientConfig clientcmd.ClientConfig, w http.ResponseWriter, r *http.Request) {

Check failure on line 455 in backend/pkg/helm/release.go

View workflow job for this annotation

GitHub Actions / build

Function 'RollbackRelease' is too long (63 > 60) (funlen)
// Parse request and validate
var req RollbackReleaseRequest

Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/common/Resource/EditButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export default function EditButton(props: EditButtonProps) {
content: (
<EditorDialog
noDialog
item={item.getEditableObject()}
item={item}
open
onClose={() => Activity.close(activityId)}
onSave={handleSave}
Expand Down
Loading
Loading