Skip to content

Commit d29d3b2

Browse files
committed
fixup
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
1 parent a5ed3ca commit d29d3b2

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/dashboard-backend/src/devworkspaceClient/services/__tests__/serverConfigApi.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ function buildCustomResource(options?: { openVSXURL?: string }): CheClusterCusto
224224
secondsOfRunBeforeIdling: -1,
225225
maxNumberOfRunningWorkspacesPerCluster: 100,
226226
storage: { pvcStrategy: 'per-user' },
227-
allowedSource: {
227+
allowedSourced: {
228228
urls: ['https://github.com'],
229229
},
230230
},

packages/dashboard-backend/src/devworkspaceClient/services/serverConfigApi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,6 @@ export class ServerConfigApiService implements IServerConfigApi {
230230
}
231231

232232
getAllowedSourceUrls(cheCustomResource: CheClusterCustomResource): string[] {
233-
return cheCustomResource.spec.devEnvironments?.allowedSource?.urls || [];
233+
return cheCustomResource.spec.devEnvironments?.allowedSourced?.urls || [];
234234
}
235235
}

packages/dashboard-backend/src/devworkspaceClient/types/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ export type CheClusterCustomResourceSpecDevEnvironments = {
178178
maxNumberOfRunningWorkspacesPerUser?: number;
179179
maxNumberOfRunningWorkspacesPerCluster?: number;
180180
maxNumberOfWorkspacesPerUser?: number;
181-
allowedSource?: {
181+
allowedSourced?: {
182182
urls?: string[];
183183
};
184184
};

0 commit comments

Comments
 (0)