Skip to content

Commit

Permalink
docs(clickhousegrant): warn grant syntax ambiguity (#784)
Browse files Browse the repository at this point in the history
  • Loading branch information
byashimov authored Jul 8, 2024
1 parent 500da2f commit da027d9
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
1 change: 1 addition & 0 deletions api/v1alpha1/clickhousegrant_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ type ClickhouseGrantStatus struct {
//+kubebuilder:subresource:status

// ClickhouseGrant is the Schema for the ClickhouseGrants API
// Warning "Ambiguity in the `GRANT` syntax": Due to [an ambiguity](https://github.com/aiven/ospo-tracker/issues/350) in the `GRANT` syntax in Clickhouse, you should not have users and roles with the same name. It is not clear if a grant refers to the user or the role.
// +kubebuilder:printcolumn:name="Project",type="string",JSONPath=".spec.project"
// +kubebuilder:printcolumn:name="Service Name",type="string",JSONPath=".spec.serviceName"
type ClickhouseGrant struct {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ spec:
name: v1alpha1
schema:
openAPIV3Schema:
description: ClickhouseGrant is the Schema for the ClickhouseGrants API
description: |-
ClickhouseGrant is the Schema for the ClickhouseGrants API
Warning "Ambiguity in the `GRANT` syntax": Due to [an ambiguity](https://github.com/aiven/ospo-tracker/issues/350) in the `GRANT` syntax in Clickhouse, you should not have users and roles with the same name. It is not clear if a grant refers to the user or the role.
properties:
apiVersion:
description: |-
Expand Down
4 changes: 3 additions & 1 deletion config/crd/bases/aiven.io_clickhousegrants.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ spec:
name: v1alpha1
schema:
openAPIV3Schema:
description: ClickhouseGrant is the Schema for the ClickhouseGrants API
description: |-
ClickhouseGrant is the Schema for the ClickhouseGrants API
Warning "Ambiguity in the `GRANT` syntax": Due to [an ambiguity](https://github.com/aiven/ospo-tracker/issues/350) in the `GRANT` syntax in Clickhouse, you should not have users and roles with the same name. It is not clear if a grant refers to the user or the role.
properties:
apiVersion:
description: |-
Expand Down
6 changes: 5 additions & 1 deletion docs/docs/api-reference/clickhousegrant.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,11 @@ demo-ch-grant my-aiven-project my-clickhouse

## ClickhouseGrant {: #ClickhouseGrant }

ClickhouseGrant is the Schema for the ClickhouseGrants API.
ClickhouseGrant is the Schema for the ClickhouseGrants API

!!! Warning "Ambiguity in the `GRANT` syntax"

Due to [an ambiguity](https://github.com/aiven/ospo-tracker/issues/350) in the `GRANT` syntax in Clickhouse, you should not have users and roles with the same name. It is not clear if a grant refers to the user or the role.

**Required**

Expand Down

0 comments on commit da027d9

Please sign in to comment.