Skip to content

Commit

Permalink
Add CreatedBy and KubeconfigExists fields in the runtimes endpoint (#…
Browse files Browse the repository at this point in the history
…1353)

Add CreatedBy and KubeconfigExists fields in the runtimes endpoint (bindings)
  • Loading branch information
piotrmiskiewicz authored Oct 17, 2024
1 parent c108691 commit 7f42676
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion common/runtime/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ type BindingDTO struct {
CreatedAt time.Time `json:"createdAt"`
ExpirationSeconds int64 `json:"expiresInSeconds"`
ExpiresAt time.Time `json:"expiresAt"`
Type string `json:"type"`
KubeconfigExists bool `json:"kubeconfigExists"`
CreatedBy string `json:"createdBy"`
}

type RuntimeStatus struct {
Expand Down
2 changes: 2 additions & 0 deletions internal/runtime/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,8 @@ func (h *Handler) addBindings(p *pkg.RuntimeDTO) error {
ExpirationSeconds: b.ExpirationSeconds,
CreatedAt: b.CreatedAt,
ExpiresAt: b.ExpiresAt,
CreatedBy: b.CreatedBy,
KubeconfigExists: len(b.Kubeconfig) > 0,
})
}

Expand Down

0 comments on commit 7f42676

Please sign in to comment.