Merge pull request #28464 from sftim/20210617_update_docs_for_primary_branch_rename_psp
Update docs for primary branch rename: PodSecurityPolicypull/28496/head
commit
837e1c672e
|
@ -283,9 +283,9 @@ of individual policies are not defined here.
|
|||
|
||||
[**PodSecurityPolicy**](/docs/concepts/policy/pod-security-policy/)
|
||||
|
||||
- [Privileged](https://raw.githubusercontent.com/kubernetes/website/master/content/en/examples/policy/privileged-psp.yaml)
|
||||
- [Baseline](https://raw.githubusercontent.com/kubernetes/website/master/content/en/examples/policy/baseline-psp.yaml)
|
||||
- [Restricted](https://raw.githubusercontent.com/kubernetes/website/master/content/en/examples/policy/restricted-psp.yaml)
|
||||
- {{< example file="policy/privileged-psp.yaml" >}}Privileged{{< /example >}}
|
||||
- {{< example file="policy/baseline-psp.yaml" >}}Baseline{{< /example >}}
|
||||
- {{< example file="policy/restricted-psp.yaml" >}}Restricted{{< /example >}}
|
||||
|
||||
## FAQ
|
||||
|
||||
|
|
|
@ -0,0 +1,14 @@
|
|||
{{ $file := .Get "file" }}
|
||||
{{ $codelang := .Get "language" | default (path.Ext $file | strings.TrimPrefix ".") }}
|
||||
{{ $fileDir := path.Split $file }}
|
||||
{{ $bundlePath := path.Join .Page.File.Dir $fileDir.Dir }}
|
||||
{{ $filename := printf "/content/%s/examples/%s" .Page.Lang $file | safeURL }}
|
||||
{{ $ghlink := printf "https://%s/%s%s" site.Params.githubwebsiteraw (default "main" (site.Params.github_branch)) $filename | safeURL }}
|
||||
|
||||
<a href="{{ $ghlink }}" download="{{ $file }}">
|
||||
{{- if gt (len .Inner) 0 -}}
|
||||
{{- .Inner -}}
|
||||
{{- else -}}
|
||||
{{- $file -}}
|
||||
{{- end -}}
|
||||
</a>
|
Loading…
Reference in New Issue