Skip to content

Commit

Permalink
fix readme
Browse files Browse the repository at this point in the history
  • Loading branch information
leiicamundi committed Nov 22, 2024
1 parent 01e66fe commit 9edbb14
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 28 deletions.
29 changes: 15 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ It checks for the presence of services and ingresses that conform to the require

##### Usage:
```bash
Usage: ./checks/kube/connectivity.sh [-h] [-n NAMESPACE] [-d HELM_DEPLOYMENT_NAME]
Usage: ./checks/kube/connectivity.sh [-h] [-n NAMESPACE]
Options:
-h Display this help message
-n NAMESPACE Specify the namespace to use
Expand All @@ -136,17 +136,17 @@ This script retrieves an access token from an authorization server using client

##### Usage:
```bash
Usage: ./checks/zeebe/token.sh [-h] [-a AUTH_SERVER_URL] [-i CLIENT_ID] [-s CLIENT_SECRET] [-u TOKEN_AUDIENCE]
Usage: ./checks/zeebe/token.sh [-h] [-a ZEEBE_AUTHORIZATION_SERVER_URL] [-i ZEEBE_CLIENT_ID] [-s ZEEBE_CLIENT_SECRET] [-u ZEEBE_TOKEN_AUDIENCE]
[-k] [-r CACERT] [-j CLIENTCERT]
Options:
-h Display this help message
-a ZEEBE_AUTHORIZATION_SERVER_URL Specify the authorization server URL (e.g.: https://local.distro.ultrawombat.com/auth/realms/camunda-platform/protocol/openid-connect/t
oken)
-a ZEEBE_AUTHORIZATION_SERVER_URL Specify the authorization server URL (e.g., https://local.distro.ultrawombat.com/auth/realms/camunda-platform/protocol/openid-connect/token)
-i ZEEBE_CLIENT_ID Specify the client ID
-s ZEEBE_CLIENT_SECRET Specify the client secret
-u ZEEBE_TOKEN_AUDIENCE Specify the token audience
-k Skip TLS verification (insecure mode)
-r CACERT Specify the path to CA certificate file
-j CLIENTCERT Specify the path to client certificate file
-r CACERT Specify the path to the CA certificate file
-j CLIENTCERT Specify the path to the client certificate file
```

##### Example:
Expand All @@ -167,21 +167,22 @@ This script verifies connectivity to a Zeebe Gateway instance using HTTP/2 and g

##### Usage:
```bash
Usage: ./checks/zeebe/connectivity.sh [-h] [-H ZEEBE_HOST]
Usage: ./checks/zeebe/connectivity.sh [-h] [-H ZEEBE_HOST] [-p ZEEBE_VERSION] [-f PROTO_FILE] [-k] [-r CACERT] [-j CLIENTCERT]
[-a ZEEBE_AUTHORIZATION_SERVER_URL] [-i ZEEBE_CLIENT_ID] [-s ZEEBE_CLIENT_SECRET]
[-u ZEEBE_TOKEN_AUDIENCE] [-q API_PROTOCOL]
Options:
-h Display this help message
-H ZEEBE_HOST Specify the Zeebe host with the port (e.g., zeebe.c8.camunda.example.com:443)
-p ZEEBE_VERSION Specify the Zeebe version (default is latest version: 8.x.x)
-f PROTO_FILE Specify the path to gateway.proto file or leave empty to download it (default behavior is to download the protofile)
-p ZEEBE_VERSION Specify the Zeebe version (default is the latest version: 8.6.5)
-f PROTO_FILE Specify the path to the gateway.proto file or leave empty to download it (default behavior is to download the proto file)
-k Skip TLS verification (insecure mode)
-r CACERT Specify the path to CA certificate file
-j CLIENTCERT Specify the path to Client certificate file
-a ZEEBE_AUTHORIZATION_SERVER_URL Specify the authorization server URL (e.g.: https://local.distro.example.com/auth/realms/camunda-platform/protocol/openid-connect/t
oken)
-r CACERT Specify the path to the CA certificate file
-j CLIENTCERT Specify the path to the client certificate file
-a ZEEBE_AUTHORIZATION_SERVER_URL Specify the authorization server URL (e.g., https://local.distro.example.com/auth/realms/camunda-platform/protocol/openid-connect/token)
-i ZEEBE_CLIENT_ID Specify the client ID
-s ZEEBE_CLIENT_SECRET Specify the client secret
-u ZEEBE_TOKEN_AUDIENCE Specify the token audience
-q API_PROTOCOL Specify the API protocol (e.g. http or grpc - default is grpc)
-q API_PROTOCOL Specify the API protocol (e.g., http or grpc - default is grpc)
```

##### Example:
Expand Down
2 changes: 1 addition & 1 deletion checks/kube/connectivity.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ NAMESPACE="${NAMESPACE:-""}"
SKIP_CHECK_INGRESS_CLASS=0

usage() {
echo "Usage: $0 [-h] [-n NAMESPACE] [-d HELM_DEPLOYMENT_NAME]"
echo "Usage: $0 [-h] [-n NAMESPACE]"
echo "Options:"
echo " -h Display this help message"
echo " -n NAMESPACE Specify the namespace to use"
Expand Down
2 changes: 2 additions & 0 deletions checks/kube/deployment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ LVL_1_SCRIPT_NAME="$DIR_NAME/$SCRIPT_NAME"
NAMESPACE="${NAMESPACE:-""}"
HELM_DEPLOYMENT_NAME="${HELM_DEPLOYMENT_NAME:-"camunda"}"
SKIP_CHECK_HELM_DEPLOYMENT=0

DEFAULT_REQUIRED_CONTAINERS="connector,optimize,zeebe,zeebe-gateway"
REQUIRED_CONTAINERS=()
IFS=',' read -ra REQUIRED_CONTAINERS <<< "$DEFAULT_REQUIRED_CONTAINERS"

usage() {
echo "Usage: $0 [-h] [-n NAMESPACE] [-d HELM_DEPLOYMENT_NAME]"
Expand Down
17 changes: 9 additions & 8 deletions checks/zeebe/connectivity.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,22 @@ ZEEBE_VERSION="${ZEEBE_VERSION:-$ZEEBE_DEFAULT_VERSION}"

# Function to display script usage
usage() {
echo "Usage: $0 [-h] [-H ZEEBE_HOST]"
echo "Usage: $0 [-h] [-H ZEEBE_HOST] [-p ZEEBE_VERSION] [-f PROTO_FILE] [-k] [-r CACERT] [-j CLIENTCERT]"
echo " [-a ZEEBE_AUTHORIZATION_SERVER_URL] [-i ZEEBE_CLIENT_ID] [-s ZEEBE_CLIENT_SECRET]"
echo " [-u ZEEBE_TOKEN_AUDIENCE] [-q API_PROTOCOL]"
echo "Options:"
echo " -h Display this help message"
echo " -H ZEEBE_HOST Specify the Zeebe host with the port (e.g., zeebe.c8.camunda.example.com:443)"
echo " -p ZEEBE_VERSION Specify the Zeebe version (default is latest version: $ZEEBE_VERSION)"
echo " -f PROTO_FILE Specify the path to gateway.proto file or leave empty to download it (default behavior is to download the protofile)"
echo " -p ZEEBE_VERSION Specify the Zeebe version (default is the latest version: $ZEEBE_VERSION)"
echo " -f PROTO_FILE Specify the path to the gateway.proto file or leave empty to download it (default behavior is to download the proto file)"
echo " -k Skip TLS verification (insecure mode)"
echo " -r CACERT Specify the path to CA certificate file"
echo " -j CLIENTCERT Specify the path to Client certificate file"
echo " -a ZEEBE_AUTHORIZATION_SERVER_URL Specify the authorization server URL (e.g.: https://local.distro.example.com/auth/realms/camunda-platform/protocol/openid-connect/t
oken)"
echo " -r CACERT Specify the path to the CA certificate file"
echo " -j CLIENTCERT Specify the path to the client certificate file"
echo " -a ZEEBE_AUTHORIZATION_SERVER_URL Specify the authorization server URL (e.g., https://local.distro.example.com/auth/realms/camunda-platform/protocol/openid-connect/token)"
echo " -i ZEEBE_CLIENT_ID Specify the client ID"
echo " -s ZEEBE_CLIENT_SECRET Specify the client secret"
echo " -u ZEEBE_TOKEN_AUDIENCE Specify the token audience"
echo " -q API_PROTOCOL Specify the API protocol (e.g. http or grpc - default is grpc)"
echo " -q API_PROTOCOL Specify the API protocol (e.g., http or grpc - default is grpc)"
exit 1
}

Expand Down
10 changes: 5 additions & 5 deletions checks/zeebe/token.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,17 @@ EXTRA_FLAGS_CURL=""

# Function to display script usage
usage() {
echo "Usage: $0 [-h] [-a AUTH_SERVER_URL] [-i CLIENT_ID] [-s CLIENT_SECRET] [-u TOKEN_AUDIENCE]"
echo "Usage: $0 [-h] [-a ZEEBE_AUTHORIZATION_SERVER_URL] [-i ZEEBE_CLIENT_ID] [-s ZEEBE_CLIENT_SECRET] [-u ZEEBE_TOKEN_AUDIENCE]"
echo " [-k] [-r CACERT] [-j CLIENTCERT]"
echo "Options:"
echo " -h Display this help message"
echo " -a ZEEBE_AUTHORIZATION_SERVER_URL Specify the authorization server URL (e.g.: https://local.distro.ultrawombat.com/auth/realms/camunda-platform/protocol/openid-connect/t
oken)"
echo " -a ZEEBE_AUTHORIZATION_SERVER_URL Specify the authorization server URL (e.g., https://local.distro.ultrawombat.com/auth/realms/camunda-platform/protocol/openid-connect/token)"
echo " -i ZEEBE_CLIENT_ID Specify the client ID"
echo " -s ZEEBE_CLIENT_SECRET Specify the client secret"
echo " -u ZEEBE_TOKEN_AUDIENCE Specify the token audience"
echo " -k Skip TLS verification (insecure mode)"
echo " -r CACERT Specify the path to CA certificate file"
echo " -j CLIENTCERT Specify the path to client certificate file"
echo " -r CACERT Specify the path to the CA certificate file"
echo " -j CLIENTCERT Specify the path to the client certificate file"
exit 1
}

Expand Down

0 comments on commit 9edbb14

Please sign in to comment.