forked from kubernetes/kubernetes
-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
UPSTREAM: <carry>: hardcoded restmapper with a few entries to reboots…
…trap SDN when SDN is down Origin-commit: 36c5e7d672bf82bd09ee382564bc03ef8e1b3a76 openshift-rebase(v1.24):source=b4aee491855 UPSTREAM: <carry>: use hardcoded rest mapper from library-go openshift-rebase(v1.24):source=58f3815bab1 openshift-rebase(v1.24):source=58f3815bab1 openshift-rebase(v1.24):source=58f3815bab1
- Loading branch information
Showing
2 changed files
with
12 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package admission | ||
|
||
import ( | ||
"k8s.io/apimachinery/pkg/api/meta" | ||
|
||
"github.com/openshift/library-go/pkg/client/openshiftrestmapper" | ||
) | ||
|
||
func NewAdmissionRESTMapper(delegate meta.RESTMapper) meta.RESTMapper { | ||
return openshiftrestmapper.NewOpenShiftHardcodedRESTMapper(delegate) | ||
} |