forked from kubernetes/kubernetes
-
Notifications
You must be signed in to change notification settings - Fork 112
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 UPSTREAM: <carry>: use hardcoded rest mapper from library-go OpenShift-Rebase-Source: a00f75d
- Loading branch information
1 parent
311440c
commit 6861144
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
11 changes: 11 additions & 0 deletions
11
staging/src/k8s.io/apiserver/pkg/server/options/patch_restmapper.go
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 options | ||
|
||
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) | ||
} |