mirror of
https://github.com/kyverno/kyverno.git
synced 2024-12-14 11:57:48 +00:00
63b03a8442
* (docs) updated gen-crd tool to reference-docs/genref Signed-off-by: Srikanth Iyengar <ksrikanth3012@gmail.com> * (docs) updated branch with recent docs Signed-off-by: Srikanth Iyengar <ksrikanth3012@gmail.com> * codegen Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * codegen Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * codegen Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * (docs) codegen * fix Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * codegen Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> --------- Signed-off-by: Srikanth Iyengar <ksrikanth3012@gmail.com> Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> Co-authored-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> Co-authored-by: shuting <shuting@nirmata.com>
48 lines
1.3 KiB
Smarty
48 lines
1.3 KiB
Smarty
{{ define "members" }}
|
|
|
|
{{/* . is a apiType */}}
|
|
{{ range .GetMembers }}
|
|
{{/* . is a apiMember */}}
|
|
{{ if not .Hidden }}
|
|
<tr>
|
|
<td><code>{{ .FieldName }}</code>
|
|
{{ if not .IsOptional }}
|
|
<span style="color:blue;"> *</span>
|
|
{{ end }}
|
|
</br>
|
|
|
|
{{/* Link for type reference */}}
|
|
{{ with .GetType }}
|
|
{{ if .Link }}
|
|
<a href="{{ .Link }}">
|
|
<span style="font-family: monospace">{{ .DisplayName }}</span>
|
|
</a>
|
|
{{ else }}
|
|
<span style="font-family: monospace">{{ .DisplayName }}</span>
|
|
{{ end }}
|
|
{{ end }}
|
|
</td>
|
|
<td>
|
|
{{ if .IsInline }}
|
|
<p>(Members of <code>{{ .FieldName }}</code> are embedded into this type.)</p>
|
|
{{ end}}
|
|
|
|
{{ .GetComment }}
|
|
|
|
{{ if and (eq (.GetType.Name.Name) "ObjectMeta") }}
|
|
Refer to the Kubernetes API documentation for the fields of the
|
|
<code>metadata</code> field.
|
|
{{ end }}
|
|
|
|
{{ if or (eq .FieldName "spec") }}
|
|
<br/>
|
|
<br/>
|
|
<table>
|
|
{{ template "members" .GetType }}
|
|
</table>
|
|
{{ end }}
|
|
</td>
|
|
</tr>
|
|
{{ end }}
|
|
{{ end }}
|
|
{{ end }}
|