Commit 3900e36d authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #50124 from k82cn/k8s_49103

Automatic merge from submit-queue Removed un-used InodePressure condition. **What this PR does / why we need it**: Removed un-used InodePressure condition; kubelet did not report it anymore, so remove it. **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #49103 **Release note**: ```release-note The node condition 'NodeInodePressure' was removed, as kubelet did not report it. ```
parents 96064570 ce826dcd
...@@ -1514,7 +1514,6 @@ func TestUpdateNode(t *testing.T) { ...@@ -1514,7 +1514,6 @@ func TestUpdateNode(t *testing.T) {
{Type: v1.NodeMemoryPressure, Status: v1.ConditionFalse}, {Type: v1.NodeMemoryPressure, Status: v1.ConditionFalse},
{Type: v1.NodeDiskPressure, Status: v1.ConditionFalse}, {Type: v1.NodeDiskPressure, Status: v1.ConditionFalse},
{Type: v1.NodeNetworkUnavailable, Status: v1.ConditionFalse}, {Type: v1.NodeNetworkUnavailable, Status: v1.ConditionFalse},
{Type: v1.NodeInodePressure, Status: v1.ConditionFalse},
} }
return node return node
}(), }(),
...@@ -1522,7 +1521,6 @@ func TestUpdateNode(t *testing.T) { ...@@ -1522,7 +1521,6 @@ func TestUpdateNode(t *testing.T) {
node := newNode("node1", nil) node := newNode("node1", nil)
node.Status.Conditions = []v1.NodeCondition{ node.Status.Conditions = []v1.NodeCondition{
{Type: v1.NodeOutOfDisk, Status: v1.ConditionTrue}, {Type: v1.NodeOutOfDisk, Status: v1.ConditionTrue},
{Type: v1.NodeInodePressure, Status: v1.ConditionFalse},
} }
return node return node
}(), }(),
......
...@@ -3510,8 +3510,6 @@ const ( ...@@ -3510,8 +3510,6 @@ const (
NodeDiskPressure NodeConditionType = "DiskPressure" NodeDiskPressure NodeConditionType = "DiskPressure"
// NodeNetworkUnavailable means that network for the node is not correctly configured. // NodeNetworkUnavailable means that network for the node is not correctly configured.
NodeNetworkUnavailable NodeConditionType = "NetworkUnavailable" NodeNetworkUnavailable NodeConditionType = "NetworkUnavailable"
// NodeInodePressure means the kubelet is under pressure due to insufficient available inodes.
NodeInodePressure NodeConditionType = "InodePressure"
) )
// NodeCondition contains condition information for a node. // NodeCondition contains condition information for a node.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment