@@ -51,7 +51,6 @@ async function build(context, version) {
51
51
const dontTest = "no-test" in buildConfig ;
52
52
const cacheLevel = "no-cache" in buildConfig ? "remote-push" : "remote" ;
53
53
const publishRelease = "publish-release" in buildConfig ;
54
- const previewWithHttps = "https" in buildConfig ;
55
54
const workspaceFeatureFlags = ( buildConfig [ "ws-feature-flags" ] || "" ) . split ( "," ) . map ( e => e . trim ( ) )
56
55
const dynamicCPULimits = "dynamic-cpu-limits" in buildConfig ;
57
56
const withInstaller = "with-installer" in buildConfig || masterBuild ;
@@ -64,7 +63,6 @@ async function build(context, version) {
64
63
dontTest,
65
64
cacheLevel,
66
65
publishRelease,
67
- previewWithHttps,
68
66
workspaceFeatureFlags,
69
67
dynamicCPULimits,
70
68
noPreview,
@@ -113,20 +111,20 @@ async function build(context, version) {
113
111
werft . phase ( "deploy" , "not deploying" ) ;
114
112
console . log ( "no-preview or publish-release is set" ) ;
115
113
} else {
116
- await deployToDev ( version , previewWithHttps , workspaceFeatureFlags , dynamicCPULimits , registryFacadeHandover ) ;
114
+ await deployToDev ( version , workspaceFeatureFlags , dynamicCPULimits , registryFacadeHandover ) ;
117
115
}
118
116
}
119
117
120
118
121
119
/**
122
120
* Deploy dev
123
121
*/
124
- async function deployToDev ( version , previewWithHttps , workspaceFeatureFlags , dynamicCPULimits , registryFacadeHandover ) {
122
+ async function deployToDev ( version , workspaceFeatureFlags , dynamicCPULimits , registryFacadeHandover ) {
125
123
werft . phase ( "deploy" , "deploying to dev" ) ;
126
124
const destname = version . split ( "." ) [ 0 ] ;
127
125
const namespace = `staging-${ destname } ` ;
128
126
const domain = `${ destname } .staging.gitpod-dev.com` ;
129
- const url = `${ ! ! previewWithHttps ? " https" : "http" } ://${ domain } ` ;
127
+ const url = `https://${ domain } ` ;
130
128
const wsdaemonPort = `1${ Math . floor ( Math . random ( ) * 1000 ) } ` ;
131
129
const registryProxyPort = `2${ Math . floor ( Math . random ( ) * 1000 ) } ` ;
132
130
const registryNodePort = `${ 30000 + Math . floor ( Math . random ( ) * 1000 ) } ` ;
@@ -184,11 +182,10 @@ async function deployToDev(version, previewWithHttps, workspaceFeatureFlags, dyn
184
182
}
185
183
186
184
let certificatePromise = undefined ;
187
- if ( previewWithHttps ) {
188
- // TODO [geropl] Now that the certs reside in a separate namespaces, start the actual certificate issuing _before_ the namespace cleanup
189
- werft . log ( 'certificate' , "organizing a certificate for the preview environment..." ) ;
190
- certificatePromise = issueAndInstallCertficate ( namespace , domain ) ;
191
- }
185
+
186
+ // TODO(geropl): Now that the certs reside in a separate namespaces, start the actual certificate issuing _before_ the namespace cleanup
187
+ werft . log ( 'certificate' , "organizing a certificate for the preview environment..." ) ;
188
+ certificatePromise = issueAndInstallCertficate ( namespace , domain ) ;
192
189
193
190
werft . log ( "predeploy cleanup" , "removing old unnamespaced objects - this might take a while" ) ;
194
191
try {
0 commit comments