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
ee53dfc7
Commit
ee53dfc7
authored
Mar 20, 2015
by
derekwaynecarr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Turn on namespace lifecycle plug-in
parent
2ac63ebb
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
6 deletions
+7
-6
config-default.sh
cluster/aws/config-default.sh
+1
-1
config-default.sh
cluster/azure/config-default.sh
+1
-1
config-default.sh
cluster/gce/config-default.sh
+1
-1
config-default.sh
cluster/vagrant/config-default.sh
+1
-1
namespace_controller_test.go
pkg/namespace/namespace_controller_test.go
+3
-2
No files found.
cluster/aws/config-default.sh
View file @
ee53dfc7
...
@@ -71,4 +71,4 @@ DNS_DOMAIN="kubernetes.local"
...
@@ -71,4 +71,4 @@ DNS_DOMAIN="kubernetes.local"
DNS_REPLICAS
=
1
DNS_REPLICAS
=
1
# Admission Controllers to invoke prior to persisting objects in cluster
# Admission Controllers to invoke prior to persisting objects in cluster
ADMISSION_CONTROL
=
NamespaceAutoProvision,LimitRanger,ResourceQuota
ADMISSION_CONTROL
=
Namespace
Lifecycle,Namespace
AutoProvision,LimitRanger,ResourceQuota
cluster/azure/config-default.sh
View file @
ee53dfc7
...
@@ -49,4 +49,4 @@ ELASTICSEARCH_LOGGING_REPLICAS=1
...
@@ -49,4 +49,4 @@ ELASTICSEARCH_LOGGING_REPLICAS=1
ENABLE_CLUSTER_MONITORING
=
"
${
KUBE_ENABLE_CLUSTER_MONITORING
:-
true
}
"
ENABLE_CLUSTER_MONITORING
=
"
${
KUBE_ENABLE_CLUSTER_MONITORING
:-
true
}
"
# Admission Controllers to invoke prior to persisting objects in cluster
# Admission Controllers to invoke prior to persisting objects in cluster
ADMISSION_CONTROL
=
NamespaceAutoProvision,LimitRanger,ResourceQuota
ADMISSION_CONTROL
=
Namespace
Lifecycle,Namespace
AutoProvision,LimitRanger,ResourceQuota
cluster/gce/config-default.sh
View file @
ee53dfc7
...
@@ -108,4 +108,4 @@ DNS_DOMAIN="kubernetes.local"
...
@@ -108,4 +108,4 @@ DNS_DOMAIN="kubernetes.local"
DNS_REPLICAS=1
DNS_REPLICAS=1
# Admission Controllers to invoke prior to persisting objects in cluster
# Admission Controllers to invoke prior to persisting objects in cluster
ADMISSION_CONTROL=NamespaceAutoProvision,LimitRanger,ResourceQuota
ADMISSION_CONTROL=Namespace
Lifecycle,Namespace
AutoProvision,LimitRanger,ResourceQuota
cluster/vagrant/config-default.sh
View file @
ee53dfc7
...
@@ -49,7 +49,7 @@ MASTER_USER=vagrant
...
@@ -49,7 +49,7 @@ MASTER_USER=vagrant
MASTER_PASSWD
=
vagrant
MASTER_PASSWD
=
vagrant
# Admission Controllers to invoke prior to persisting objects in cluster
# Admission Controllers to invoke prior to persisting objects in cluster
ADMISSION_CONTROL
=
NamespaceAutoProvision,LimitRanger,ResourceQuota
ADMISSION_CONTROL
=
Namespace
Lifecycle,Namespace
AutoProvision,LimitRanger,ResourceQuota
# Optional: Install node monitoring.
# Optional: Install node monitoring.
ENABLE_NODE_MONITORING
=
true
ENABLE_NODE_MONITORING
=
true
...
...
pkg/namespace/namespace_controller_test.go
View file @
ee53dfc7
...
@@ -21,6 +21,7 @@ import (
...
@@ -21,6 +21,7 @@ import (
"github.com/GoogleCloudPlatform/kubernetes/pkg/api"
"github.com/GoogleCloudPlatform/kubernetes/pkg/api"
"github.com/GoogleCloudPlatform/kubernetes/pkg/client"
"github.com/GoogleCloudPlatform/kubernetes/pkg/client"
"github.com/GoogleCloudPlatform/kubernetes/pkg/client/cache"
"github.com/GoogleCloudPlatform/kubernetes/pkg/util"
"github.com/GoogleCloudPlatform/kubernetes/pkg/util"
)
)
...
@@ -61,7 +62,7 @@ func TestFinalize(t *testing.T) {
...
@@ -61,7 +62,7 @@ func TestFinalize(t *testing.T) {
func
TestSyncNamespaceThatIsTerminating
(
t
*
testing
.
T
)
{
func
TestSyncNamespaceThatIsTerminating
(
t
*
testing
.
T
)
{
mockClient
:=
&
client
.
Fake
{}
mockClient
:=
&
client
.
Fake
{}
nm
:=
N
ewNamespaceManager
(
mockClient
)
nm
:=
N
amespaceManager
{
kubeClient
:
mockClient
,
store
:
cache
.
NewStore
(
cache
.
MetaNamespaceKeyFunc
)}
now
:=
util
.
Now
()
now
:=
util
.
Now
()
testNamespace
:=
api
.
Namespace
{
testNamespace
:=
api
.
Namespace
{
ObjectMeta
:
api
.
ObjectMeta
{
ObjectMeta
:
api
.
ObjectMeta
{
...
@@ -101,7 +102,7 @@ func TestSyncNamespaceThatIsTerminating(t *testing.T) {
...
@@ -101,7 +102,7 @@ func TestSyncNamespaceThatIsTerminating(t *testing.T) {
func
TestSyncNamespaceThatIsActive
(
t
*
testing
.
T
)
{
func
TestSyncNamespaceThatIsActive
(
t
*
testing
.
T
)
{
mockClient
:=
&
client
.
Fake
{}
mockClient
:=
&
client
.
Fake
{}
nm
:=
N
ewNamespaceManager
(
mockClient
)
nm
:=
N
amespaceManager
{
kubeClient
:
mockClient
,
store
:
cache
.
NewStore
(
cache
.
MetaNamespaceKeyFunc
)}
testNamespace
:=
api
.
Namespace
{
testNamespace
:=
api
.
Namespace
{
ObjectMeta
:
api
.
ObjectMeta
{
ObjectMeta
:
api
.
ObjectMeta
{
Name
:
"test"
,
Name
:
"test"
,
...
...
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