forked from LaconicNetwork/kompose
Support config short syntax and fix old bugs (#1230)
This commit is contained in:
+24
-10
@@ -14,7 +14,7 @@
|
||||
}
|
||||
},
|
||||
"data": {
|
||||
"first-config.txt": "First config\n"
|
||||
"first_config.txt": "First config\n"
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -61,8 +61,9 @@
|
||||
"resources": {},
|
||||
"volumeMounts": [
|
||||
{
|
||||
"mountPath": "/nginx.conf",
|
||||
"name": "firstconfig"
|
||||
"mountPath": "/etc/nginx.conf",
|
||||
"name": "firstconfig",
|
||||
"subPath": "nginx.conf"
|
||||
},
|
||||
{
|
||||
"mountPath": "/var/www/nginx",
|
||||
@@ -76,8 +77,14 @@
|
||||
"volumes": [
|
||||
{
|
||||
"configMap": {
|
||||
"name": "firstconfig",
|
||||
"defaultMode": 644
|
||||
"defaultMode": 644,
|
||||
"items": [
|
||||
{
|
||||
"key": "first_config.txt",
|
||||
"path": "nginx.conf"
|
||||
}
|
||||
],
|
||||
"name": "firstconfig"
|
||||
},
|
||||
"name": "firstconfig"
|
||||
},
|
||||
@@ -126,7 +133,7 @@
|
||||
}
|
||||
},
|
||||
"data": {
|
||||
"second-config.txt": "Second config\n"
|
||||
"second_config.txt": "Second config\n"
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -173,8 +180,9 @@
|
||||
"resources": {},
|
||||
"volumeMounts": [
|
||||
{
|
||||
"mountPath": "/nginx.conf",
|
||||
"name": "secondconfig"
|
||||
"mountPath": "/etc/nginx.conf",
|
||||
"name": "secondconfig",
|
||||
"subPath": "nginx.conf"
|
||||
},
|
||||
{
|
||||
"mountPath": "/var/www/nginx",
|
||||
@@ -188,8 +196,14 @@
|
||||
"volumes": [
|
||||
{
|
||||
"configMap": {
|
||||
"name": "secondconfig",
|
||||
"defaultMode": 644
|
||||
"defaultMode": 644,
|
||||
"items": [
|
||||
{
|
||||
"key": "second_config.txt",
|
||||
"path": "nginx.conf"
|
||||
}
|
||||
],
|
||||
"name": "secondconfig"
|
||||
},
|
||||
"name": "secondconfig"
|
||||
},
|
||||
|
||||
+12
-5
@@ -14,7 +14,7 @@
|
||||
}
|
||||
},
|
||||
"data": {
|
||||
"second-config.txt": "Second config\n"
|
||||
"second_config.txt": "Second config\n"
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -61,8 +61,9 @@
|
||||
"resources": {},
|
||||
"volumeMounts": [
|
||||
{
|
||||
"mountPath": "/nginx.conf",
|
||||
"name": "firstconfig"
|
||||
"mountPath": "/etc/nginx.conf",
|
||||
"name": "firstconfig",
|
||||
"subPath": "nginx.conf"
|
||||
},
|
||||
{
|
||||
"mountPath": "/var/www/nginx",
|
||||
@@ -76,8 +77,14 @@
|
||||
"volumes": [
|
||||
{
|
||||
"configMap": {
|
||||
"name": "firstconfig",
|
||||
"defaultMode": 644
|
||||
"defaultMode": 644,
|
||||
"items": [
|
||||
{
|
||||
"key": "second_config.txt",
|
||||
"path": "nginx.conf"
|
||||
}
|
||||
],
|
||||
"name": "firstconfig"
|
||||
},
|
||||
"name": "firstconfig"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user