From 6445461699bcbbbff95733bb684a94855075fcae Mon Sep 17 00:00:00 2001 From: omcal Date: Mon, 7 Aug 2023 23:11:03 +0300 Subject: [PATCH 1/2] CLC example added --- .../hazelcast-platform-operator-tls.adoc | 36 ++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) diff --git a/docs/modules/ROOT/pages/hazelcast-platform-operator-tls.adoc b/docs/modules/ROOT/pages/hazelcast-platform-operator-tls.adoc index 75b9f06..1275fef 100644 --- a/docs/modules/ROOT/pages/hazelcast-platform-operator-tls.adoc +++ b/docs/modules/ROOT/pages/hazelcast-platform-operator-tls.adoc @@ -98,12 +98,24 @@ git clone https://github.com/hazelcast-guides/hazelcast-platform-operator-tls.gi cd hazelcast-platform-operator-tls ---- + -The sample code for this tutorial is in the link:{github-directory}/tree/master/docs/modules/ROOT/examples[`docs/modules/ROOT/examples/`] directory. +The sample code(excluding CLC) for this tutorial is in the link:{github-directory}/tree/master/docs/modules/ROOT/examples[`docs/modules/ROOT/examples/`] directory. . Configure the Hazelcast client with the TLS certificate: + [tabs] ==== +CLC:: ++ +-- +NOTE: Before using CLC, it should be installed in your system. Check the installation instructions for CLC: xref:clc:ROOT:install-clc.adoc[]. + +Run the following command for adding the cluster config to the CLC. + +[source, shell] +---- +clc config add hz cluster.name=dev cluster.address= ssl.enabled=true ssl.server=example ssl.ca-path= +---- + Java:: + -- @@ -142,6 +154,28 @@ include::ROOT:example$/python/example.py[] + [tabs] ==== + +CLC:: ++ +-- +Run the following command to fill a map. + +[source, shell] + +---- +for i in {1..10}; +do + clc -c hz map set --name map key-$i value-$i; +done +---- +Run the following command to check the map size. + +[source, shell] +---- +clc -c hz map size --name map + +---- + Java:: + -- From 968fde9bca0402017c2f9c9fab6798c04922708b Mon Sep 17 00:00:00 2001 From: omcal Date: Thu, 10 Aug 2023 15:25:27 +0300 Subject: [PATCH 2/2] put option has deleted --- .../pages/hazelcast-platform-operator-tls.adoc | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/docs/modules/ROOT/pages/hazelcast-platform-operator-tls.adoc b/docs/modules/ROOT/pages/hazelcast-platform-operator-tls.adoc index 1275fef..76eec5b 100644 --- a/docs/modules/ROOT/pages/hazelcast-platform-operator-tls.adoc +++ b/docs/modules/ROOT/pages/hazelcast-platform-operator-tls.adoc @@ -158,21 +158,9 @@ include::ROOT:example$/python/example.py[] CLC:: + -- -Run the following command to fill a map. - -[source, shell] - ----- -for i in {1..10}; -do - clc -c hz map set --name map key-$i value-$i; -done ----- -Run the following command to check the map size. - [source, shell] ---- -clc -c hz map size --name map +clc -c hz map size ----