From c80b0481110000416081816821cc6fc4ef9ecaa3 Mon Sep 17 00:00:00 2001 From: Ryan Ooi Date: Wed, 7 Oct 2020 06:44:24 +0800 Subject: [PATCH] Update acl-method command example --- command/acl/authmethod/authmethod.go | 4 ++-- command/acl/authmethod/create/authmethod_create.go | 2 +- command/acl/authmethod/update/authmethod_update.go | 3 +-- website/pages/commands/acl/auth-method/index.mdx | 4 ++-- 4 files changed, 6 insertions(+), 7 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..9eb1a45d6c 100644 --- a/command/acl/authmethod/update/authmethod_update.go +++ b/command/acl/authmethod/update/authmethod_update.go @@ -333,6 +333,5 @@ 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" ```