@@ -58,7 +58,7 @@ func TestEnsureImages(t *testing.T) {
5858 // Arange
5959 terminationGracePeriodSeconds := int64 ((time .Second * 30 ).Seconds ())
6060 id := fmt .Sprintf ("%0x" , sha1 .Sum ([]byte (testNewImage )))[:6 ]
61- hostname := testDeploymentName + "-" + shared . ImageIDAndVersionRole + "-" + id
61+ hostname := testDeploymentName + "-" + api . ServerGroupImageDiscovery . AsRole () + "-" + id
6262
6363 var securityContext api.ServerGroupSpecSecurityContext
6464
@@ -107,7 +107,7 @@ func TestEnsureImages(t *testing.T) {
107107 Hostname : hostname ,
108108 Subdomain : testDeploymentName + "-int" ,
109109 Affinity : k8sutil .CreateAffinity (testDeploymentName ,
110- shared . ImageIDAndVersionRole , false , "" ),
110+ api . ServerGroupImageDiscovery . AsRole () , false , "" ),
111111 },
112112 },
113113 },
@@ -170,7 +170,7 @@ func TestEnsureImages(t *testing.T) {
170170 Hostname : hostname ,
171171 Subdomain : testDeploymentName + "-int" ,
172172 Affinity : k8sutil .CreateAffinity (testDeploymentName ,
173- shared . ImageIDAndVersionRole , false , "" ),
173+ api . ServerGroupImageDiscovery . AsRole () , false , "" ),
174174 },
175175 },
176176 },
@@ -213,7 +213,7 @@ func TestEnsureImages(t *testing.T) {
213213 Hostname : hostname ,
214214 Subdomain : testDeploymentName + "-int" ,
215215 Affinity : k8sutil .CreateAffinity (testDeploymentName ,
216- shared . ImageIDAndVersionRole , false , "" ),
216+ api . ServerGroupImageDiscovery . AsRole () , false , "" ),
217217 },
218218 },
219219 },
@@ -269,7 +269,7 @@ func TestEnsureImages(t *testing.T) {
269269 Hostname : hostname ,
270270 Subdomain : testDeploymentName + "-int" ,
271271 Affinity : k8sutil .CreateAffinity (testDeploymentName ,
272- shared . ImageIDAndVersionRole , false , "" ),
272+ api . ServerGroupImageDiscovery . AsRole () , false , "" ),
273273 },
274274 },
275275 },
@@ -283,7 +283,7 @@ func TestEnsureImages(t *testing.T) {
283283 Before : func (t * testing.T , deployment * Deployment ) {
284284 pod := core.Pod {
285285 ObjectMeta : meta.ObjectMeta {
286- Name : k8sutil .CreatePodName (testDeploymentName , shared . ImageIDAndVersionRole , id , "" ),
286+ Name : k8sutil .CreatePodName (testDeploymentName , api . ServerGroupImageDiscovery . AsRole () , id , "" ),
287287 CreationTimestamp : meta .Now (),
288288 },
289289 Spec : core.PodSpec {},
@@ -310,7 +310,7 @@ func TestEnsureImages(t *testing.T) {
310310 Before : func (t * testing.T , deployment * Deployment ) {
311311 pod := core.Pod {
312312 ObjectMeta : meta.ObjectMeta {
313- Name : k8sutil .CreatePodName (testDeploymentName , shared . ImageIDAndVersionRole , id , "" ),
313+ Name : k8sutil .CreatePodName (testDeploymentName , api . ServerGroupImageDiscovery . AsRole () , id , "" ),
314314 },
315315 Status : core.PodStatus {
316316 Phase : core .PodFailed ,
@@ -335,7 +335,7 @@ func TestEnsureImages(t *testing.T) {
335335 Before : func (t * testing.T , deployment * Deployment ) {
336336 pod := core.Pod {
337337 ObjectMeta : meta.ObjectMeta {
338- Name : k8sutil .CreatePodName (testDeploymentName , shared . ImageIDAndVersionRole , id , "" ),
338+ Name : k8sutil .CreatePodName (testDeploymentName , api . ServerGroupImageDiscovery . AsRole () , id , "" ),
339339 },
340340 Status : core.PodStatus {
341341 Conditions : []core.PodCondition {
@@ -364,7 +364,7 @@ func TestEnsureImages(t *testing.T) {
364364 Before : func (t * testing.T , deployment * Deployment ) {
365365 pod := core.Pod {
366366 ObjectMeta : meta.ObjectMeta {
367- Name : k8sutil .CreatePodName (testDeploymentName , shared . ImageIDAndVersionRole , id , "" ),
367+ Name : k8sutil .CreatePodName (testDeploymentName , api . ServerGroupImageDiscovery . AsRole () , id , "" ),
368368 },
369369 Status : core.PodStatus {
370370 Conditions : []core.PodCondition {
@@ -394,7 +394,7 @@ func TestEnsureImages(t *testing.T) {
394394 Before : func (t * testing.T , deployment * Deployment ) {
395395 pod := core.Pod {
396396 ObjectMeta : meta.ObjectMeta {
397- Name : k8sutil .CreatePodName (testDeploymentName , shared . ImageIDAndVersionRole , id , "" ),
397+ Name : k8sutil .CreatePodName (testDeploymentName , api . ServerGroupImageDiscovery . AsRole () , id , "" ),
398398 },
399399 Status : core.PodStatus {
400400 Conditions : []core.PodCondition {
0 commit comments