File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,9 @@ import (
16
16
// { { .CRD.Kind } }Spec defines the desired state of { { .CRD.Kind } }
17
17
type { { .CRD.Kind } }Spec struct {
18
18
{{- range $fieldName , $field := .CRD.SpecFields } }
19
+ { {- if $field .ShapeRef } }
20
+ { { $field .ShapeRef.Documentation } }
21
+ { {- end } }
19
22
{ { if $field .IsRequired } } // +kubebuilder:validation:Required
20
23
{ { $field .Names.Camel } } { { $field .GoType } } `json:"{ { $field .Names.CamelLower } }"`
21
24
{ {- else } } { { $field .Names.Camel } } { { $field .GoType } } `json:"{ { $field .Names.CamelLower } },omitempty"` { { end } }
@@ -34,6 +37,9 @@ type {{ .CRD.Kind }}Status struct {
34
37
// resource
35
38
Conditions []*ackv1alpha1.Condition `json:" conditions" `
36
39
{{- range $fieldName , $field := .CRD.StatusFields } }
40
+ { {- if $field .ShapeRef } }
41
+ { { $field .ShapeRef.Documentation } }
42
+ { {- end } }
37
43
{ { $field .Names.Camel } } { { $field .GoType } } `json:"{ { $field .Names.CamelLower } },omitempty"`
38
44
{ {- end } }
39
45
}
You can’t perform that action at this time.
0 commit comments