Skip to content

Commit

Permalink
Remove harcoded predefined services as they are not used anymore (#165)
Browse files Browse the repository at this point in the history
  • Loading branch information
jggoebel authored Mar 29, 2023
1 parent 3651183 commit efee4e9
Showing 1 changed file with 0 additions and 40 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,43 +121,3 @@ export class VMTemplateServiceFormComponent implements OnInit {
this.newVMServiceModalOpen = true;
}
}

export const PredefinedWebInterfaces: VMTemplateServiceConfiguration[] =
//This has to be modeled into a CRD and retrieved over the Backend
[
{
id: uuid.v4(),
name: 'VS Code IDE',
port: 8080,
path: '/?folder=/root',
hasOwnTab: true,
cloudConfigMap: new Map(),
hasWebinterface: true,
cloudConfigString: `#cloud-config
runcmd:
- export HOME=/root
- curl -fsSL https://code-server.dev/install.sh > codeServerInstall.sh
- /bin/sh codeServerInstall.sh && systemctl enable --now code-server@root
- |
sleep 5 && sed -i.bak 's/auth: password/auth: none/' ~/.config/code-server/config.yaml
- sudo systemctl restart code-server@root
`,
},
{
id: uuid.v4(),
name: 'Test-Service without Webinterface',
cloudConfigMap: new Map(),
hasWebinterface: false,
cloudConfigString: `#cloud-config
runcmd:
- touch /root/test.txt
`,
},
{
id: uuid.v4(),
name: 'Test-Interface without Cloud Config',
port: 8081,
hasOwnTab: false,
hasWebinterface: true,
},
];

0 comments on commit efee4e9

Please sign in to comment.