[DEV] Removed excess logs
This commit is contained in:
parent
91587f66b2
commit
a96ce0ddc3
4 changed files with 2 additions and 5 deletions
|
@ -52,7 +52,6 @@ export async function getVolumes() {
|
||||||
|
|
||||||
export function getServerAssets(serverId) {
|
export function getServerAssets(serverId) {
|
||||||
const serverFilter = serverMatch(serverId);
|
const serverFilter = serverMatch(serverId);
|
||||||
console.log(serverId);
|
|
||||||
return Promise.all([
|
return Promise.all([
|
||||||
getDeployments(),
|
getDeployments(),
|
||||||
getServices(),
|
getServices(),
|
||||||
|
@ -83,7 +82,6 @@ export function getServerAssets(serverId) {
|
||||||
|
|
||||||
export async function getDeployment(serverId) {
|
export async function getDeployment(serverId) {
|
||||||
const servers = await getDeployments();
|
const servers = await getDeployments();
|
||||||
console.log(servers.map(({ metadata }) => metadata.annotations));
|
|
||||||
const serverDeployment = servers.find(
|
const serverDeployment = servers.find(
|
||||||
(s) => s.metadata.annotations["minecluster.dunemask.net/id"] === serverId,
|
(s) => s.metadata.annotations["minecluster.dunemask.net/id"] === serverId,
|
||||||
);
|
);
|
||||||
|
|
|
@ -69,7 +69,7 @@ function createServerDeploy(serverSpec) {
|
||||||
).persistentVolumeClaim.claimName = `mcl-${mclName}-volume`;
|
).persistentVolumeClaim.claimName = `mcl-${mclName}-volume`;
|
||||||
|
|
||||||
// Apply Containers TODO: User control for autostart
|
// Apply Containers TODO: User control for autostart
|
||||||
deployYaml.spec.template.spec.containers.push(serverContainer);
|
// deployYaml.spec.template.spec.containers.push(serverContainer);
|
||||||
deployYaml.spec.template.spec.containers.push(ftpContainer);
|
deployYaml.spec.template.spec.containers.push(ftpContainer);
|
||||||
deployYaml.spec.replicas = 1;
|
deployYaml.spec.replicas = 1;
|
||||||
return deployYaml;
|
return deployYaml;
|
||||||
|
|
|
@ -123,7 +123,7 @@ export default function ServerCard(props) {
|
||||||
size="large"
|
size="large"
|
||||||
component={Link}
|
component={Link}
|
||||||
to={`/mcl/files?server=${id}`}
|
to={`/mcl/files?server=${id}`}
|
||||||
disabled={!services.includes("ftp")}
|
disabled={!ftpAvailable}
|
||||||
>
|
>
|
||||||
<FolderIcon />
|
<FolderIcon />
|
||||||
</IconButton>
|
</IconButton>
|
||||||
|
|
|
@ -28,7 +28,6 @@ export default function Create() {
|
||||||
const s = { ...spec };
|
const s = { ...spec };
|
||||||
s[attr] = val;
|
s[attr] = val;
|
||||||
setSpec(s);
|
setSpec(s);
|
||||||
console.log(s);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue