Skip to content

Commit

Permalink
register internal version
Browse files Browse the repository at this point in the history
Signed-off-by: Bryce Palmer <[email protected]>
  • Loading branch information
everettraven committed Jan 24, 2025
1 parent 90d07d9 commit 80e26cb
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ import (
"k8s.io/apimachinery/pkg/runtime/schema"
)

var GroupVersion = schema.GroupVersion{Group: "authorization.openshift.io", Version: "v1alpha1"}
var (
GroupVersion = schema.GroupVersion{Group: "authorization.openshift.io", Version: "v1alpha1"}
internalGroupVersion = schema.GroupVersion{Group: "authorization.openshift.io", Version: runtime.APIVersionInternal}
)

var (
localSchemeBuilder = runtime.NewSchemeBuilder(
Expand All @@ -18,5 +21,9 @@ func addKnownTypes(scheme *runtime.Scheme) error {
scheme.AddKnownTypes(GroupVersion,
&RestrictSubjectBindingsAdmissionConfig{},
)

scheme.AddKnownTypes(internalGroupVersion,
&RestrictSubjectBindingsAdmissionConfig{},
)
return nil
}

0 comments on commit 80e26cb

Please sign in to comment.