forked from LaconicNetwork/kompose
Support config short syntax and fix old bugs (#1230)
This commit is contained in:
+12
-5
@@ -14,7 +14,7 @@
|
||||
}
|
||||
},
|
||||
"data": {
|
||||
"my-config.txt": "aaaa"
|
||||
"my_config.txt": "aaaa"
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -59,8 +59,9 @@
|
||||
"resources": {},
|
||||
"volumeMounts": [
|
||||
{
|
||||
"mountPath": "/redis-config",
|
||||
"name": "my-config"
|
||||
"mountPath": "/redis_config",
|
||||
"name": "my-config",
|
||||
"subPath": "redis_config"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -70,8 +71,14 @@
|
||||
"volumes": [
|
||||
{
|
||||
"configMap": {
|
||||
"name": "my-config",
|
||||
"defaultMode": 288
|
||||
"defaultMode": 288,
|
||||
"items": [
|
||||
{
|
||||
"key": "my_config.txt",
|
||||
"path": "redis_config"
|
||||
}
|
||||
],
|
||||
"name": "my-config"
|
||||
},
|
||||
"name": "my-config"
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
}
|
||||
},
|
||||
"data": {
|
||||
"my-config.txt": "aaaa"
|
||||
"my_config.txt": "aaaa"
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -59,8 +59,9 @@
|
||||
"resources": {},
|
||||
"volumeMounts": [
|
||||
{
|
||||
"mountPath": "/redis-config",
|
||||
"name": "my-config"
|
||||
"mountPath": "/redis_config",
|
||||
"name": "my-config",
|
||||
"subPath": "redis_config"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -70,8 +71,14 @@
|
||||
"volumes": [
|
||||
{
|
||||
"configMap": {
|
||||
"name": "my-config",
|
||||
"defaultMode": 288
|
||||
"defaultMode": 288,
|
||||
"items": [
|
||||
{
|
||||
"key": "my_config.txt",
|
||||
"path": "redis_config"
|
||||
}
|
||||
],
|
||||
"name": "my-config"
|
||||
},
|
||||
"name": "my-config"
|
||||
}
|
||||
|
||||
+23
-3
@@ -14,7 +14,7 @@
|
||||
}
|
||||
},
|
||||
"data": {
|
||||
"my-config.txt": "aaaa"
|
||||
"my_config.txt": "aaaa"
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -56,12 +56,32 @@
|
||||
"image": "redis:latest",
|
||||
"imagePullPolicy": "",
|
||||
"name": "redis",
|
||||
"resources": {}
|
||||
"resources": {},
|
||||
"volumeMounts": [
|
||||
{
|
||||
"mountPath": "/my_config",
|
||||
"name": "my-config",
|
||||
"subPath": "my_config"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"restartPolicy": "Always",
|
||||
"serviceAccountName": "",
|
||||
"volumes": null
|
||||
"volumes": [
|
||||
{
|
||||
"configMap": {
|
||||
"items": [
|
||||
{
|
||||
"key": "my_config.txt",
|
||||
"path": "my_config"
|
||||
}
|
||||
],
|
||||
"name": "my-config"
|
||||
},
|
||||
"name": "my-config"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
}
|
||||
},
|
||||
"data": {
|
||||
"my-config.txt": "aaaa"
|
||||
"my_config.txt": "aaaa"
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -56,12 +56,32 @@
|
||||
"image": "redis:latest",
|
||||
"imagePullPolicy": "",
|
||||
"name": "redis",
|
||||
"resources": {}
|
||||
"resources": {},
|
||||
"volumeMounts": [
|
||||
{
|
||||
"mountPath": "/my_config",
|
||||
"name": "my-config",
|
||||
"subPath": "my_config"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"restartPolicy": "Always",
|
||||
"serviceAccountName": "",
|
||||
"volumes": null
|
||||
"volumes": [
|
||||
{
|
||||
"configMap": {
|
||||
"items": [
|
||||
{
|
||||
"key": "my_config.txt",
|
||||
"path": "my_config"
|
||||
}
|
||||
],
|
||||
"name": "my-config"
|
||||
},
|
||||
"name": "my-config"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
}
|
||||
},
|
||||
"data": {
|
||||
"my-config.txt": "aaaa"
|
||||
"my_config.txt": "aaaa"
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -71,6 +71,12 @@
|
||||
"name": "my-config",
|
||||
"configMap": {
|
||||
"name": "my-config",
|
||||
"items": [
|
||||
{
|
||||
"key": "my_config.txt",
|
||||
"path": "redis_config"
|
||||
}
|
||||
],
|
||||
"defaultMode": 288
|
||||
}
|
||||
}
|
||||
@@ -83,7 +89,8 @@
|
||||
"volumeMounts": [
|
||||
{
|
||||
"name": "my-config",
|
||||
"mountPath": "/redis-config"
|
||||
"mountPath": "/redis_config",
|
||||
"subPath": "redis_config"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
}
|
||||
},
|
||||
"data": {
|
||||
"my-config.txt": "aaaa"
|
||||
"my_config.txt": "aaaa"
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -66,11 +66,32 @@
|
||||
}
|
||||
},
|
||||
"spec": {
|
||||
"volumes": [
|
||||
{
|
||||
"name": "my-config",
|
||||
"configMap": {
|
||||
"name": "my-config",
|
||||
"items": [
|
||||
{
|
||||
"key": "my_config.txt",
|
||||
"path": "my_config"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"containers": [
|
||||
{
|
||||
"name": "redis",
|
||||
"image": " ",
|
||||
"resources": {}
|
||||
"resources": {},
|
||||
"volumeMounts": [
|
||||
{
|
||||
"name": "my-config",
|
||||
"mountPath": "/my_config",
|
||||
"subPath": "my_config"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"restartPolicy": "Always"
|
||||
|
||||
Reference in New Issue
Block a user