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