type crdBuilder … func newCRD(name string) *crdBuilder { … } func (b *crdBuilder) SpecNames(plural, singular, kind, listKind string, shortNames ...string) *crdBuilder { … } func (b *crdBuilder) StatusNames(plural, singular, kind, listKind string, shortNames ...string) *crdBuilder { … } func (b *crdBuilder) Condition(c apiextensionsv1.CustomResourceDefinitionCondition) *crdBuilder { … } func names(plural, singular, kind, listKind string, shortNames ...string) apiextensionsv1.CustomResourceDefinitionNames { … } func (b *crdBuilder) NewOrDie() *apiextensionsv1.CustomResourceDefinition { … } var acceptedCondition … var notAcceptedCondition … var installingCondition … var notEstablishedCondition … func nameConflictCondition(reason, message string) apiextensionsv1.CustomResourceDefinitionCondition { … } func TestSync(t *testing.T) { … }