Skip to content

Commit d56b6e0

Browse files
committed
Merge remote-tracking branch 'origin/main' into cas-fix-stack
2 parents 05729d0 + b255d95 commit d56b6e0

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/otomi-stack.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1310,6 +1310,10 @@ export default class OtomiStack {
13101310
}
13111311

13121312
async createAplBuild(teamId: string, data: AplBuildRequest): Promise<AplBuildResponse> {
1313+
const tekton = this.getApp('tekton')
1314+
const harbor = this.getApp('harbor')
1315+
if (!tekton?.values?.enabled || !harbor?.values?.enabled)
1316+
throw new ForbiddenError('Tekton and Harbor need to be enabled, cannot create container image')
13131317
const buildName = `${data?.spec?.imageName}-${data?.spec?.tag}`
13141318
if (data.spec.secretName && data.spec.secretName.length < 2)
13151319
throw new ValidationError('Secret name must be at least 2 characters long')

0 commit comments

Comments
 (0)