mirror of
https://github.com/TECHNOFAB11/kubenix.git
synced 2025-12-13 00:20:07 +01:00
22 lines
No EOL
745 B
HTML
22 lines
No EOL
745 B
HTML
{{ $module := $.Page.File.BaseFileName }}
|
|
{{ $repo := $.Site.Params.BookRepo }}
|
|
{{ range $name, $option := .Site.Data.options }}
|
|
|
|
{{/* some module options are nested under others */}}
|
|
{{ if and (hasPrefix $name "kubernetes.helm.") }}
|
|
{{ if (eq $module "helm") }}
|
|
{{ partial "details" (dict "name" $name "option" $option "repo" $repo) }}
|
|
{{ end }}
|
|
{{ else }}
|
|
|
|
{{/* only show options for the current module */}}
|
|
{{/* but don't list _all_ kubernetes resources */}}
|
|
{{ if and
|
|
(not (hasPrefix $name "kubernetes.api.resources."))
|
|
(hasPrefix $name (print $module "."))
|
|
}}
|
|
{{ partial "details" (dict "name" $name "option" $option "repo" $repo) }}
|
|
{{ end }}
|
|
{{ end }}
|
|
|
|
{{ end }} |