From 9378880c421a3238ea8c987e5f292dd9cf44feaf Mon Sep 17 00:00:00 2001 From: Blake Covarrubias Date: Wed, 11 May 2022 15:37:02 -0700 Subject: [PATCH] docs: Remove unnecessary use of CodeBlockConfig (#12974) Remove empty CodeBlockConfig elements. These elements are not providing any benefit for the enclosed code blocks. This PR removes the elements so so that the source is easier to read. --- .../docs/agent/config/config-files.mdx | 1 - .../consul-api-gateway-install.mdx | 12 --- .../config-entries/exported-services.mdx | 18 +---- .../connect/config-entries/proxy-defaults.mdx | 48 ------------ .../registration/service-registration.mdx | 34 +-------- .../docs/security/acl/acl-policies.mdx | 43 +---------- .../content/docs/security/acl/acl-rules.mdx | 75 ------------------- .../content/docs/security/acl/acl-tokens.mdx | 7 -- 8 files changed, 9 insertions(+), 229 deletions(-) diff --git a/website/content/docs/agent/config/config-files.mdx b/website/content/docs/agent/config/config-files.mdx index ff3082f34f..caf7bbc71e 100644 --- a/website/content/docs/agent/config/config-files.mdx +++ b/website/content/docs/agent/config/config-files.mdx @@ -501,7 +501,6 @@ Valid time units are 'ns', 'us' (or 'µs'), 'ms', 's', 'm', 'h'." - `response_headers` This object allows adding headers to the HTTP API and UI responses. For example, the following config can be used to enable [CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing) on the HTTP API endpoints: - ```hcl diff --git a/website/content/docs/api-gateway/consul-api-gateway-install.mdx b/website/content/docs/api-gateway/consul-api-gateway-install.mdx index 43e9cb3113..087c0e70ea 100644 --- a/website/content/docs/api-gateway/consul-api-gateway-install.mdx +++ b/website/content/docs/api-gateway/consul-api-gateway-install.mdx @@ -19,14 +19,10 @@ Ensure that the environment you are deploying Consul API Gateway in meets the re 1. Issue the following command to install the CRDs: - - ```shell-session $ kubectl apply --kustomize="github.com/hashicorp/consul-api-gateway/config/crd?ref=vVERSION" ``` - - 1. Create a `values.yaml` file for your Consul API Gateway deployment. Copy the content below into the `values.yaml` file. The `values.yaml` will be used by the Consul Helm chart. Available versions of the [Consul](https://hub.docker.com/r/hashicorp/consul/tags) and [Consul API Gateway](https://hub.docker.com/r/hashicorp/consul-api-gateway/tags) Docker images can be found on DockerHub, with additional context on version compatibility published in [GitHub releases](https://github.com/hashicorp/consul-api-gateway/releases). See [Helm Chart Configuration - apiGateway](https://www.consul.io/docs/k8s/helm#apigateway) for more available options on how to configure your Consul API Gateway deployment via the Helm chart. @@ -47,14 +43,10 @@ Ensure that the environment you are deploying Consul API Gateway in meets the re 1. Install Consul API Gateway using the standard Consul Helm chart and specify the custom values file. Available versions of the [Consul Helm chart](https://github.com/hashicorp/consul-k8s/releases) can be found in GitHub releases. - - ```shell-session $ helm install consul hashicorp/consul --version 0.43.0 --values values.yaml --create-namespace --namespace consul ``` - - ## Usage 1. Verify that the [requirements](#requirements) have been met. @@ -73,14 +65,10 @@ Ensure that the environment you are deploying Consul API Gateway in meets the re 1. Issue the `kubectl apply` command to implement the configurations, e.g.: - - ```shell-session $ kubectl apply -f gateway.yaml routes.yaml ``` - -