Fix configmap name case error (#1215)

This commit is contained in:
Hang Yan 2019-12-27 22:39:45 +08:00 committed by GitHub
parent d2d0d61cf2
commit bc32e29ee4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 3308 additions and 17 deletions

View File

@ -126,6 +126,9 @@ vendor-update:
find ./vendor/github.com/docker/distribution -type f -exec sed -i 's/Sirupsen/sirupsen/g' {} \; find ./vendor/github.com/docker/distribution -type f -exec sed -i 's/Sirupsen/sirupsen/g' {} \;
rm -rf vendor/github.com/Sirupsen rm -rf vendor/github.com/Sirupsen
# a field does not has json tag defined.
cp vendor-sync/types.go.txt vendor/k8s.io/kubernetes/pkg/api/types.go
.PHONY: test-k8s .PHONY: test-k8s
test-k8s: test-k8s:

View File

@ -70,7 +70,7 @@
"volumes": [ "volumes": [
{ {
"configMap": { "configMap": {
"Name": "my-config", "name": "my-config",
"defaultMode": 288 "defaultMode": 288
}, },
"name": "my-config" "name": "my-config"

View File

@ -70,7 +70,7 @@
"volumes": [ "volumes": [
{ {
"configMap": { "configMap": {
"Name": "my-config", "name": "my-config",
"defaultMode": 288 "defaultMode": 288
}, },
"name": "my-config" "name": "my-config"

View File

@ -78,8 +78,8 @@
"name": "ALLOW_EMPTY_PASSWORD", "name": "ALLOW_EMPTY_PASSWORD",
"valueFrom": { "valueFrom": {
"configMapKeyRef": { "configMapKeyRef": {
"Name": "foo-env", "key": "ALLOW_EMPTY_PASSWORD",
"key": "ALLOW_EMPTY_PASSWORD" "name": "foo-env"
} }
} }
}, },
@ -87,8 +87,8 @@
"name": "BAR", "name": "BAR",
"valueFrom": { "valueFrom": {
"configMapKeyRef": { "configMapKeyRef": {
"Name": "bar-env", "key": "BAR",
"key": "BAR" "name": "bar-env"
} }
} }
}, },
@ -96,8 +96,8 @@
"name": "FOO", "name": "FOO",
"valueFrom": { "valueFrom": {
"configMapKeyRef": { "configMapKeyRef": {
"Name": "bar-env", "key": "FOO",
"key": "FOO" "name": "bar-env"
} }
} }
} }

View File

@ -79,7 +79,7 @@
"name": "BAR", "name": "BAR",
"valueFrom": { "valueFrom": {
"configMapKeyRef": { "configMapKeyRef": {
"Name": "hadoop-hive-namenode-env", "name": "hadoop-hive-namenode-env",
"key": "BAR" "key": "BAR"
} }
} }
@ -88,7 +88,7 @@
"name": "FOO", "name": "FOO",
"valueFrom": { "valueFrom": {
"configMapKeyRef": { "configMapKeyRef": {
"Name": "hadoop-hive-namenode-env", "name": "hadoop-hive-namenode-env",
"key": "FOO" "key": "FOO"
} }
} }
@ -166,7 +166,7 @@
"name": "BAR", "name": "BAR",
"valueFrom": { "valueFrom": {
"configMapKeyRef": { "configMapKeyRef": {
"Name": "hadoop-hive-namenode-env", "name": "hadoop-hive-namenode-env",
"key": "BAR" "key": "BAR"
} }
} }
@ -179,7 +179,7 @@
"name": "FOO", "name": "FOO",
"valueFrom": { "valueFrom": {
"configMapKeyRef": { "configMapKeyRef": {
"Name": "hadoop-hive-namenode-env", "name": "hadoop-hive-namenode-env",
"key": "FOO" "key": "FOO"
} }
} }

View File

@ -99,7 +99,7 @@
], ],
"imagePullSecrets": [ "imagePullSecrets": [
{ {
"Name": "sample-k8s-secret-name" "name": "sample-k8s-secret-name"
} }
], ],
"restartPolicy": "Always", "restartPolicy": "Always",

View File

@ -76,7 +76,7 @@
"volumes": [ "volumes": [
{ {
"configMap": { "configMap": {
"Name": "firstconfig", "name": "firstconfig",
"defaultMode": 644 "defaultMode": 644
}, },
"name": "firstconfig" "name": "firstconfig"
@ -188,7 +188,7 @@
"volumes": [ "volumes": [
{ {
"configMap": { "configMap": {
"Name": "secondconfig", "name": "secondconfig",
"defaultMode": 644 "defaultMode": 644
}, },
"name": "secondconfig" "name": "secondconfig"

View File

@ -76,7 +76,7 @@
"volumes": [ "volumes": [
{ {
"configMap": { "configMap": {
"Name": "firstconfig", "name": "firstconfig",
"defaultMode": 644 "defaultMode": 644
}, },
"name": "firstconfig" "name": "firstconfig"

File diff suppressed because it is too large Load Diff

View File

@ -2583,7 +2583,7 @@ type ObjectReference struct {
// LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace. // LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace.
type LocalObjectReference struct { type LocalObjectReference struct {
//TODO: Add other useful fields. apiVersion, kind, uid? //TODO: Add other useful fields. apiVersion, kind, uid?
Name string Name string `json:"name"`
} }
type SerializedReference struct { type SerializedReference struct {