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

Commit

Permalink
Add schema to crds
Browse files Browse the repository at this point in the history
  • Loading branch information
knelasevero committed Jan 25, 2021
1 parent 9be0a66 commit 217c587
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
19 changes: 19 additions & 0 deletions apis/secrets/externalsecret.go
Original file line number Diff line number Diff line change
@@ -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)
}
19 changes: 19 additions & 0 deletions apis/store/secretstore.go
Original file line number Diff line number Diff line change
@@ -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)
}

0 comments on commit 217c587

Please sign in to comment.