mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-13 11:25:19 +00:00
Replace UserIDRange/GroupIDRange by IDRange in internal type to reduce difference with external type.
We had IDRange in both types prior9440a68744commit that splitted it into UserIDRange/GroupIDRange. Later, inc91a12d205commit we had to revert this changes because they broke backward compatibility but UserIDRange/GroupIDRange struct left in the internal type. This commit removes these leftovers and reduces the differences between internal and external types.
This commit is contained in:
@@ -38,7 +38,7 @@ func TestNewMustRunAs(t *testing.T) {
|
||||
},
|
||||
"valid opts": {
|
||||
opts: &policy.RunAsUserStrategyOptions{
|
||||
Ranges: []policy.UserIDRange{
|
||||
Ranges: []policy.IDRange{
|
||||
{Min: 1, Max: 1},
|
||||
},
|
||||
},
|
||||
@@ -58,7 +58,7 @@ func TestNewMustRunAs(t *testing.T) {
|
||||
|
||||
func TestGenerate(t *testing.T) {
|
||||
opts := &policy.RunAsUserStrategyOptions{
|
||||
Ranges: []policy.UserIDRange{
|
||||
Ranges: []policy.IDRange{
|
||||
{Min: 1, Max: 1},
|
||||
},
|
||||
}
|
||||
@@ -77,7 +77,7 @@ func TestGenerate(t *testing.T) {
|
||||
|
||||
func TestValidate(t *testing.T) {
|
||||
opts := &policy.RunAsUserStrategyOptions{
|
||||
Ranges: []policy.UserIDRange{
|
||||
Ranges: []policy.IDRange{
|
||||
{Min: 1, Max: 1},
|
||||
{Min: 10, Max: 20},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user