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

Commit

Permalink
Merge pull request #151 from ContainerSolutions/crd-docs-ready
Browse files Browse the repository at this point in the history
Add schema to crds
  • Loading branch information
knelasevero authored Jan 25, 2021
2 parents 9be0a66 + 217c587 commit f04c967
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 f04c967

Please sign in to comment.