forked from LaconicNetwork/kompose
Copy the service labels also to Deployment Pod spec annotations (#1166)
* Copy the service labels also to Deployment Pod spec annotations This allows kube2iam to work * Remove test file forgotten from version 1.0.0 * Update test fixtures to have Deployment.spec.t.m.annotations * Fix name conversion "test_server" -> "test-server" It looks unrelated to my changes, but still changing. * Fixing some more output fixtures
This commit is contained in:
committed by
Hang Yan
parent
4f07f2a5a4
commit
30655b4dd6
Vendored
+6
-1
@@ -25,6 +25,11 @@
|
||||
"creationTimestamp": null,
|
||||
"labels": {
|
||||
"io.kompose.service": "nginx0"
|
||||
},
|
||||
"annotations": {
|
||||
"kompose.cmd": "%CMD%",
|
||||
"kompose.image-pull-policy": "Always",
|
||||
"kompose.version": "%VERSION%"
|
||||
}
|
||||
},
|
||||
"spec": {
|
||||
@@ -44,4 +49,4 @@
|
||||
"status": {}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
+16
-1
@@ -25,6 +25,11 @@
|
||||
"creationTimestamp": null,
|
||||
"labels": {
|
||||
"io.kompose.service": "nginx0"
|
||||
},
|
||||
"annotations": {
|
||||
"kompose.cmd": "%CMD%",
|
||||
"kompose.image-pull-policy": "Always",
|
||||
"kompose.version": "%VERSION%"
|
||||
}
|
||||
},
|
||||
"spec": {
|
||||
@@ -65,6 +70,11 @@
|
||||
"creationTimestamp": null,
|
||||
"labels": {
|
||||
"io.kompose.service": "nginx1"
|
||||
},
|
||||
"annotations": {
|
||||
"kompose.cmd": "%CMD%",
|
||||
"kompose.image-pull-policy": "IfNotPresent",
|
||||
"kompose.version": "%VERSION%"
|
||||
}
|
||||
},
|
||||
"spec": {
|
||||
@@ -105,6 +115,11 @@
|
||||
"creationTimestamp": null,
|
||||
"labels": {
|
||||
"io.kompose.service": "nginx2"
|
||||
},
|
||||
"annotations": {
|
||||
"kompose.cmd": "%CMD%",
|
||||
"kompose.image-pull-policy": "Never",
|
||||
"kompose.version": "%VERSION%"
|
||||
}
|
||||
},
|
||||
"spec": {
|
||||
@@ -124,4 +139,4 @@
|
||||
"status": {}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user