mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-04 15:05:20 +00:00
Moving /apis handler to generic server
This commit is contained in:
@@ -37,6 +37,10 @@ func makeThirdPartyPath(group string) string {
|
||||
return thirdpartyprefix + "/" + group
|
||||
}
|
||||
|
||||
func getThirdPartyGroupName(path string) string {
|
||||
return strings.TrimPrefix(strings.TrimPrefix(path, thirdpartyprefix), "/")
|
||||
}
|
||||
|
||||
// resourceInterface is the interface for the parts of the master that know how to add/remove
|
||||
// third party resources. Extracted into an interface for injection for testing.
|
||||
type resourceInterface interface {
|
||||
|
||||
Reference in New Issue
Block a user