Skip to content

Commit

Permalink
Register CRD types in webhook
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Peeler committed Aug 15, 2018
1 parent 0be2b24 commit 0aa2a1e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions webhook/scheme.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ limitations under the License.
package main

import (
"github.com/jpeeler/podpreset-crd/pkg/apis"
admissionregistrationv1beta1 "k8s.io/api/admissionregistration/v1beta1"
corev1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/runtime"
Expand All @@ -33,4 +34,5 @@ func init() {
func addToScheme(scheme *runtime.Scheme) {
corev1.AddToScheme(scheme)
admissionregistrationv1beta1.AddToScheme(scheme)
apis.AddToScheme(scheme)
}

0 comments on commit 0aa2a1e

Please sign in to comment.