diff --git a/apis/apis.go b/apis/apis.go new file mode 100644 index 00000000..2c753428 --- /dev/null +++ b/apis/apis.go @@ -0,0 +1,24 @@ +package apis + +import ( + "k8s.io/apimachinery/pkg/runtime" + + externalsecret "github.com/containersolutions/externalsecret-operator/apis/secrets" + secretstore "github.com/containersolutions/externalsecret-operator/apis/store" +) + +func init() { + // Register the types with the Scheme so the components can map objects to GroupVersionKinds and back + AddToSchemes = append(AddToSchemes, + secretstore.AddToScheme, + externalsecret.AddToScheme, + ) +} + +// AddToSchemes may be used to add all resources defined in the project to a Scheme +var AddToSchemes runtime.SchemeBuilder + +// AddToScheme adds all Resources to the Scheme +func AddToScheme(s *runtime.Scheme) error { + return AddToSchemes.AddToScheme(s) +}