@@ -17,12 +17,12 @@ func TestGetImagebuilderEnvOffclusterErr(t *testing.T) {
1717 env .Envs = map [string ]string {
1818 "DRYCC_STORAGE_LOOKUP" : "path" ,
1919 "DRYCC_STORAGE_BUCKET" : "builder" ,
20- "DRYCC_STORAGE_ENDPOINT" : "drycc-storage.drycc.svc.cluster.local " ,
20+ "DRYCC_STORAGE_ENDPOINT" : "drycc-storage" ,
2121 "DRYCC_REGISTRY_LOCATION" : "off-cluster" ,
2222 }
2323 _ , err := getImagebuilderEnv (& image , config , env )
2424 assert .Error (t , err , errors .New ("the environment variable DRYCC_REGISTRY_HOST is required" ))
25- env .Envs ["DRYCC_REGISTRY_HOST" ] = "drycc-registry.drycc.svc.cluster.local "
25+ env .Envs ["DRYCC_REGISTRY_HOST" ] = "drycc-registry"
2626 _ , err = getImagebuilderEnv (& image , config , env )
2727 assert .Error (t , err , errors .New ("the environment variable DRYCC_REGISTRY_ORGANIZATION is required" ))
2828}
@@ -32,15 +32,15 @@ func TestGetImagebuilderEnvOffclusterSuccess(t *testing.T) {
3232 env .Envs = map [string ]string {
3333 "DRYCC_STORAGE_LOOKUP" : "path" ,
3434 "DRYCC_STORAGE_BUCKET" : "builder" ,
35- "DRYCC_STORAGE_ENDPOINT" : "drycc-storage.drycc.svc.cluster.local " ,
35+ "DRYCC_STORAGE_ENDPOINT" : "drycc-storage" ,
3636 "DRYCC_REGISTRY_HOST" : "quay.io" ,
3737 "DRYCC_REGISTRY_ORGANIZATION" : "kmala" ,
3838 "DRYCC_REGISTRY_LOCATION" : "off-cluster" ,
3939 }
4040 expectedData := map [string ]string {
4141 "DRYCC_STORAGE_LOOKUP" : "path" ,
4242 "DRYCC_STORAGE_BUCKET" : "builder" ,
43- "DRYCC_STORAGE_ENDPOINT" : "drycc-storage.drycc.svc.cluster.local " ,
43+ "DRYCC_STORAGE_ENDPOINT" : "drycc-storage" ,
4444 "DRYCC_REGISTRY_LOCATION" : "off-cluster" ,
4545 "DRYCC_REGISTRY_HOST" : "quay.io" ,
4646 "DRYCC_REGISTRY_ORGANIZATION" : "kmala" ,
@@ -63,16 +63,16 @@ func TestGetImagebuilderEnvOnclusterSuccess(t *testing.T) {
6363 env .Envs = map [string ]string {
6464 "DRYCC_STORAGE_LOOKUP" : "path" ,
6565 "DRYCC_STORAGE_BUCKET" : "builder" ,
66- "DRYCC_STORAGE_ENDPOINT" : "drycc-storage.drycc.svc.cluster.local " ,
67- "DRYCC_REGISTRY_HOST" : "drycc-registry.drycc.svc.cluster.local " ,
66+ "DRYCC_STORAGE_ENDPOINT" : "drycc-storage" ,
67+ "DRYCC_REGISTRY_HOST" : "drycc-registry" ,
6868 "DRYCC_REGISTRY_PROXY_HOST" : "127.0.0.1:8000" ,
6969 "DRYCC_REGISTRY_LOCATION" : "on-cluster" ,
7070 }
7171 expectedData := map [string ]string {
7272 "DRYCC_STORAGE_LOOKUP" : "path" ,
7373 "DRYCC_STORAGE_BUCKET" : "builder" ,
74- "DRYCC_STORAGE_ENDPOINT" : "drycc-storage.drycc.svc.cluster.local " ,
75- "DRYCC_REGISTRY_HOST" : "drycc-registry.drycc.svc.cluster.local " ,
74+ "DRYCC_STORAGE_ENDPOINT" : "drycc-storage" ,
75+ "DRYCC_REGISTRY_HOST" : "drycc-registry" ,
7676 "DRYCC_REGISTRY_LOCATION" : "on-cluster" ,
7777 "DRYCC_REGISTRY_PROXY_HOST" : "127.0.0.1:8000" ,
7878 "DRYCC_REGISTRY_ORGANIZATION" : "python-getting-started" ,
0 commit comments