Skip to content
This repository was archived by the owner on Jul 5, 2021. It is now read-only.

Commit 217c587

Browse files
committed
Add schema to crds
1 parent 9be0a66 commit 217c587

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

apis/secrets/externalsecret.go

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
package externalsecret
2+
3+
import (
4+
"github.com/containersolutions/externalsecret-operator/apis/secrets/v1alpha1"
5+
"k8s.io/apimachinery/pkg/runtime"
6+
)
7+
8+
func init() {
9+
// Register the types with the Scheme so the components can map objects to GroupVersionKinds and back
10+
AddToSchemes = append(AddToSchemes, v1alpha1.SchemeBuilder.AddToScheme)
11+
}
12+
13+
// AddToSchemes may be used to add all resources defined in the project to a Scheme
14+
var AddToSchemes runtime.SchemeBuilder
15+
16+
// AddToScheme adds all Resources to the Scheme
17+
func AddToScheme(s *runtime.Scheme) error {
18+
return AddToSchemes.AddToScheme(s)
19+
}

apis/store/secretstore.go

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
package secretstore
2+
3+
import (
4+
"github.com/containersolutions/externalsecret-operator/apis/store/v1alpha1"
5+
"k8s.io/apimachinery/pkg/runtime"
6+
)
7+
8+
func init() {
9+
// Register the types with the Scheme so the components can map objects to GroupVersionKinds and back
10+
AddToSchemes = append(AddToSchemes, v1alpha1.SchemeBuilder.AddToScheme)
11+
}
12+
13+
// AddToSchemes may be used to add all resources defined in the project to a Scheme
14+
var AddToSchemes runtime.SchemeBuilder
15+
16+
// AddToScheme adds all Resources to the Scheme
17+
func AddToScheme(s *runtime.Scheme) error {
18+
return AddToSchemes.AddToScheme(s)
19+
}

0 commit comments

Comments
 (0)