Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
a0fcbd14
Commit
a0fcbd14
authored
Mar 09, 2016
by
Brendan Burns
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable third party resources.
parent
0a28a381
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
7 deletions
+1
-7
types.go
pkg/apis/extensions/types.go
+0
-3
types.go
pkg/apis/extensions/v1beta1/types.go
+0
-3
master.go
pkg/master/master.go
+1
-1
No files found.
pkg/apis/extensions/types.go
View file @
a0fcbd14
...
...
@@ -201,9 +201,6 @@ type ThirdPartyResourceList struct {
type
APIVersion
struct
{
// Name of this version (e.g. 'v1').
Name
string
`json:"name,omitempty"`
// The API group to add this object into, default 'experimental'.
APIGroup
string
`json:"apiGroup,omitempty"`
}
// An internal object, used for versioned storage in etcd. Not exposed to the end user.
...
...
pkg/apis/extensions/v1beta1/types.go
View file @
a0fcbd14
...
...
@@ -198,9 +198,6 @@ type ThirdPartyResourceList struct {
type
APIVersion
struct
{
// Name of this version (e.g. 'v1').
Name
string
`json:"name,omitempty"`
// The API group to add this object into, default 'experimental'.
APIGroup
string
`json:"apiGroup,omitempty"`
}
// An internal object, used for versioned storage in etcd. Not exposed to the end user.
...
...
pkg/master/master.go
View file @
a0fcbd14
...
...
@@ -663,7 +663,7 @@ func (m *Master) thirdpartyapi(group, kind, version string) *apiserver.APIGroupV
// getExperimentalResources returns the resources for extensions api
func
(
m
*
Master
)
getExtensionResources
(
c
*
Config
)
map
[
string
]
rest
.
Storage
{
// All resources except these are disabled by default.
enabledResources
:=
sets
.
NewString
(
"daemonsets"
,
"deployments"
,
"horizontalpodautoscalers"
,
"ingresses"
,
"jobs"
,
"replicasets"
)
enabledResources
:=
sets
.
NewString
(
"daemonsets"
,
"deployments"
,
"horizontalpodautoscalers"
,
"ingresses"
,
"jobs"
,
"replicasets"
,
"thirdpartyresources"
)
resourceOverrides
:=
m
.
ApiGroupVersionOverrides
[
"extensions/v1beta1"
]
.
ResourceOverrides
isEnabled
:=
func
(
resource
string
)
bool
{
// Check if the resource has been overriden.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment