Skip to content

Commit

Permalink
Add field to hide JWT dashboard (#37)
Browse files Browse the repository at this point in the history
* Add field to hide JWT dashboard

* make gen
  • Loading branch information
superseb authored Nov 1, 2024
1 parent 47e4b4d commit ca31743
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 0 deletions.
11 changes: 11 additions & 0 deletions api/v1/qdrantcluster_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,10 @@ type QdrantConfigurationService struct {
// Default is false
// +optional
JwtRbac *bool `json:"jwt_rbac,omitempty"`
// HideJwtDashboard specifies whether to hide the JWT dashboard of the embedded UI
// Default is false
// +optional
HideJwtDashboard *bool `json:"hide_jwt_dashboard,omitempty"`
// EnableTLS specifies whether to enable tls for the qdrant instance
// Default is false
// +optional
Expand Down Expand Up @@ -470,6 +474,13 @@ func (c *QdrantConfigurationService) GetJwtRbac() bool {
return *c.JwtRbac
}

func (c *QdrantConfigurationService) GetHideJwtDashboard() bool {
if c == nil || c.HideJwtDashboard == nil {
return false
}
return *c.HideJwtDashboard
}

func (c *QdrantConfigurationService) GetEnableTLS() bool {
if c == nil || c.EnableTLS == nil {
return false
Expand Down
5 changes: 5 additions & 0 deletions api/v1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,11 @@ spec:
EnableTLS specifies whether to enable tls for the qdrant instance
Default is false
type: boolean
hide_jwt_dashboard:
description: |-
HideJwtDashboard specifies whether to hide the JWT dashboard of the embedded UI
Default is false
type: boolean
jwt_rbac:
description: |-
JwtRbac specifies whether to enable jwt rbac for the qdrant instance
Expand Down
1 change: 1 addition & 0 deletions docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -702,6 +702,7 @@ _Appears in:_
| `api_key` _[QdrantSecretKeyRef](#qdrantsecretkeyref)_ | ApiKey for the qdrant instance | | |
| `read_only_api_key` _[QdrantSecretKeyRef](#qdrantsecretkeyref)_ | ReadOnlyApiKey for the qdrant instance | | |
| `jwt_rbac` _boolean_ | JwtRbac specifies whether to enable jwt rbac for the qdrant instance<br />Default is false | | |
| `hide_jwt_dashboard` _boolean_ | HideJwtDashboard specifies whether to hide the JWT dashboard of the embedded UI<br />Default is false | | |
| `enable_tls` _boolean_ | EnableTLS specifies whether to enable tls for the qdrant instance<br />Default is false | | |


Expand Down

0 comments on commit ca31743

Please sign in to comment.