From 16937d7f5db851237bd97f42fb0f1f550a079c8e Mon Sep 17 00:00:00 2001 From: Blake Covarrubias Date: Fri, 9 Oct 2020 12:26:14 -0700 Subject: [PATCH] doc: Update acl-method command example (#8845) * Update acl-method command example * add tailing backtick --- command/acl/authmethod/authmethod.go | 4 ++-- command/acl/authmethod/create/authmethod_create.go | 2 +- command/acl/authmethod/update/authmethod_update.go | 2 +- website/pages/commands/acl/auth-method/index.mdx | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/command/acl/authmethod/authmethod.go b/command/acl/authmethod/authmethod.go index 321116394e..0b3213be14 100644 --- a/command/acl/authmethod/authmethod.go +++ b/command/acl/authmethod/authmethod.go @@ -37,7 +37,7 @@ Usage: consul acl auth-method [options] [args] -name "my-k8s" \ -description "This is an example kube auth method" \ -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" List all auth methods: @@ -49,7 +49,7 @@ Usage: consul acl auth-method [options] [args] $ consul acl auth-method update -name "my-k8s" \ -description "new description" \ -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" Read an auth method: diff --git a/command/acl/authmethod/create/authmethod_create.go b/command/acl/authmethod/create/authmethod_create.go index b648b64980..4d4882c06e 100644 --- a/command/acl/authmethod/create/authmethod_create.go +++ b/command/acl/authmethod/create/authmethod_create.go @@ -269,6 +269,6 @@ Usage: consul acl auth-method create -name NAME -type TYPE [options] -name "my-k8s" \ -description "This is an example kube method" \ -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" ` diff --git a/command/acl/authmethod/update/authmethod_update.go b/command/acl/authmethod/update/authmethod_update.go index 5b6f98dbf3..3125ad7b74 100644 --- a/command/acl/authmethod/update/authmethod_update.go +++ b/command/acl/authmethod/update/authmethod_update.go @@ -333,6 +333,6 @@ Usage: consul acl auth-method update -name NAME [options] $ consul acl auth-method update -name "my-k8s" \ -description "new description" \ -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" ` diff --git a/website/pages/commands/acl/auth-method/index.mdx b/website/pages/commands/acl/auth-method/index.mdx index bd1b8aa323..d2ca568598 100644 --- a/website/pages/commands/acl/auth-method/index.mdx +++ b/website/pages/commands/acl/auth-method/index.mdx @@ -50,7 +50,7 @@ $ consul acl auth-method create -type "kubernetes" \ -name "my-k8s" \ -description "This is an example kube auth method" \ -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" ``` @@ -66,7 +66,7 @@ Update all editable fields of the auth method: $ consul acl auth-method update -name "my-k8s" \ -description "new description" \ -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" ```