Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 0 additions & 15 deletions src/otomi-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1618,19 +1618,6 @@ export default class OtomiStack {
)
}

async saveTeamApps(teamId: string): Promise<void> {
const apps = {}

const content = {
teamConfig: {
[teamId]: {
apps,
},
},
}
await this.repo.writeFile(`env/teams/apps.${teamId}.yaml`, content)
}

async saveSettings(secretPaths?: string[]): Promise<void> {
const settings = cloneDeep(this.getSettings()) as Record<string, Record<string, any>>
settings.otomi.nodeSelector = arrayToObject(settings.otomi.nodeSelector as [])
Expand Down Expand Up @@ -1669,7 +1656,6 @@ export default class OtomiStack {
teams.map(async (inTeam) => {
const team: Record<string, any> = omit(inTeam, 'name')
const teamId = team.id as string
await this.saveTeamApps(teamId)
await this.saveTeamBackups(teamId)
await this.saveTeamNetpols(teamId)
await this.saveTeamServices(teamId)
Expand Down Expand Up @@ -1894,7 +1880,6 @@ export default class OtomiStack {
await this.saveTeams(secretPaths)
// also save admin apps
await this.saveAdminApps(secretPaths)
await this.saveTeamApps('admin')
}

async getSession(user: k8s.User): Promise<Session> {
Expand Down