mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-11 14:11:14 +00:00
Tighten validation of Name and Namespace
This commit is contained in:
committed by
Clayton Coleman
parent
358ace610d
commit
a480794efc
@@ -3,11 +3,11 @@
|
||||
"apiVersion": "v1beta1",
|
||||
"items": [
|
||||
{
|
||||
"id": "testRun",
|
||||
"id": "test-run",
|
||||
"desiredState": {
|
||||
"replicas": 2,
|
||||
"replicaSelector": {
|
||||
"name": "testRun"
|
||||
"name": "test-run"
|
||||
},
|
||||
"podTemplate": {
|
||||
"desiredState": {
|
||||
@@ -23,12 +23,12 @@
|
||||
}
|
||||
},
|
||||
"labels": {
|
||||
"name": "testRun"
|
||||
"name": "test-run"
|
||||
}
|
||||
}
|
||||
},
|
||||
"labels": {
|
||||
"name": "testRun"
|
||||
"name": "test-run"
|
||||
}
|
||||
}
|
||||
]
|
||||
|
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"id": "nginxController",
|
||||
"id": "nginx-controller",
|
||||
"apiVersion": "v1beta1",
|
||||
"kind": "ReplicationController",
|
||||
"desiredState": {
|
||||
@@ -9,7 +9,7 @@
|
||||
"desiredState": {
|
||||
"manifest": {
|
||||
"version": "v1beta1",
|
||||
"id": "nginxController",
|
||||
"id": "nginx-controller",
|
||||
"containers": [{
|
||||
"name": "nginx",
|
||||
"image": "dockerfile/nginx",
|
||||
|
@@ -5,8 +5,8 @@
|
||||
{
|
||||
"id": "my-pod-1",
|
||||
"labels": {
|
||||
"name": "testRun",
|
||||
"replicationcontroller": "testRun"
|
||||
"name": "test-run",
|
||||
"replicationcontroller": "test-run"
|
||||
},
|
||||
"desiredState": {
|
||||
"manifest": {
|
||||
@@ -29,8 +29,8 @@
|
||||
{
|
||||
"id": "my-pod-2",
|
||||
"labels": {
|
||||
"name": "testRun",
|
||||
"replicationcontroller": "testRun"
|
||||
"name": "test-run",
|
||||
"replicationcontroller": "test-run"
|
||||
},
|
||||
"desiredState": {
|
||||
"manifest": {
|
||||
|
Reference in New Issue
Block a user