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
@@ -303,6 +303,9 @@ func (k *Kubernetes) InitD(name string, service kobject.ServiceConfig, replicas
|
||||
Spec: extensions.DeploymentSpec{
|
||||
Replicas: int32(replicas),
|
||||
Template: api.PodTemplateSpec{
|
||||
ObjectMeta: api.ObjectMeta{
|
||||
Annotations: transformer.ConfigAnnotations(service),
|
||||
},
|
||||
Spec: podSpec,
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user