mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 12:43:23 +00:00
Merge pull request #69615 from k82cn/update_node_ns
Fixed node namespace to none.
This commit is contained in:
commit
eb79f8f279
@ -149,7 +149,7 @@ func newNode(name string, label map[string]string) *v1.Node {
|
|||||||
ObjectMeta: metav1.ObjectMeta{
|
ObjectMeta: metav1.ObjectMeta{
|
||||||
Name: name,
|
Name: name,
|
||||||
Labels: label,
|
Labels: label,
|
||||||
Namespace: metav1.NamespaceDefault,
|
Namespace: metav1.NamespaceNone,
|
||||||
},
|
},
|
||||||
Status: v1.NodeStatus{
|
Status: v1.NodeStatus{
|
||||||
Conditions: []v1.NodeCondition{
|
Conditions: []v1.NodeCondition{
|
||||||
|
@ -278,7 +278,7 @@ func newNode(name string, label map[string]string) *v1.Node {
|
|||||||
ObjectMeta: metav1.ObjectMeta{
|
ObjectMeta: metav1.ObjectMeta{
|
||||||
Name: name,
|
Name: name,
|
||||||
Labels: label,
|
Labels: label,
|
||||||
Namespace: metav1.NamespaceDefault,
|
Namespace: metav1.NamespaceNone,
|
||||||
},
|
},
|
||||||
Status: v1.NodeStatus{
|
Status: v1.NodeStatus{
|
||||||
Conditions: []v1.NodeCondition{{Type: v1.NodeReady, Status: v1.ConditionTrue}},
|
Conditions: []v1.NodeCondition{{Type: v1.NodeReady, Status: v1.ConditionTrue}},
|
||||||
|
Loading…
Reference in New Issue
Block a user