Skip to content

Commit b601409

Browse files
committed
fix: remove namespace resource usage
1 parent 02a0e97 commit b601409

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/function.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,17 +116,15 @@ export const upsertProject: StepCall<Project> = async (payload) => {
116116
}
117117
const namespace = await environment.apis.kubernetes.getNsName()
118118
const name = isNewNsName(namespace) ? compressedUUID : project.slug
119-
console.log({ namespace, name })
119+
console.log({ namespace, name }) // k -n dso-console logs dso-cpn-console-server-fc6c5b768-8gsjj | grep -2 ' namespace: '
120120
const env: EnvType = environment.stage === 'prod' ? 'prod' : 'hprod'
121-
projectValue.envs[env].tenants[`${env}-${name}`] = {}
121+
projectValue.envs[env]!.tenants[`${env}-${name}`] = {}
122122
}
123123

124124
if (projectValue.envs.hprod && !Object.values(projectValue.envs.hprod.tenants).length) {
125-
// @ts-ignore
126125
delete projectValue.envs.hprod
127126
}
128127
if (projectValue.envs.prod && !Object.values(projectValue.envs.prod?.tenants).length) {
129-
// @ts-ignore
130128
delete projectValue.envs.prod
131129
}
132130

src/observability-repo-manager.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ export interface ObservabilityProject {
4343
path: string
4444
}
4545
envs: {
46-
prod: Env
47-
hprod: Env
46+
prod?: Env
47+
hprod?: Env
4848
}
4949
}
5050

0 commit comments

Comments
 (0)