Skip to content

Commit

Permalink
fix code blocks by fixing spaces (#3622)
Browse files Browse the repository at this point in the history
  • Loading branch information
waleedhammam committed Apr 13, 2023
1 parent 64c73b6 commit 22b707b
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 40 deletions.
47 changes: 27 additions & 20 deletions website/docs/secrets/setup-sops.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@ title: Setup SOPS
hide_title: true
---

import TierLabel from "./../_components/TierLabel";
import CodeBlock from "@theme/CodeBlock";

import SopsBootstrapJob from "!!raw-loader!./assets/sops-bootstrap-job.yaml";
import TemplateParams from "!!raw-loader!./assets/template-params.yaml";
import TemplateAnnotations from "!!raw-loader!./assets/template-annotations.yaml";

import TierLabel from "./../_components/TierLabel";

<h1>
{frontMatter.title} <TierLabel tiers="Enterprise" />
</h1>
Expand Down Expand Up @@ -245,12 +246,14 @@ As well as an option to push the public key to the git repository via a PR (to b
The following example is using GPG encryption to install SOPS and generate keys when bootstrapping leaf clusters. Create the following `ClusterBootstrapConfig` CR and push it to your fleet repo.

<details><summary>Expand to view </summary>
<CodeBlock
title="clusters/management/capi/boostrap/sops-bootstrap-job.yaml"
className="language-yaml"
>
{SopsBootstrapJob}
</CodeBlock>

<CodeBlock
title="clusters/management/capi/boostrap/sops-bootstrap-job.yaml"
className="language-yaml"
>
{SopsBootstrapJob}
</CodeBlock>

</details>

#### Cluster template updates
Expand All @@ -267,23 +270,27 @@ templates.weave.works/sops-enabled: "true"
The template should have the following parameters that are needed for the Kustomization

<details><summary>Expand to view </summary>
<CodeBlock
title="clusters/management/capi/templates/template.yaml"
className="language-yaml"
>
{TemplateParams}
</CodeBlock>

<CodeBlock
title="clusters/management/capi/templates/template.yaml"
className="language-yaml"
>
{TemplateParams}
</CodeBlock>

</details>

The template should have the following annotations under `GitOpsCluster` to be used in the bootstrap job

<details><summary>Expand to view </summary>
<CodeBlock
title="clusters/management/capi/templates/template.yaml"
className="language-yaml"
>
{TemplateAnnotations}
</CodeBlock>

<CodeBlock
title="clusters/management/capi/templates/template.yaml"
className="language-yaml"
>
{TemplateAnnotations}
</CodeBlock>

</details>

### Installation Steps
Expand Down
47 changes: 27 additions & 20 deletions website/versioned_docs/version-0.21.2/secrets/setup-sops.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@ title: Setup SOPS
hide_title: true
---

import TierLabel from "./../_components/TierLabel";
import CodeBlock from "@theme/CodeBlock";

import SopsBootstrapJob from "!!raw-loader!./assets/sops-bootstrap-job.yaml";
import TemplateParams from "!!raw-loader!./assets/template-params.yaml";
import TemplateAnnotations from "!!raw-loader!./assets/template-annotations.yaml";

import TierLabel from "./../_components/TierLabel";

<h1>
{frontMatter.title} <TierLabel tiers="Enterprise" />
</h1>
Expand Down Expand Up @@ -245,12 +246,14 @@ As well as an option to push the public key to the git repository via a PR (to b
The following example is using GPG encryption to install SOPS and generate keys when bootstrapping leaf clusters. Create the following `ClusterBootstrapConfig` CR and push it to your fleet repo.

<details><summary>Expand to view </summary>
<CodeBlock
title="clusters/management/capi/boostrap/sops-bootstrap-job.yaml"
className="language-yaml"
>
{SopsBootstrapJob}
</CodeBlock>

<CodeBlock
title="clusters/management/capi/boostrap/sops-bootstrap-job.yaml"
className="language-yaml"
>
{SopsBootstrapJob}
</CodeBlock>

</details>

#### Cluster template updates
Expand All @@ -267,23 +270,27 @@ templates.weave.works/sops-enabled: "true"
The template should have the following parameters that are needed for the Kustomization

<details><summary>Expand to view </summary>
<CodeBlock
title="clusters/management/capi/templates/template.yaml"
className="language-yaml"
>
{TemplateParams}
</CodeBlock>

<CodeBlock
title="clusters/management/capi/templates/template.yaml"
className="language-yaml"
>
{TemplateParams}
</CodeBlock>

</details>

The template should have the following annotations under `GitOpsCluster` to be used in the bootstrap job

<details><summary>Expand to view </summary>
<CodeBlock
title="clusters/management/capi/templates/template.yaml"
className="language-yaml"
>
{TemplateAnnotations}
</CodeBlock>

<CodeBlock
title="clusters/management/capi/templates/template.yaml"
className="language-yaml"
>
{TemplateAnnotations}
</CodeBlock>

</details>

### Installation Steps
Expand Down

0 comments on commit 22b707b

Please sign in to comment.