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
d5c45e88
Commit
d5c45e88
authored
Oct 10, 2016
by
derekwaynecarr
Committed by
Derek Carr
Oct 19, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
requests.storage is a standard resource name
parent
91b7e1f9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
helpers.go
pkg/api/helpers.go
+1
-0
validation_test.go
pkg/api/validation/validation_test.go
+6
-0
No files found.
pkg/api/helpers.go
View file @
d5c45e88
...
@@ -171,6 +171,7 @@ var standardResources = sets.NewString(
...
@@ -171,6 +171,7 @@ var standardResources = sets.NewString(
string
(
ResourceConfigMaps
),
string
(
ResourceConfigMaps
),
string
(
ResourcePersistentVolumeClaims
),
string
(
ResourcePersistentVolumeClaims
),
string
(
ResourceStorage
),
string
(
ResourceStorage
),
string
(
ResourceRequestsStorage
),
)
)
// IsStandardResourceName returns true if the resource is known to the system
// IsStandardResourceName returns true if the resource is known to the system
...
...
pkg/api/validation/validation_test.go
View file @
d5c45e88
...
@@ -6495,6 +6495,12 @@ func TestValidateResourceNames(t *testing.T) {
...
@@ -6495,6 +6495,12 @@ func TestValidateResourceNames(t *testing.T) {
}{
}{
{
"memory"
,
true
,
""
},
{
"memory"
,
true
,
""
},
{
"cpu"
,
true
,
""
},
{
"cpu"
,
true
,
""
},
{
"storage"
,
true
,
""
},
{
"requests.cpu"
,
true
,
""
},
{
"requests.memory"
,
true
,
""
},
{
"requests.storage"
,
true
,
""
},
{
"limits.cpu"
,
true
,
""
},
{
"limits.memory"
,
true
,
""
},
{
"network"
,
false
,
""
},
{
"network"
,
false
,
""
},
{
"disk"
,
false
,
""
},
{
"disk"
,
false
,
""
},
{
""
,
false
,
""
},
{
""
,
false
,
""
},
...
...
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