@@ -50,6 +50,7 @@ type NamedInstallStrategy struct {
50
50
}
51
51
52
52
// StatusDescriptor describes a field in a status block of a CRD so that OLM can consume it
53
+ // +k8s:openapi-gen=true
53
54
type StatusDescriptor struct {
54
55
Path string `json:"path"`
55
56
DisplayName string `json:"displayName,omitempty"`
@@ -59,6 +60,7 @@ type StatusDescriptor struct {
59
60
}
60
61
61
62
// SpecDescriptor describes a field in a spec block of a CRD so that OLM can consume it
63
+ // +k8s:openapi-gen=true
62
64
type SpecDescriptor struct {
63
65
Path string `json:"path"`
64
66
DisplayName string `json:"displayName,omitempty"`
@@ -68,6 +70,7 @@ type SpecDescriptor struct {
68
70
}
69
71
70
72
// ActionDescriptor describes a declarative action that can be performed on a custom resource instance
73
+ // +k8s:openapi-gen=true
71
74
type ActionDescriptor struct {
72
75
Path string `json:"path"`
73
76
DisplayName string `json:"displayName,omitempty"`
@@ -77,6 +80,7 @@ type ActionDescriptor struct {
77
80
}
78
81
79
82
// CRDDescription provides details to OLM about the CRDs
83
+ // +k8s:openapi-gen=true
80
84
type CRDDescription struct {
81
85
Name string `json:"name"`
82
86
Version string `json:"version"`
@@ -90,6 +94,7 @@ type CRDDescription struct {
90
94
}
91
95
92
96
// APIServiceDescription provides details to OLM about apis provided via aggregation
97
+ // +k8s:openapi-gen=true
93
98
type APIServiceDescription struct {
94
99
Name string `json:"name"`
95
100
Group string `json:"group"`
@@ -106,6 +111,7 @@ type APIServiceDescription struct {
106
111
}
107
112
108
113
// APIResourceReference is a Kubernetes resource type used by a custom resource
114
+ // +k8s:openapi-gen=true
109
115
type APIResourceReference struct {
110
116
Name string `json:"name"`
111
117
Kind string `json:"kind"`
@@ -121,13 +127,15 @@ func (d APIServiceDescription) GetName() string {
121
127
// an operator being ran by ClusterServiceVersion.
122
128
//
123
129
// If the CRD is present in the Owned list, it is implicitly required.
130
+ // +k8s:openapi-gen=true
124
131
type CustomResourceDefinitions struct {
125
132
Owned []CRDDescription `json:"owned,omitempty"`
126
133
Required []CRDDescription `json:"required,omitempty"`
127
134
}
128
135
129
136
// APIServiceDefinitions declares all of the extension apis managed or required by
130
137
// an operator being ran by ClusterServiceVersion.
138
+ // +k8s:openapi-gen=true
131
139
type APIServiceDefinitions struct {
132
140
Owned []APIServiceDescription `json:"owned,omitempty"`
133
141
Required []APIServiceDescription `json:"required,omitempty"`
0 commit comments