Skip to content

Commit 837e1c6

Browse files
authored
Merge pull request #28464 from sftim/20210617_update_docs_for_primary_branch_rename_psp
Update docs for primary branch rename: PodSecurityPolicy
2 parents 67ce826 + b3aef35 commit 837e1c6

File tree

2 files changed

+17
-3
lines changed

2 files changed

+17
-3
lines changed

content/en/docs/concepts/security/pod-security-standards.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -283,9 +283,9 @@ of individual policies are not defined here.
283283

284284
[**PodSecurityPolicy**](/docs/concepts/policy/pod-security-policy/)
285285

286-
- [Privileged](https://raw.githubusercontent.com/kubernetes/website/master/content/en/examples/policy/privileged-psp.yaml)
287-
- [Baseline](https://raw.githubusercontent.com/kubernetes/website/master/content/en/examples/policy/baseline-psp.yaml)
288-
- [Restricted](https://raw.githubusercontent.com/kubernetes/website/master/content/en/examples/policy/restricted-psp.yaml)
286+
- {{< example file="policy/privileged-psp.yaml" >}}Privileged{{< /example >}}
287+
- {{< example file="policy/baseline-psp.yaml" >}}Baseline{{< /example >}}
288+
- {{< example file="policy/restricted-psp.yaml" >}}Restricted{{< /example >}}
289289

290290
## FAQ
291291

layouts/shortcodes/example.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{{ $file := .Get "file" }}
2+
{{ $codelang := .Get "language" | default (path.Ext $file | strings.TrimPrefix ".") }}
3+
{{ $fileDir := path.Split $file }}
4+
{{ $bundlePath := path.Join .Page.File.Dir $fileDir.Dir }}
5+
{{ $filename := printf "/content/%s/examples/%s" .Page.Lang $file | safeURL }}
6+
{{ $ghlink := printf "https://%s/%s%s" site.Params.githubwebsiteraw (default "main" (site.Params.github_branch)) $filename | safeURL }}
7+
8+
<a href="{{ $ghlink }}" download="{{ $file }}">
9+
{{- if gt (len .Inner) 0 -}}
10+
{{- .Inner -}}
11+
{{- else -}}
12+
{{- $file -}}
13+
{{- end -}}
14+
</a>

0 commit comments

Comments
 (0)