File tree Expand file tree Collapse file tree 2 files changed +17
-3
lines changed
content/en/docs/concepts/security Expand file tree Collapse file tree 2 files changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -283,9 +283,9 @@ of individual policies are not defined here.
283
283
284
284
[ ** PodSecurityPolicy** ] ( /docs/concepts/policy/pod-security-policy/ )
285
285
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 >}}
289
289
290
290
## FAQ
291
291
Original file line number Diff line number Diff line change
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 >
You can’t perform that action at this time.
0 commit comments