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
56fae079
Commit
56fae079
authored
Feb 07, 2019
by
Darren Shepherd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update generated code
parent
49968cc6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
129 additions
and
12 deletions
+129
-12
zz_generated_bindata.go
pkg/deploy/zz_generated_bindata.go
+12
-12
zz_generated_deepcopy.go
types/apis/core/v1/zz_generated_deepcopy.go
+33
-0
zz_generated_endpoints_controller.go
types/apis/core/v1/zz_generated_endpoints_controller.go
+0
-0
zz_generated_endpoints_lifecycle_adapter.go
.../apis/core/v1/zz_generated_endpoints_lifecycle_adapter.go
+63
-0
zz_generated_k8s_client.go
types/apis/core/v1/zz_generated_k8s_client.go
+20
-0
zz_generated_scheme.go
types/apis/core/v1/zz_generated_scheme.go
+1
-0
No files found.
pkg/deploy/zz_generated_bindata.go
View file @
56fae079
// Code generated by go-bindata.
// Code generated by go-bindata.
// sources:
// sources:
// manifests/coredns.yaml
// manifests/coredns.yaml
// manifests/
nginx-ingress
.yaml
// manifests/
traefik
.yaml
// DO NOT EDIT!
// DO NOT EDIT!
package
deploy
package
deploy
...
@@ -89,22 +89,22 @@ func corednsYaml() (*asset, error) {
...
@@ -89,22 +89,22 @@ func corednsYaml() (*asset, error) {
return
a
,
nil
return
a
,
nil
}
}
var
_
nginxIngressYaml
=
[]
byte
(
"
\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x54\xcc\x31\xae\xc2\x30\x0c\x87\xf1\x3d\xa7\xf0\x05\xda\xea\xe9\x6d\x5e\x59\x38\x01\xbb\x9b\xfe\x55\xac\x24\x6e\x14\x1b\x04\xb7\x47\x95\x58\x58\x3f\xe9\xf7\x49\xd7\x1b\x86\xeb\x61\x4c\xe5\xdf\xe7\x2c\x11\x15\xb3\x1e\xcb\xf3\x2f\x15\xb5\x8d\xe9\x8a\xda\x2e\x77\x19\x91\x1a\x42\x36\x09\xe1\x44\x64\xd2\xc0\x64\xbb\xda\x6b\x52\xdb\x07\xdc\xbf\xd5\xbb\x64\x30\x95\xc7\x8a\xc9\xdf\x1e\x68\xc9\x3b\xf2\x89\xf2\xb9\x61\xf2\x90\xb5\x62\xf9\xc5\x9f\x00\x00\x00\xff\xff\x2d\x6c\xb9\xb9\x8a
\x00\x00\x00
"
)
var
_
traefikYaml
=
[]
byte
(
"
\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x2c\x8c\x41\x0a\xc2\x30\x10\x45\xf7\x39\xc5\x5c\xc0\x16\x71\x37\x5b\x37\x9e\xc0\xfd\x6f\xfa\xc5\x21\x4d\x1a\x32\xa3\xe0\xed\xa5\xd0\xe5\x83\xf7\x1e\xba\x3d\x39\xdc\xf6\xa6\x52\x6e\x3e\x65\x44\x6c\x9c\x6c\x9f\xbf\xd7\x54\xac\xad\x2a\x0f\x6e\xf5\xfe\xc6\x88\x54\x19\x58\x11\xd0\x24\xd2\x50\xa9\x12\x03\x7c\x59\x39\xd9\x3b\x32\x55\xca\x67\xe1\xc5\x7f\x1e\xac\xc9\x3b\xf3\xa1\xe7\x63\xa0\xe2\x81\x65\xe3\x7c\x66\x92\xfe\x01\x00\x00\xff\xff\xbd\x83\x66\xe9\x7f
\x00\x00\x00
"
)
func
nginxIngress
YamlBytes
()
([]
byte
,
error
)
{
func
traefik
YamlBytes
()
([]
byte
,
error
)
{
return
bindataRead
(
return
bindataRead
(
_
nginxIngress
Yaml
,
_
traefik
Yaml
,
"
nginx-ingress
.yaml"
,
"
traefik
.yaml"
,
)
)
}
}
func
nginxIngress
Yaml
()
(
*
asset
,
error
)
{
func
traefik
Yaml
()
(
*
asset
,
error
)
{
bytes
,
err
:=
nginxIngress
YamlBytes
()
bytes
,
err
:=
traefik
YamlBytes
()
if
err
!=
nil
{
if
err
!=
nil
{
return
nil
,
err
return
nil
,
err
}
}
info
:=
bindataFileInfo
{
name
:
"
nginx-ingress
.yaml"
,
size
:
0
,
mode
:
os
.
FileMode
(
0
),
modTime
:
time
.
Unix
(
0
,
0
)}
info
:=
bindataFileInfo
{
name
:
"
traefik
.yaml"
,
size
:
0
,
mode
:
os
.
FileMode
(
0
),
modTime
:
time
.
Unix
(
0
,
0
)}
a
:=
&
asset
{
bytes
:
bytes
,
info
:
info
}
a
:=
&
asset
{
bytes
:
bytes
,
info
:
info
}
return
a
,
nil
return
a
,
nil
}
}
...
@@ -161,8 +161,8 @@ func AssetNames() []string {
...
@@ -161,8 +161,8 @@ func AssetNames() []string {
// _bindata is a table, holding each asset generator, mapped to its name.
// _bindata is a table, holding each asset generator, mapped to its name.
var
_bindata
=
map
[
string
]
func
()
(
*
asset
,
error
){
var
_bindata
=
map
[
string
]
func
()
(
*
asset
,
error
){
"coredns.yaml"
:
corednsYaml
,
"coredns.yaml"
:
corednsYaml
,
"
nginx-ingress.yaml"
:
nginxIngress
Yaml
,
"
traefik.yaml"
:
traefik
Yaml
,
}
}
// AssetDir returns the file names below a certain
// AssetDir returns the file names below a certain
...
@@ -206,8 +206,8 @@ type bintree struct {
...
@@ -206,8 +206,8 @@ type bintree struct {
}
}
var
_bintree
=
&
bintree
{
nil
,
map
[
string
]
*
bintree
{
var
_bintree
=
&
bintree
{
nil
,
map
[
string
]
*
bintree
{
"coredns.yaml"
:
&
bintree
{
corednsYaml
,
map
[
string
]
*
bintree
{}},
"coredns.yaml"
:
&
bintree
{
corednsYaml
,
map
[
string
]
*
bintree
{}},
"
nginx-ingress.yaml"
:
&
bintree
{
nginxIngress
Yaml
,
map
[
string
]
*
bintree
{}},
"
traefik.yaml"
:
&
bintree
{
traefik
Yaml
,
map
[
string
]
*
bintree
{}},
}}
}}
// RestoreAsset restores an asset under the given directory
// RestoreAsset restores an asset under the given directory
...
...
types/apis/core/v1/zz_generated_deepcopy.go
View file @
56fae079
...
@@ -39,6 +39,39 @@ func (in *ConfigMapList) DeepCopyObject() runtime.Object {
...
@@ -39,6 +39,39 @@ func (in *ConfigMapList) DeepCopyObject() runtime.Object {
}
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func
(
in
*
EndpointsList
)
DeepCopyInto
(
out
*
EndpointsList
)
{
*
out
=
*
in
out
.
TypeMeta
=
in
.
TypeMeta
out
.
ListMeta
=
in
.
ListMeta
if
in
.
Items
!=
nil
{
in
,
out
:=
&
in
.
Items
,
&
out
.
Items
*
out
=
make
([]
corev1
.
Endpoints
,
len
(
*
in
))
for
i
:=
range
*
in
{
(
*
in
)[
i
]
.
DeepCopyInto
(
&
(
*
out
)[
i
])
}
}
return
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EndpointsList.
func
(
in
*
EndpointsList
)
DeepCopy
()
*
EndpointsList
{
if
in
==
nil
{
return
nil
}
out
:=
new
(
EndpointsList
)
in
.
DeepCopyInto
(
out
)
return
out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func
(
in
*
EndpointsList
)
DeepCopyObject
()
runtime
.
Object
{
if
c
:=
in
.
DeepCopy
();
c
!=
nil
{
return
c
}
return
nil
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func
(
in
*
NodeList
)
DeepCopyInto
(
out
*
NodeList
)
{
func
(
in
*
NodeList
)
DeepCopyInto
(
out
*
NodeList
)
{
*
out
=
*
in
*
out
=
*
in
out
.
TypeMeta
=
in
.
TypeMeta
out
.
TypeMeta
=
in
.
TypeMeta
...
...
types/apis/core/v1/zz_generated_endpoints_controller.go
0 → 100644
View file @
56fae079
This diff is collapsed.
Click to expand it.
types/apis/core/v1/zz_generated_endpoints_lifecycle_adapter.go
0 → 100644
View file @
56fae079
package
v1
import
(
"github.com/rancher/norman/lifecycle"
v1
"k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/runtime"
)
type
EndpointsLifecycle
interface
{
Create
(
obj
*
v1
.
Endpoints
)
(
runtime
.
Object
,
error
)
Remove
(
obj
*
v1
.
Endpoints
)
(
runtime
.
Object
,
error
)
Updated
(
obj
*
v1
.
Endpoints
)
(
runtime
.
Object
,
error
)
}
type
endpointsLifecycleAdapter
struct
{
lifecycle
EndpointsLifecycle
}
func
(
w
*
endpointsLifecycleAdapter
)
HasCreate
()
bool
{
o
,
ok
:=
w
.
lifecycle
.
(
lifecycle
.
ObjectLifecycleCondition
)
return
!
ok
||
o
.
HasCreate
()
}
func
(
w
*
endpointsLifecycleAdapter
)
HasFinalize
()
bool
{
o
,
ok
:=
w
.
lifecycle
.
(
lifecycle
.
ObjectLifecycleCondition
)
return
!
ok
||
o
.
HasFinalize
()
}
func
(
w
*
endpointsLifecycleAdapter
)
Create
(
obj
runtime
.
Object
)
(
runtime
.
Object
,
error
)
{
o
,
err
:=
w
.
lifecycle
.
Create
(
obj
.
(
*
v1
.
Endpoints
))
if
o
==
nil
{
return
nil
,
err
}
return
o
,
err
}
func
(
w
*
endpointsLifecycleAdapter
)
Finalize
(
obj
runtime
.
Object
)
(
runtime
.
Object
,
error
)
{
o
,
err
:=
w
.
lifecycle
.
Remove
(
obj
.
(
*
v1
.
Endpoints
))
if
o
==
nil
{
return
nil
,
err
}
return
o
,
err
}
func
(
w
*
endpointsLifecycleAdapter
)
Updated
(
obj
runtime
.
Object
)
(
runtime
.
Object
,
error
)
{
o
,
err
:=
w
.
lifecycle
.
Updated
(
obj
.
(
*
v1
.
Endpoints
))
if
o
==
nil
{
return
nil
,
err
}
return
o
,
err
}
func
NewEndpointsLifecycleAdapter
(
name
string
,
clusterScoped
bool
,
client
EndpointsInterface
,
l
EndpointsLifecycle
)
EndpointsHandlerFunc
{
adapter
:=
&
endpointsLifecycleAdapter
{
lifecycle
:
l
}
syncFn
:=
lifecycle
.
NewObjectLifecycleAdapter
(
name
,
clusterScoped
,
adapter
,
client
.
ObjectClient
())
return
func
(
key
string
,
obj
*
v1
.
Endpoints
)
(
runtime
.
Object
,
error
)
{
newObj
,
err
:=
syncFn
(
key
,
obj
)
if
o
,
ok
:=
newObj
.
(
runtime
.
Object
);
ok
{
return
o
,
err
}
return
nil
,
err
}
}
types/apis/core/v1/zz_generated_k8s_client.go
View file @
56fae079
...
@@ -22,6 +22,7 @@ type Interface interface {
...
@@ -22,6 +22,7 @@ type Interface interface {
NodesGetter
NodesGetter
ServiceAccountsGetter
ServiceAccountsGetter
EndpointsGetter
ServicesGetter
ServicesGetter
PodsGetter
PodsGetter
ConfigMapsGetter
ConfigMapsGetter
...
@@ -32,6 +33,7 @@ type Clients struct {
...
@@ -32,6 +33,7 @@ type Clients struct {
Node
NodeClient
Node
NodeClient
ServiceAccount
ServiceAccountClient
ServiceAccount
ServiceAccountClient
Endpoints
EndpointsClient
Service
ServiceClient
Service
ServiceClient
Pod
PodClient
Pod
PodClient
ConfigMap
ConfigMapClient
ConfigMap
ConfigMapClient
...
@@ -44,6 +46,7 @@ type Client struct {
...
@@ -44,6 +46,7 @@ type Client struct {
nodeControllers
map
[
string
]
NodeController
nodeControllers
map
[
string
]
NodeController
serviceAccountControllers
map
[
string
]
ServiceAccountController
serviceAccountControllers
map
[
string
]
ServiceAccountController
endpointsControllers
map
[
string
]
EndpointsController
serviceControllers
map
[
string
]
ServiceController
serviceControllers
map
[
string
]
ServiceController
podControllers
map
[
string
]
PodController
podControllers
map
[
string
]
PodController
configMapControllers
map
[
string
]
ConfigMapController
configMapControllers
map
[
string
]
ConfigMapController
...
@@ -88,6 +91,9 @@ func NewClientsFromInterface(iface Interface) *Clients {
...
@@ -88,6 +91,9 @@ func NewClientsFromInterface(iface Interface) *Clients {
ServiceAccount
:
&
serviceAccountClient2
{
ServiceAccount
:
&
serviceAccountClient2
{
iface
:
iface
.
ServiceAccounts
(
""
),
iface
:
iface
.
ServiceAccounts
(
""
),
},
},
Endpoints
:
&
endpointsClient2
{
iface
:
iface
.
Endpoints
(
""
),
},
Service
:
&
serviceClient2
{
Service
:
&
serviceClient2
{
iface
:
iface
.
Services
(
""
),
iface
:
iface
.
Services
(
""
),
},
},
...
@@ -115,6 +121,7 @@ func NewForConfig(config rest.Config) (Interface, error) {
...
@@ -115,6 +121,7 @@ func NewForConfig(config rest.Config) (Interface, error) {
nodeControllers
:
map
[
string
]
NodeController
{},
nodeControllers
:
map
[
string
]
NodeController
{},
serviceAccountControllers
:
map
[
string
]
ServiceAccountController
{},
serviceAccountControllers
:
map
[
string
]
ServiceAccountController
{},
endpointsControllers
:
map
[
string
]
EndpointsController
{},
serviceControllers
:
map
[
string
]
ServiceController
{},
serviceControllers
:
map
[
string
]
ServiceController
{},
podControllers
:
map
[
string
]
PodController
{},
podControllers
:
map
[
string
]
PodController
{},
configMapControllers
:
map
[
string
]
ConfigMapController
{},
configMapControllers
:
map
[
string
]
ConfigMapController
{},
...
@@ -159,6 +166,19 @@ func (c *Client) ServiceAccounts(namespace string) ServiceAccountInterface {
...
@@ -159,6 +166,19 @@ func (c *Client) ServiceAccounts(namespace string) ServiceAccountInterface {
}
}
}
}
type
EndpointsGetter
interface
{
Endpoints
(
namespace
string
)
EndpointsInterface
}
func
(
c
*
Client
)
Endpoints
(
namespace
string
)
EndpointsInterface
{
objectClient
:=
objectclient
.
NewObjectClient
(
namespace
,
c
.
restClient
,
&
EndpointsResource
,
EndpointsGroupVersionKind
,
endpointsFactory
{})
return
&
endpointsClient
{
ns
:
namespace
,
client
:
c
,
objectClient
:
objectClient
,
}
}
type
ServicesGetter
interface
{
type
ServicesGetter
interface
{
Services
(
namespace
string
)
ServiceInterface
Services
(
namespace
string
)
ServiceInterface
}
}
...
...
types/apis/core/v1/zz_generated_scheme.go
View file @
56fae079
...
@@ -35,6 +35,7 @@ func addKnownTypes(scheme *runtime.Scheme) error {
...
@@ -35,6 +35,7 @@ func addKnownTypes(scheme *runtime.Scheme) error {
&
NodeList
{},
&
NodeList
{},
&
ServiceAccountList
{},
&
ServiceAccountList
{},
&
EndpointsList
{},
&
ServiceList
{},
&
ServiceList
{},
&
PodList
{},
&
PodList
{},
&
ConfigMapList
{},
&
ConfigMapList
{},
...
...
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