doc: Update acl-method command example (#8845)

* Update acl-method command example

* add tailing backtick
This commit is contained in:
Blake Covarrubias 2020-10-09 12:26:14 -07:00 committed by hashicorp-ci
parent ceba2c6422
commit 16937d7f5d
4 changed files with 6 additions and 6 deletions

View File

@ -37,7 +37,7 @@ Usage: consul acl auth-method <subcommand> [options] [args]
-name "my-k8s" \ -name "my-k8s" \
-description "This is an example kube auth method" \ -description "This is an example kube auth method" \
-kubernetes-host "https://apiserver.example.com:8443" \ -kubernetes-host "https://apiserver.example.com:8443" \
-kubernetes-ca-file /path/to/kube.ca.crt \ -kubernetes-ca-cert @/path/to/kube.ca.crt \
-kubernetes-service-account-jwt "JWT_CONTENTS" -kubernetes-service-account-jwt "JWT_CONTENTS"
List all auth methods: List all auth methods:
@ -49,7 +49,7 @@ Usage: consul acl auth-method <subcommand> [options] [args]
$ consul acl auth-method update -name "my-k8s" \ $ consul acl auth-method update -name "my-k8s" \
-description "new description" \ -description "new description" \
-kubernetes-host "https://new-apiserver.example.com:8443" \ -kubernetes-host "https://new-apiserver.example.com:8443" \
-kubernetes-ca-file /path/to/new-kube.ca.crt \ -kubernetes-ca-cert @/path/to/new-kube.ca.crt \
-kubernetes-service-account-jwt "NEW_JWT_CONTENTS" -kubernetes-service-account-jwt "NEW_JWT_CONTENTS"
Read an auth method: Read an auth method:

View File

@ -269,6 +269,6 @@ Usage: consul acl auth-method create -name NAME -type TYPE [options]
-name "my-k8s" \ -name "my-k8s" \
-description "This is an example kube method" \ -description "This is an example kube method" \
-kubernetes-host "https://apiserver.example.com:8443" \ -kubernetes-host "https://apiserver.example.com:8443" \
-kubernetes-ca-file /path/to/kube.ca.crt \ -kubernetes-ca-cert @/path/to/kube.ca.crt \
-kubernetes-service-account-jwt "JWT_CONTENTS" -kubernetes-service-account-jwt "JWT_CONTENTS"
` `

View File

@ -333,6 +333,6 @@ Usage: consul acl auth-method update -name NAME [options]
$ consul acl auth-method update -name "my-k8s" \ $ consul acl auth-method update -name "my-k8s" \
-description "new description" \ -description "new description" \
-kubernetes-host "https://new-apiserver.example.com:8443" \ -kubernetes-host "https://new-apiserver.example.com:8443" \
-kubernetes-ca-file /path/to/new-kube.ca.crt \ -kubernetes-ca-cert @/path/to/new-kube.ca.crt \
-kubernetes-service-account-jwt "NEW_JWT_CONTENTS" -kubernetes-service-account-jwt "NEW_JWT_CONTENTS"
` `

View File

@ -50,7 +50,7 @@ $ consul acl auth-method create -type "kubernetes" \
-name "my-k8s" \ -name "my-k8s" \
-description "This is an example kube auth method" \ -description "This is an example kube auth method" \
-kubernetes-host "https://apiserver.example.com:8443" \ -kubernetes-host "https://apiserver.example.com:8443" \
-kubernetes-ca-file /path/to/kube.ca.crt \ -kubernetes-ca-cert @/path/to/kube.ca.crt \
-kubernetes-service-account-jwt "JWT_CONTENTS" -kubernetes-service-account-jwt "JWT_CONTENTS"
``` ```
@ -66,7 +66,7 @@ Update all editable fields of the auth method:
$ consul acl auth-method update -name "my-k8s" \ $ consul acl auth-method update -name "my-k8s" \
-description "new description" \ -description "new description" \
-kubernetes-host "https://new-apiserver.example.com:8443" \ -kubernetes-host "https://new-apiserver.example.com:8443" \
-kubernetes-ca-file /path/to/new-kube.ca.crt \ -kubernetes-ca-cert @/path/to/new-kube.ca.crt \
-kubernetes-service-account-jwt "NEW_JWT_CONTENTS" -kubernetes-service-account-jwt "NEW_JWT_CONTENTS"
``` ```