Skip to content

Commit f2d675e

Browse files
committed
Merge branch 'main' into DOC-4673
2 parents c2a10c3 + 0012b47 commit f2d675e

File tree

70 files changed

+2135
-359
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+2135
-359
lines changed

.github/workflows/k8s_apis_sync.yaml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,41 @@ jobs:
8080
sed -E -i 's/\[index\]/\[\]/g' artifacts/redis_enterprise_remote_cluster_api.md
8181
awk '/(#[^")]+)index/ {gsub(/index/,"")}; {print}' artifacts/redis_enterprise_remote_cluster_api.md > _tmp.md && mv _tmp.md artifacts/redis_enterprise_remote_cluster_api.md
8282
83+
- name: 'Generate YAML snippets'
84+
run: |-
85+
function formatYamlSnippet() {
86+
cat > "$2" << EOL
87+
\`\`\`yaml
88+
$(cat $1)
89+
\`\`\`
90+
EOL
91+
}
92+
93+
formatYamlSnippet admission-service.yaml content/embeds/admission-service.md
94+
formatYamlSnippet admission/webhook.yaml content/embeds/admission_webhook.md
95+
formatYamlSnippet examples/v1/rec.yaml content/embeds/rec.md
96+
formatYamlSnippet examples/v1alpha1/reaadb.yaml content/embeds/reaadb.md
97+
formatYamlSnippet examples/v1alpha1/redb.yaml content/embeds/redb.md
98+
formatYamlSnippet examples/v1alpha1/rerc.yaml content/embeds/rerc.md
99+
formatYamlSnippet log_collector/log_collector_role_all_mode.yaml content/embeds/log_collector_role_all_mode.md
100+
formatYamlSnippet log_collector/log_collector_role_restricted_mode.yaml content/embeds/log_collector_role_restricted_mode.md
101+
formatYamlSnippet multi-namespace-redb/operator_cluster_role_binding.yaml content/embeds/multi-ns_operator_cluster_role_binding.md
102+
formatYamlSnippet multi-namespace-redb/operator_cluster_role.yaml content/embeds/multi-ns_operator_cluster_role.md
103+
formatYamlSnippet multi-namespace-redb/role_binding.yaml content/embeds/multi-ns_role_binding.md
104+
formatYamlSnippet multi-namespace-redb/role.yaml content/embeds/multi-ns_role.md
105+
formatYamlSnippet openshift/admission-service.yaml content/embeds/openshift_admission-service.md
106+
formatYamlSnippet openshift/rec_rhel.yaml content/embeds/openshift_rec.md
107+
formatYamlSnippet openshift/role_binding.yaml content/embeds/openshift_role_binding.md
108+
formatYamlSnippet openshift/role.yaml content/embeds/openshift_role.md
109+
formatYamlSnippet openshift/scc.yaml content/embeds/openshift_scc.md
110+
formatYamlSnippet openshift/service_account.yaml content/embeds/openshift_service_account.md
111+
formatYamlSnippet rack_awareness/rack_aware_cluster_role_binding.yaml content/embeds/rack_aware_cluster_role_binding.md
112+
formatYamlSnippet rack_awareness/rack_aware_cluster_role.yaml content/embeds/rack_aware_cluster_role.md
113+
formatYamlSnippet rack_awareness/rack_aware_rec.yaml content/embeds/rack_aware_rec.md
114+
formatYamlSnippet role_binding.yaml content/embeds/role_binding.md
115+
formatYamlSnippet role.yaml content/embeds/role.md
116+
formatYamlSnippet service_account.yaml content/embeds/service_account.md
117+
83118
- name: 'Send pull request'
84119
env:
85120
GH_TOKEN: ${{ steps.generate-token.outputs.token }}
@@ -101,6 +136,8 @@ jobs:
101136
git apply content/operate/kubernetes/reference/kubernetes-api-reference-frontmatter.patch
102137
103138
git add content/operate/kubernetes/reference/
139+
git add content/embeds/
140+
104141
git commit -m "k8s api docs ${RELEASE}"
105142
git push origin "${BRANCH}"
106143

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
/data/repos.json
77
/data/tool_types.json
88
/data/versions.json
9+
/data/components_local/
910
/examples
1011
build/components/__pycache__/
1112
venv/**
@@ -14,3 +15,4 @@ package-lock.json
1415
.hugo_build.lock
1516
.vscode/
1617
.DS_Store
18+
.idea

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ HUGO_BUILD=--gc
44

55
all: clean deps components hugo
66
serve: clean deps components serve_hugo
7+
localserve: clean deps components_local serve_hugo
78

89
deps:
910
@npm install
@@ -13,6 +14,9 @@ deps:
1314
components:
1415
@python3 build/make.py
1516

17+
components_local:
18+
@python3 build/make.py --stack ./data/components_local/index.json
19+
1620
hugo:
1721
@hugo $(HUGO_DEBUG) $(HUGO_BUILD)
1822

content/commands/auth/index.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@ The AUTH command authenticates the current connection in two cases:
5151
Redis versions prior of Redis 6 were only able to understand the one argument
5252
version of the command:
5353

54-
AUTH <password>
54+
{{< clients-example cmds_cnxmgmt auth1 >}}
55+
AUTH "temp-pass"
56+
{{< /clients-example >}}
5557

5658
This form just authenticates against the password set with `requirepass`.
5759
In this configuration Redis will deny any command executed by the just
@@ -62,7 +64,9 @@ Otherwise, an error is returned and the clients needs to try a new password.
6264

6365
When Redis ACLs are used, the command should be given in an extended way:
6466

65-
AUTH <username> <password>
67+
{{< clients-example cmds_cnxmgmt auth2 >}}
68+
AUTH "test-user" "strong_password"
69+
{{< /clients-example >}}
6670

6771
In order to authenticate the current connection with one of the connections
6872
defined in the ACL list (see [`ACL SETUSER`]({{< relref "/commands/acl-setuser" >}})) and the official [ACL guide]({{< relref "/operate/oss_and_stack/management/security/acl" >}}) for more information.

content/commands/cluster-forget/index.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ complexity: O(1)
2626
description: Removes a node from the nodes table.
2727
group: cluster
2828
hidden: false
29+
history:
30+
- - 7.2.0
31+
- Forgotten nodes are automatically propagated across the cluster via gossip.
2932
linkTitle: CLUSTER FORGET
3033
since: 3.0.0
3134
summary: Removes a node from the nodes table.
@@ -49,6 +52,10 @@ table of the node receiving the command, it also implements a ban-list, not
4952
allowing the same node to be added again as a side effect of processing the
5053
*gossip section* of the heartbeat packets received from other nodes.
5154

55+
Starting with Redis 7.2.0, the ban-list is included in cluster gossip ping/pong messages.
56+
This means that `CLUSTER FORGET` doesn't need to be sent to all nodes in a cluster.
57+
You can run the command on one or more nodes, after which it will be propagated to the rest of the nodes in most cases.
58+
5259
## Details on why the ban-list is needed
5360

5461
In the following example we'll show why the command must not just remove
@@ -86,3 +93,8 @@ The command does not succeed and returns an error in the following cases:
8693
1. The specified node ID is not found in the nodes table.
8794
2. The node receiving the command is a replica, and the specified node ID identifies its current master.
8895
3. The node ID identifies the same node we are sending the command to.
96+
97+
## Behavior change history
98+
99+
* `>= 7.2.0`: Automatically propagate node deletion to other nodes in a cluster, allowing nodes to be deleted with a single call
100+
in most cases.

content/commands/flushall/index.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@ It is possible to use one of the following modifiers to dictate the flushing mod
6262
* `ASYNC`: flushes the databases asynchronously
6363
* `SYNC`: flushes the databases synchronously
6464

65+
{{< clients-example cmds_servermgmt flushall >}}
66+
FLUSHALL SYNC
67+
{{< /clients-example >}}
68+
6569
## Notes
6670

6771
* An asynchronous `FLUSHALL` command only deletes keys that were present at the time the command was invoked. Keys created during an asynchronous flush will be unaffected.

content/commands/hgetall/index.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,20 @@ of the reply is twice the size of the hash.
5353

5454
## Examples
5555

56+
{{< clients-example cmds_hash hgetall >}}
57+
redis> HSET myhash field1 "Hello"
58+
(integer) 1
59+
redis> HSET myhash field2 "World"
60+
(integer) 1
61+
redis> HGETALL myhash
62+
1) "field1"
63+
2) "Hello"
64+
3) "field2"
65+
4) "World"
66+
{{< /clients-example >}}
67+
68+
Give these commands a try in the interactive console:
69+
5670
{{% redis-cli %}}
5771
HSET myhash field1 "Hello"
5872
HSET myhash field2 "World"

content/commands/hvals/index.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,18 @@ Returns all values in the hash stored at `key`.
5151

5252
## Examples
5353

54+
{{< clients-example cmds_hash hvals >}}
55+
redis> HSET myhash field1 "Hello"
56+
(integer) 1
57+
redis> HSET myhash field2 "World"
58+
(integer) 1
59+
redis> HVALS myhash
60+
1) "Hello"
61+
2) "World"
62+
{{< /clients-example >}}
63+
64+
Give these commands a try in the interactive console:
65+
5466
{{% redis-cli %}}
5567
HSET myhash field1 "Hello"
5668
HSET myhash field2 "World"

content/commands/incrbyfloat/index.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,11 @@ regardless of the actual internal precision of the computation.
8181
## Examples
8282

8383
{{% redis-cli %}}
84-
SET mykey "10.50"
85-
INCRBYFLOAT mykey "0.1"
86-
INCRBYFLOAT mykey "-5"
87-
SET mykey "5.0e3"
88-
INCRBYFLOAT mykey "2.0e2"
84+
SET mykey 10.50
85+
INCRBYFLOAT mykey 0.1
86+
INCRBYFLOAT mykey -5
87+
SET mykey 5.0e3
88+
INCRBYFLOAT mykey 2.0e2
8989
{{% /redis-cli %}}
9090

9191

content/commands/info/index.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,12 @@ It can also take the following values:
6868

6969
When no parameter is provided, the `default` option is assumed.
7070

71+
{{< clients-example cmds_servermgmt info >}}
72+
INFO
73+
{{< /clients-example >}}
74+
75+
Give these commands a try in the interactive console:
76+
7177
{{% redis-cli %}}
7278
INFO
7379
{{% /redis-cli %}}

0 commit comments

Comments
 (0)