Skip to content

Commit 621f024

Browse files
authored
docs(update): add new service account create and reset credentials cmds (#1787)
1 parent 43a4ab3 commit 621f024

4 files changed

+16
-0
lines changed

docs/commands/rhoas_service-account_create.md

+4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/commands/rhoas_service-account_reset-credentials.md

+4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/core/localize/locales/en/cmd/serviceaccount_create.en.toml

+4
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ You must specify an output format into which the credentials will be stored.
1414
- env (default): Store credentials in an env file as environment variables
1515
- json: Store credentials in a JSON file
1616
- properties: Store credentials in a properties file, which is typically used in Java-related technologies
17+
- java-kafka-properties: Store credentials in a properties file suitable for the Java Kafka client
1718
- secret: Store credentials in a Kubernetes secret file
1819
'''
1920

@@ -31,6 +32,9 @@ $ rhoas service-account create --overwrite
3132
3233
# Create a service account and save credentials to a custom file location
3334
$ rhoas service-account create --output-file=./service-acct-credentials.json
35+
36+
# Create a service account and save the credentials in a file suitable for the Java Kafka client
37+
$ rhoas service-account create --file-format java-kafka-properties --short-description java-properties
3438
'''
3539

3640
[serviceAccount.create.flag.shortDescription.description]

pkg/core/localize/locales/en/cmd/serviceaccount_reset_credentials.en.toml

+4
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ You must specify an output format into which the credentials will be stored.
1414
- env (default): Store credentials in an env file as environment variables
1515
- json: Store credentials in a JSON file
1616
- properties: Store credentials in a properties file, which is typically used in Java-related technologies
17+
- java-kafka-properties: Store credentials in a properties file suitable for the Java Kafka client
1718
- secret: Store credentials in a Kubernetes secret file
1819
'''
1920

@@ -25,6 +26,9 @@ $ rhoas service-account reset-credentials
2526
2627
# Reset credentials for the service account specified and save the credentials to a JSON file
2728
$ rhoas service-account reset-credentials --id 173c1ad9-932d-4007-ae0f-4da74f4d2ccd -o json
29+
30+
# Reset credentials for the service account specified and save the credentials to a file suitable for the Java Kafka client
31+
$ rhoas service-account reset-credentials --id 173c1ad9-932d-4007-ae0f-4da74f4d2ccd -o java-kafka-properties
2832
'''
2933

3034
[serviceAccount.resetCredentials.flag.id.description]

0 commit comments

Comments
 (0)