File tree Expand file tree Collapse file tree
cmd/scaffold-controller/data/api Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -33,13 +33,15 @@ type {{ .Kind }}ResourceSpec struct {
3333 // {{ . | camelCase }}Ref is a reference to the ORC {{ . }} which this resource is associated with.
3434 // +required
3535 // +kubebuilder:validation:XValidation:rule="self == oldSelf",message="{{ . | camelCase }}Ref is immutable"
36+ // +orc:kustomize:ref={{ . }}
3637 {{ . }}Ref KubernetesNameRef `json:"{{ . | camelCase }}Ref,omitempty"`
3738{{- end }}
3839{{- range .OptionalCreateDependencies }}
3940
4041 // {{ . | camelCase }}Ref is a reference to the ORC {{ . }} which this resource is associated with.
4142 // +optional
4243 // +kubebuilder:validation:XValidation:rule="self == oldSelf",message="{{ . | camelCase }}Ref is immutable"
44+ // +orc:kustomize:ref={{ . }}
4345 {{ . }}Ref *KubernetesNameRef `json:"{{ . | camelCase }}Ref,omitempty"`
4446{{- end }}
4547
@@ -68,6 +70,7 @@ type {{ .Kind }}Filter struct {
6870
6971 // {{ . | camelCase }}Ref is a reference to the ORC {{ . }} which this resource is associated with.
7072 // +optional
73+ // +orc:kustomize:ref={{ . }}
7174 {{ . }}Ref *KubernetesNameRef `json:"{{ . | camelCase }}Ref,omitempty"`
7275{{- end }}
7376
You can’t perform that action at this time.
0 commit comments