Skip to content

Commit

Permalink
deploy: 301bd53
Browse files Browse the repository at this point in the history
  • Loading branch information
byashimov committed Jul 12, 2024
1 parent 79bb178 commit 4aca6d4
Show file tree
Hide file tree
Showing 8 changed files with 284 additions and 86 deletions.
110 changes: 99 additions & 11 deletions api-reference/clickhousegrant.html

Large diffs are not rendered by default.

40 changes: 40 additions & 0 deletions api-reference/examples/clickhousegrant.example_2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@

apiVersion: aiven.io/v1alpha1
kind: ClickhouseGrant
metadata:
name: demo-ch-grant
spec:
authSecretRef:
name: aiven-token
key: token

project: my-aiven-project
serviceName: my-clickhouse

privilegeGrants:
- grantees:
- user: user1
- user: my-clickhouse-user-🦄
privileges:
- SELECT
- INSERT
database: my-db
# If table is omitted, the privileges are granted on all tables in the database
# If columns is omitted, the privileges are granted on all columns in the table
- grantees:
- role: my-role
privileges:
- SELECT
database: my-db
table: my-table
columns:
- col1
- col2

roleGrants:
- roles:
- other-role
grantees:
- user: my-user
- role: my-role

92 changes: 68 additions & 24 deletions api-reference/examples/clickhousegrant.yaml
Original file line number Diff line number Diff line change
@@ -1,40 +1,84 @@

apiVersion: aiven.io/v1alpha1
kind: ClickhouseGrant
metadata:
name: demo-ch-grant
name: my-clickhouse-grant
spec:
authSecretRef:
name: aiven-token
key: token

project: my-aiven-project
serviceName: my-clickhouse
project: aiven-project-name
serviceName: my-clickhouse-service

privilegeGrants:
- grantees:
- user: user1
- user: my-clickhouse-user-🦄
- role: my-clickhouse-role
privileges:
- SELECT
- INSERT
database: my-db
# If table is omitted, the privileges are granted on all tables in the database
# If columns is omitted, the privileges are granted on all columns in the table
- grantees:
- role: my-role
privileges:
- SELECT
database: my-db
table: my-table
columns:
- col1
- col2

- CREATE TABLE
- CREATE VIEW
database: my-clickhouse-db
roleGrants:
- roles:
- other-role
grantees:
- user: my-user
- role: my-role
- grantees:
- user: my-clickhouse-user
roles:
- my-clickhouse-role

---

apiVersion: aiven.io/v1alpha1
kind: Clickhouse
metadata:
name: my-clickhouse-service
spec:
authSecretRef:
name: aiven-token
key: token

project: aiven-project-name
cloudName: google-europe-west1
plan: startup-16

---

apiVersion: aiven.io/v1alpha1
kind: ClickhouseDatabase
metadata:
name: my-clickhouse-db
spec:
authSecretRef:
name: aiven-token
key: token

project: aiven-project-name
serviceName: my-clickhouse-service

---

apiVersion: aiven.io/v1alpha1
kind: ClickhouseUser
metadata:
name: my-clickhouse-user
spec:
authSecretRef:
name: aiven-token
key: token

project: aiven-project-name
serviceName: my-clickhouse-service

---

apiVersion: aiven.io/v1alpha1
kind: ClickhouseRole
metadata:
name: my-clickhouse-role
spec:
authSecretRef:
name: aiven-token
key: token

project: aiven-project-name
serviceName: my-clickhouse-service
role: my-clickhouse-role
26 changes: 26 additions & 0 deletions changelog.html
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,15 @@
</label>
<ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>

<li class="md-nav__item">
<a href="#v0230-2024-07-12" class="md-nav__link">
<span class="md-ellipsis">
v0.23.0 - 2024-07-12
</span>
</a>

</li>

<li class="md-nav__item">
<a href="#v0220-2024-07-02" class="md-nav__link">
<span class="md-ellipsis">
Expand Down Expand Up @@ -1945,6 +1954,15 @@
</label>
<ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>

<li class="md-nav__item">
<a href="#v0230-2024-07-12" class="md-nav__link">
<span class="md-ellipsis">
v0.23.0 - 2024-07-12
</span>
</a>

</li>

<li class="md-nav__item">
<a href="#v0220-2024-07-02" class="md-nav__link">
<span class="md-ellipsis">
Expand Down Expand Up @@ -2215,6 +2233,14 @@


<h1 id="changelog">Changelog<a class="headerlink" href="#changelog" title="Permanent link">&para;</a></h1>
<h2 id="v0230-2024-07-12">v0.23.0 - 2024-07-12<a class="headerlink" href="#v0230-2024-07-12" title="Permanent link">&para;</a></h2>
<ul>
<li>Ignore <code>http.StatusBadRequest</code> on <code>ClickhouseGrant</code> deletion</li>
<li>Retry conflict error when k8s object saved to the storage</li>
<li>Fix <code>ClickhouseGrant</code> invalid remote and local privileges comparison</li>
<li>Fix <code>ClickhouseGrant</code>: doesn't escape role name to grant</li>
<li>Fix <code>ClickhouseUser</code>: password was reset due to an incorrect processing cycle</li>
</ul>
<h2 id="v0220-2024-07-02">v0.22.0 - 2024-07-02<a class="headerlink" href="#v0220-2024-07-02" title="Permanent link">&para;</a></h2>
<ul>
<li>Ignore <code>ClickhouseRole</code> deletion error (missing database)</li>
Expand Down
2 changes: 1 addition & 1 deletion search/search_index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion search/search_index.json

Large diffs are not rendered by default.

Loading

0 comments on commit 4aca6d4

Please sign in to comment.