File tree 4 files changed +12
-0
lines changed 4 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -127,6 +127,8 @@ spec:
127
127
- name : GITPOD_GITHUB_APP_MKT_NAME
128
128
value : " {{ $comp.github.app.marketPlaceName }}"
129
129
{{- end }}
130
+ - name : GITPOD_DEFINITELY_GP_DISABLED
131
+ value : " {{ $comp.definitelyGpDisabled | default " false" }}"
130
132
- name : LOG_LEVEL
131
133
value : " trace"
132
134
- name : NODE_ENV
Original file line number Diff line number Diff line change @@ -291,6 +291,7 @@ components:
291
291
volumes : null
292
292
garbageCollection :
293
293
disabled : " false"
294
+ definitelyGpDisabled : " false"
294
295
295
296
workspace :
296
297
ports :
Original file line number Diff line number Diff line change @@ -72,6 +72,8 @@ export class Env extends AbstractComponentEnv {
72
72
readonly githubAppCertPath : string = process . env . GITPOD_GITHUB_APP_CERT_PATH || "unknown" ;
73
73
readonly githubAppMarketplaceName : string = process . env . GITPOD_GITHUB_APP_MKT_NAME || "unknown" ;
74
74
75
+ readonly definitelyGpDisabled : boolean = process . env . GITPOD_DEFINITELY_GP_DISABLED == "true" ;
76
+
75
77
readonly daysBeforeGarbageCollection : number = parseInt ( process . env . GITPOD_DAYS_BEFORE_GARBAGE_COLLECTION || '14' , 10 ) ;
76
78
readonly daysBeforeGarbageCollectingPrebuilds : number = parseInt ( process . env . GITPOD_DAYS_BEFORE_GARBAGE_COLLECTING_PREBUILDS || '7' , 10 ) ;
77
79
readonly garbageCollectionStartDate : number = process . env . GITPOD_GARBAGE_COLLECTION_START_DATE ?
Original file line number Diff line number Diff line change @@ -210,6 +210,13 @@ export class ConfigProvider {
210
210
const span = TraceContext . startSpan ( "fetchExternalGitpodFileContent" , ctx ) ;
211
211
span . setTag ( "repo" , `${ repository . owner } /${ repository . name } ` ) ;
212
212
213
+ if ( this . env . definitelyGpDisabled ) {
214
+ return {
215
+ content : undefined ,
216
+ basePath : `${ repository . name } `
217
+ } ;
218
+ }
219
+
213
220
try {
214
221
const ownerConfigBasePath = `${ repository . name } /${ repository . owner } ` ;
215
222
const baseConfigBasePath = `${ repository . name } ` ;
You can’t perform that action at this time.
0 commit comments