Skip to content
Open
Show file tree
Hide file tree
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
19 changes: 0 additions & 19 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,29 +14,10 @@ services:
- $PWD/core.yaml:/etc/otomi/core.yaml
- tmp:/tmp
environment:
TOOLS_HOST: tools
GIT_LOCAL_PATH: /tmp/otomi-values
env_file:
- compose/.env

tools:
depends_on:
- api
container_name: tools
image: otomi/core:${TOOLS_TAG:-main}
user: ${USER_ID}:${GROUP_ID}
command: sh -c 'binzx/otomi server -vv'
expose:
- 17771
ports:
- 17771:17771
volumes:
- tmp:/tmp
environment:
ENV_DIR: /tmp/otomi-values
env_file:
- compose/.env

volumes:
tmp:
driver: local
Expand Down
17 changes: 1 addition & 16 deletions src/pages/Maintenance.tsx
Original file line number Diff line number Diff line change
@@ -1,19 +1,14 @@
/* eslint-disable @typescript-eslint/no-floating-promises */
import PaperLayout from 'layouts/Paper'
import React from 'react'
import { Box, Button, Link, Tooltip, Typography } from '@mui/material'
import { Box, Button, Tooltip, Typography } from '@mui/material'
import HeaderTitle from 'components/HeaderTitle'
import { useLocalStorage } from 'react-use'
import { useSession } from 'providers/Session'
import { useGetSettingsQuery } from 'redux/otomiApi'
import Section from 'components/Section'

const classes = {
actionLink: {
display: 'block',
fontWeight: 400,
fontSize: '14px',
},
actionButton: {
mt: 1,
px: 0,
Expand Down Expand Up @@ -51,16 +46,6 @@ export default function (): React.ReactElement {
<Typography variant='h6' sx={{ fontWeight: 'bold' }}>
Actions
</Typography>
<Box sx={{ mt: 2 }}>
<Link sx={classes.actionLink} href='/api/v1/otomi/values?excludeSecrets=false'>
DOWNLOAD PLATFORM VALUES
</Link>

<Link sx={classes.actionLink} href='/api/v1/otomi/values?excludeSecrets=true'>
DOWNLOAD PLATFORM VALUES (SECRETS REDACTED)
</Link>
</Box>

{isPreInstalled && (
<Tooltip title={isObjStorageConfigured() ? 'Object storage settings are already configured.' : ''}>
<span>
Expand Down
18 changes: 0 additions & 18 deletions src/redux/otomiApi.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,6 @@
import { emptySplitApi as api } from './emptyApi'
const injectedRtkApi = api.injectEndpoints({
endpoints: (build) => ({
getValues: build.query<GetValuesApiResponse, GetValuesApiArg>({
query: (queryArg) => ({
url: `/v1/otomi/values`,
params: {
filesOnly: queryArg.filesOnly,
excludeSecrets: queryArg.excludeSecrets,
withWorkloadValues: queryArg.withWorkloadValues,
},
}),
}),
getTeams: build.query<GetTeamsApiResponse, GetTeamsApiArg>({
query: () => ({ url: `/v1/teams` }),
}),
Expand Down Expand Up @@ -577,13 +567,6 @@ const injectedRtkApi = api.injectEndpoints({
overrideExisting: false,
})
export { injectedRtkApi as otomiApi }
export type GetValuesApiResponse = unknown
export type GetValuesApiArg = {
/** IDs of settings to return */
filesOnly?: 'true' | 'false'
excludeSecrets?: 'true' | 'false'
withWorkloadValues?: 'true' | 'false'
}
export type GetTeamsApiResponse = /** status 200 Successfully obtained teams collection */ {
id?: string
name: string
Expand Down Expand Up @@ -6911,7 +6894,6 @@ export type GetApiStatusApiResponse = /** status 200 Successfully obtained API s
}
export type GetApiStatusApiArg = void
export const {
useGetValuesQuery,
useGetTeamsQuery,
useCreateTeamMutation,
useGetTeamQuery,
Expand Down