Hack to hide Kustomize object type from controller-tools
@@ -24,9 +24,10 @@ const (
generateExample = ``
)
+// TODO ObjectMeta is only named to force exclusion from controller-tools
type ExperimentGenerator struct {
metav1.TypeMeta `json:",inline"`
- metav1.ObjectMeta `json:"metadata,omitempty"`
+ Metadata metav1.ObjectMeta `json:"metadata,omitempty"`
}
type GenerateOptions struct {
