diff --git a/apis/secrets/externalsecret.go b/apis/secrets/externalsecret.go new file mode 100644 index 00000000..92e0970c --- /dev/null +++ b/apis/secrets/externalsecret.go @@ -0,0 +1,19 @@ +package externalsecret + +import ( + "github.com/containersolutions/externalsecret-operator/apis/secrets/v1alpha1" + "k8s.io/apimachinery/pkg/runtime" +) + +func init() { + // Register the types with the Scheme so the components can map objects to GroupVersionKinds and back + AddToSchemes = append(AddToSchemes, v1alpha1.SchemeBuilder.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) +} diff --git a/apis/store/secretstore.go b/apis/store/secretstore.go new file mode 100644 index 00000000..875c4ab5 --- /dev/null +++ b/apis/store/secretstore.go @@ -0,0 +1,19 @@ +package secretstore + +import ( + "github.com/containersolutions/externalsecret-operator/apis/store/v1alpha1" + "k8s.io/apimachinery/pkg/runtime" +) + +func init() { + // Register the types with the Scheme so the components can map objects to GroupVersionKinds and back + AddToSchemes = append(AddToSchemes, v1alpha1.SchemeBuilder.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) +}