|
| 1 | +--- |
| 2 | +title: {{ .Title }} |
| 3 | +description: | |
| 4 | +{{- if .Description }} |
| 5 | +{{ .Description | indent 2 }} |
| 6 | +{{- else }} |
| 7 | + Custom resource definition (CRD) schema reference page for the {{ .Title }} |
| 8 | + resource ({{ .NamePlural }}.{{ .Group }}), as part of the Giant Swarm |
| 9 | + Management API documentation. |
| 10 | +{{- end }} |
| 11 | +weight: {{ .Weight }} |
| 12 | +--- |
| 13 | + |
| 14 | +{{- with .Metadata.Deprecation }} |
| 15 | +{{ "{{" }}% pageinfo color="warning" %{{ "}}"}} |
| 16 | +{{- with .Info }} |
| 17 | +{{ . }} |
| 18 | +{{- end }} |
| 19 | +{{- with .ReplacedBy }} |
| 20 | +This CRD is being replaced by <a href="../{{ .FullName }}/">{{ .ShortName }}</a>. |
| 21 | +{{- end }} |
| 22 | +{{"{{% /pageinfo %}}"}} |
| 23 | +{{- end }} |
| 24 | + |
| 25 | +## {{ .Title }} CRD schema reference (group {{ .Group }}) |
| 26 | +<div class="lead">{{`{{`}} page.meta.description {{`}}`}}</div> |
| 27 | + |
| 28 | +<dl class="crd-meta"> |
| 29 | +<dt class="fullname">Full name:</dt> |
| 30 | +<dd class="fullname">{{ .NamePlural }}.{{ .Group }}</dd> |
| 31 | +<dt class="groupname">Group:</dt> |
| 32 | +<dd class="groupname">{{ .Group }}</dd> |
| 33 | +<dt class="singularname">Singular name:</dt> |
| 34 | +<dd class="singularname">{{ .NameSingular }}</dd> |
| 35 | +<dt class="pluralname">Plural name:</dt> |
| 36 | +<dd class="pluralname">{{ .NamePlural }}</dd> |
| 37 | +<dt class="scope">Scope:</dt> |
| 38 | +<dd class="scope">{{ .Scope }}</dd> |
| 39 | +<dt class="versions">Versions:</dt> |
| 40 | +<dd class="versions"> |
| 41 | +{{- range .Versions -}} |
| 42 | +<a class="version" href="#{{.}}" title="Show schema for version {{.}}">{{.}}</a> |
| 43 | +{{- end -}} |
| 44 | +</dd> |
| 45 | +</dl> |
| 46 | + |
| 47 | +{{ if .VersionSchemas }} |
| 48 | +{{ $versionSchemas := .VersionSchemas }} |
| 49 | +{{ range .Versions -}} |
| 50 | +{{ $versionName := . -}} |
| 51 | +{{ $versionSchema := (index $versionSchemas $versionName) -}} |
| 52 | +<div class="crd-schema-version"> |
| 53 | +<h2 id="{{$versionName}}">Version {{$versionName}}</h2> |
| 54 | + |
| 55 | +{{ with $versionSchema.ExampleCR }} |
| 56 | +<h3 id="crd-example-{{$versionName}}">Example CR</h3> |
| 57 | + |
| 58 | +```yaml |
| 59 | +{{ .|raw -}} |
| 60 | +``` |
| 61 | + |
| 62 | +{{end}} |
| 63 | + |
| 64 | +<h3 id="property-details-{{$versionName}}">Properties</h3> |
| 65 | + |
| 66 | +{{ range $versionSchema.Properties }} |
| 67 | +<div class="property depth-{{.Depth}}"> |
| 68 | +<div class="property-header"> |
| 69 | +<h3 class="property-path" id="{{$versionName}}-{{.Path}}">{{.Path}}</h3> |
| 70 | +</div> |
| 71 | +<div class="property-body"> |
| 72 | +<div class="property-meta"> |
| 73 | +{{with .Type}}<span class="property-type">{{.}}</span>{{end}} |
| 74 | +{{ if not .Required }} |
| 75 | +{{ else -}} |
| 76 | +<span class="property-required">Required</span> |
| 77 | +{{ end -}} |
| 78 | +</div> |
| 79 | +{{with .Description}} |
| 80 | +<div class="property-description"> |
| 81 | +{{.|markdown}} |
| 82 | +</div> |
| 83 | +{{end}} |
| 84 | +</div> |
| 85 | +</div> |
| 86 | +{{ end }} |
| 87 | + |
| 88 | +{{ if $versionSchema.Annotations }} |
| 89 | +<h3 id="annotation-details-{{$versionName}}">Annotations</h3> |
| 90 | + |
| 91 | +{{ range $versionSchema.Annotations }} |
| 92 | +<div class="annotation"> |
| 93 | +<div class="annotation-header"> |
| 94 | +<h3 class="annotation-path" id="{{.CRDVersion}}-{{.Annotation}}">{{.Annotation}}</h3> |
| 95 | +</div> |
| 96 | +<div class="annotation-body"> |
| 97 | +<div class="annotation-meta"> |
| 98 | +{{with .Release}}<span class="annotation-release">{{.}}</span>{{end}} |
| 99 | +</div> |
| 100 | +{{with .Documentation}} |
| 101 | +<div class="annotation-description"> |
| 102 | +{{.|markdown}} |
| 103 | +</div> |
| 104 | +{{end}} |
| 105 | +</div> |
| 106 | +</div> |
| 107 | +{{ end }} |
| 108 | +{{ end }} |
| 109 | + |
| 110 | +</div> |
| 111 | +{{end}} |
| 112 | + |
| 113 | +{{ else }} |
| 114 | +<div class="crd-noversions"> |
| 115 | +<p>We currently cannot show any schema information on this <abbr title="custom resource definition">CRD</abbr>. Sorry for the inconvenience!</p> |
| 116 | +<p>Please refer to the <a href="https://pkg.go.dev/github.com/giantswarm/apiextensions/pkg/apis/">Godoc</a> or <a href="https://github.com/giantswarm/apiextensions/tree/master/pkg/apis">source</a> for details.</p> |
| 117 | +</div> |
| 118 | +{{ end }} |
0 commit comments