Skip to content

Commit

Permalink
Add ACME apigroup to scheme
Browse files Browse the repository at this point in the history
Signed-off-by: James Munnelly <james@munnelly.eu>
  • Loading branch information
munnerz committed Sep 20, 2019
1 parent 62359cf commit 72c3279
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/api/scheme.go
Expand Up @@ -27,6 +27,7 @@ import (
apireg "k8s.io/kube-aggregator/pkg/apis/apiregistration/v1beta1"

whapi "github.com/jetstack/cert-manager/pkg/acme/webhook/apis/acme/v1alpha1"
cmacme "github.com/jetstack/cert-manager/pkg/apis/acme/v1alpha2"
cmapi "github.com/jetstack/cert-manager/pkg/apis/certmanager/v1alpha2"
cmmeta "github.com/jetstack/cert-manager/pkg/apis/meta/v1"
)
Expand All @@ -45,6 +46,7 @@ var Codecs = serializer.NewCodecFactory(Scheme)
var ParameterCodec = runtime.NewParameterCodec(Scheme)
var localSchemeBuilder = runtime.SchemeBuilder{
cmapi.AddToScheme,
cmacme.AddToScheme,
cmmeta.AddToScheme,
whapi.AddToScheme,
kscheme.AddToScheme,
Expand Down
2 changes: 2 additions & 0 deletions pkg/webhook/scheme.go
Expand Up @@ -19,6 +19,7 @@ package webhook
import (
"k8s.io/apimachinery/pkg/runtime"

acmeinstall "github.com/jetstack/cert-manager/pkg/internal/apis/acme/install"
cminstall "github.com/jetstack/cert-manager/pkg/internal/apis/certmanager/install"
metainstall "github.com/jetstack/cert-manager/pkg/internal/apis/meta/install"
)
Expand All @@ -36,5 +37,6 @@ var (

func init() {
cminstall.Install(Scheme)
acmeinstall.Install(Scheme)
metainstall.Install(Scheme)
}

0 comments on commit 72c3279

Please sign in to comment.