Skip to content

Commit

Permalink
fix: enable secret endpoint flag
Browse files Browse the repository at this point in the history
  • Loading branch information
vsukhin committed Apr 8, 2024
1 parent 6453592 commit 368155a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions api/v1/testkube.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5867,6 +5867,9 @@ components:
type: string
description: dashboard uri
example: "http://localhost:8080"
enableSecretEndpoint:
type: boolean
description: enable secret endpoint to list secrets in namespace
disableSecretCreation:
type: boolean
description: disable secret creation for tests and test sources
Expand Down
1 change: 1 addition & 0 deletions internal/app/api/v1/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ func (s *TestkubeAPI) InfoHandler() fiber.Handler {
OrgId: orgID,
HelmchartVersion: s.helmchartVersion,
DashboardUri: s.dashboardURI,
EnableSecretEndpoint: s.enableSecretsEndpoint,
DisableSecretCreation: s.disableSecretCreation,
Features: &testkube.Features{
LogsV2: s.featureFlags.LogsV2,
Expand Down
2 changes: 2 additions & 0 deletions pkg/api/v1/testkube/model_server_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ type ServerInfo struct {
HelmchartVersion string `json:"helmchartVersion,omitempty"`
// dashboard uri
DashboardUri string `json:"dashboardUri,omitempty"`
// enable secret endpoint to list secrets in namespace
EnableSecretEndpoint bool `json:"enableSecretEndpoint,omitempty"`
// disable secret creation for tests and test sources
DisableSecretCreation bool `json:"disableSecretCreation,omitempty"`
Features *Features `json:"features,omitempty"`
Expand Down

0 comments on commit 368155a

Please sign in to comment.