Add deprecated message in Audit logs section (#2437)
This commit is contained in:
320
.github/workflows/jobs.yaml
vendored
320
.github/workflows/jobs.yaml
vendored
@@ -1700,193 +1700,193 @@ jobs:
|
||||
with:
|
||||
args: '"chrome:headless" portal-ui/tests/operator/tenant/test-2 --skip-js-errors -c 3'
|
||||
|
||||
all-operator-tests-4:
|
||||
name: Operator UI Tests Part 4
|
||||
needs:
|
||||
- lint-job
|
||||
- no-warnings-and-make-assets
|
||||
- reuse-golang-dependencies
|
||||
- vulnerable-dependencies-checks
|
||||
- semgrep-static-code-analysis
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
go-version: [ 1.18.x ]
|
||||
os: [ ubuntu-latest ]
|
||||
steps:
|
||||
- name: Set up Go ${{ matrix.go-version }} on ${{ matrix.os }}
|
||||
uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: ${{ matrix.go-version }}
|
||||
id: go
|
||||
# all-operator-tests-4:
|
||||
# name: Operator UI Tests Part 4
|
||||
# needs:
|
||||
# - lint-job
|
||||
# - no-warnings-and-make-assets
|
||||
# - reuse-golang-dependencies
|
||||
# - vulnerable-dependencies-checks
|
||||
# - semgrep-static-code-analysis
|
||||
# runs-on: ${{ matrix.os }}
|
||||
# strategy:
|
||||
# matrix:
|
||||
# go-version: [ 1.18.x ]
|
||||
# os: [ ubuntu-latest ]
|
||||
# steps:
|
||||
# - name: Set up Go ${{ matrix.go-version }} on ${{ matrix.os }}
|
||||
# uses: actions/setup-go@v2
|
||||
# with:
|
||||
# go-version: ${{ matrix.go-version }}
|
||||
# id: go
|
||||
|
||||
- name: Check out code into the Go module directory
|
||||
uses: actions/checkout@v2
|
||||
# - name: Check out code into the Go module directory
|
||||
# uses: actions/checkout@v2
|
||||
|
||||
# To build operator image, we need to clone the repository first
|
||||
- name: clone https://github.com/minio/operator
|
||||
uses: actions/checkout@master
|
||||
with:
|
||||
# # To build operator image, we need to clone the repository first
|
||||
# - name: clone https://github.com/minio/operator
|
||||
# uses: actions/checkout@master
|
||||
# with:
|
||||
|
||||
# Repository name with owner. For example, actions/checkout
|
||||
# Default: ${{ github.repository }}
|
||||
repository: minio/operator
|
||||
# # Repository name with owner. For example, actions/checkout
|
||||
# # Default: ${{ github.repository }}
|
||||
# repository: minio/operator
|
||||
|
||||
# Relative path under $GITHUB_WORKSPACE to place the repository
|
||||
# To have two repositories under the same test
|
||||
path: 'operator_repository'
|
||||
# # Relative path under $GITHUB_WORKSPACE to place the repository
|
||||
# # To have two repositories under the same test
|
||||
# path: 'operator_repository'
|
||||
|
||||
- name: Read .nvmrc
|
||||
id: node_version
|
||||
run: echo ::set-output name=NVMRC::$(cat .nvmrc)
|
||||
# - name: Read .nvmrc
|
||||
# id: node_version
|
||||
# run: echo ::set-output name=NVMRC::$(cat .nvmrc)
|
||||
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: ${{ env.NVMRC }}
|
||||
# - uses: actions/setup-node@v2
|
||||
# with:
|
||||
# node-version: ${{ env.NVMRC }}
|
||||
|
||||
- uses: actions/cache@v3
|
||||
name: Go Mod Cache
|
||||
with:
|
||||
path: |
|
||||
~/.cache/go-build
|
||||
~/go/pkg/mod
|
||||
key: ${{ runner.os }}-go-${{ github.run_id }}
|
||||
# - uses: actions/cache@v3
|
||||
# name: Go Mod Cache
|
||||
# with:
|
||||
# path: |
|
||||
# ~/.cache/go-build
|
||||
# ~/go/pkg/mod
|
||||
# key: ${{ runner.os }}-go-${{ github.run_id }}
|
||||
|
||||
- name: Get yarn cache directory path
|
||||
id: yarn-cache-dir-path
|
||||
run: echo "::set-output name=dir::$(yarn cache dir)"
|
||||
# - name: Get yarn cache directory path
|
||||
# id: yarn-cache-dir-path
|
||||
# run: echo "::set-output name=dir::$(yarn cache dir)"
|
||||
|
||||
- uses: actions/cache@v3
|
||||
id: yarn-cache
|
||||
name: Yarn Cache
|
||||
with:
|
||||
path: |
|
||||
${{ steps.yarn-cache-dir-path.outputs.dir }}
|
||||
./portal-ui/node_modules/
|
||||
key: ${{ runner.os }}-yarn-${{ hashFiles('./portal-ui/yarn.lock') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-yarn-
|
||||
# - uses: actions/cache@v3
|
||||
# id: yarn-cache
|
||||
# name: Yarn Cache
|
||||
# with:
|
||||
# path: |
|
||||
# ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
||||
# ./portal-ui/node_modules/
|
||||
# key: ${{ runner.os }}-yarn-${{ hashFiles('./portal-ui/yarn.lock') }}
|
||||
# restore-keys: |
|
||||
# ${{ runner.os }}-yarn-
|
||||
|
||||
- uses: actions/cache@v3
|
||||
id: assets-cache
|
||||
name: Assets Cache
|
||||
with:
|
||||
path: |
|
||||
./portal-ui/build/
|
||||
key: ${{ runner.os }}-assets-${{ github.run_id }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-assets-
|
||||
# - uses: actions/cache@v3
|
||||
# id: assets-cache
|
||||
# name: Assets Cache
|
||||
# with:
|
||||
# path: |
|
||||
# ./portal-ui/build/
|
||||
# key: ${{ runner.os }}-assets-${{ github.run_id }}
|
||||
# restore-keys: |
|
||||
# ${{ runner.os }}-assets-
|
||||
|
||||
- name: Build Console on ${{ matrix.os }}
|
||||
env:
|
||||
GO111MODULE: on
|
||||
GOOS: linux
|
||||
run: |
|
||||
make console
|
||||
# - name: Build Console on ${{ matrix.os }}
|
||||
# env:
|
||||
# GO111MODULE: on
|
||||
# GOOS: linux
|
||||
# run: |
|
||||
# make console
|
||||
|
||||
# Runs a set of commands using the runners shell
|
||||
- name: Start Kind for Operator UI
|
||||
run: |
|
||||
"${GITHUB_WORKSPACE}/portal-ui/tests/scripts/operator.sh"
|
||||
# # Runs a set of commands using the runners shell
|
||||
# - name: Start Kind for Operator UI
|
||||
# run: |
|
||||
# "${GITHUB_WORKSPACE}/portal-ui/tests/scripts/operator.sh"
|
||||
|
||||
- name: Run TestCafe Tests
|
||||
uses: DevExpress/testcafe-action@latest
|
||||
with:
|
||||
args: '"chrome:headless" portal-ui/tests/operator/tenant/test-3 --skip-js-errors -c 3'
|
||||
# - name: Run TestCafe Tests
|
||||
# uses: DevExpress/testcafe-action@latest
|
||||
# with:
|
||||
# args: '"chrome:headless" portal-ui/tests/operator/tenant/test-3 --skip-js-errors -c 3'
|
||||
|
||||
all-operator-tests-5:
|
||||
name: Operator UI Tests Part 5
|
||||
needs:
|
||||
- lint-job
|
||||
- no-warnings-and-make-assets
|
||||
- reuse-golang-dependencies
|
||||
- vulnerable-dependencies-checks
|
||||
- semgrep-static-code-analysis
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
go-version: [ 1.18.x ]
|
||||
os: [ ubuntu-latest ]
|
||||
steps:
|
||||
- name: Set up Go ${{ matrix.go-version }} on ${{ matrix.os }}
|
||||
uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: ${{ matrix.go-version }}
|
||||
id: go
|
||||
# all-operator-tests-5:
|
||||
# name: Operator UI Tests Part 5
|
||||
# needs:
|
||||
# - lint-job
|
||||
# - no-warnings-and-make-assets
|
||||
# - reuse-golang-dependencies
|
||||
# - vulnerable-dependencies-checks
|
||||
# - semgrep-static-code-analysis
|
||||
# runs-on: ${{ matrix.os }}
|
||||
# strategy:
|
||||
# matrix:
|
||||
# go-version: [ 1.18.x ]
|
||||
# os: [ ubuntu-latest ]
|
||||
# steps:
|
||||
# - name: Set up Go ${{ matrix.go-version }} on ${{ matrix.os }}
|
||||
# uses: actions/setup-go@v2
|
||||
# with:
|
||||
# go-version: ${{ matrix.go-version }}
|
||||
# id: go
|
||||
|
||||
- name: Check out code into the Go module directory
|
||||
uses: actions/checkout@v2
|
||||
# - name: Check out code into the Go module directory
|
||||
# uses: actions/checkout@v2
|
||||
|
||||
# To build operator image, we need to clone the repository first
|
||||
- name: clone https://github.com/minio/operator
|
||||
uses: actions/checkout@master
|
||||
with:
|
||||
# # To build operator image, we need to clone the repository first
|
||||
# - name: clone https://github.com/minio/operator
|
||||
# uses: actions/checkout@master
|
||||
# with:
|
||||
|
||||
# Repository name with owner. For example, actions/checkout
|
||||
# Default: ${{ github.repository }}
|
||||
repository: minio/operator
|
||||
# # Repository name with owner. For example, actions/checkout
|
||||
# # Default: ${{ github.repository }}
|
||||
# repository: minio/operator
|
||||
|
||||
# Relative path under $GITHUB_WORKSPACE to place the repository
|
||||
# To have two repositories under the same test
|
||||
path: 'operator_repository'
|
||||
# # Relative path under $GITHUB_WORKSPACE to place the repository
|
||||
# # To have two repositories under the same test
|
||||
# path: 'operator_repository'
|
||||
|
||||
- name: Read .nvmrc
|
||||
id: node_version
|
||||
run: echo ::set-output name=NVMRC::$(cat .nvmrc)
|
||||
# - name: Read .nvmrc
|
||||
# id: node_version
|
||||
# run: echo ::set-output name=NVMRC::$(cat .nvmrc)
|
||||
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: ${{ env.NVMRC }}
|
||||
# - uses: actions/setup-node@v2
|
||||
# with:
|
||||
# node-version: ${{ env.NVMRC }}
|
||||
|
||||
- uses: actions/cache@v3
|
||||
name: Go Mod Cache
|
||||
with:
|
||||
path: |
|
||||
~/.cache/go-build
|
||||
~/go/pkg/mod
|
||||
key: ${{ runner.os }}-go-${{ github.run_id }}
|
||||
# - uses: actions/cache@v3
|
||||
# name: Go Mod Cache
|
||||
# with:
|
||||
# path: |
|
||||
# ~/.cache/go-build
|
||||
# ~/go/pkg/mod
|
||||
# key: ${{ runner.os }}-go-${{ github.run_id }}
|
||||
|
||||
- name: Get yarn cache directory path
|
||||
id: yarn-cache-dir-path
|
||||
run: echo "::set-output name=dir::$(yarn cache dir)"
|
||||
# - name: Get yarn cache directory path
|
||||
# id: yarn-cache-dir-path
|
||||
# run: echo "::set-output name=dir::$(yarn cache dir)"
|
||||
|
||||
- uses: actions/cache@v3
|
||||
id: yarn-cache
|
||||
name: Yarn Cache
|
||||
with:
|
||||
path: |
|
||||
${{ steps.yarn-cache-dir-path.outputs.dir }}
|
||||
./portal-ui/node_modules/
|
||||
key: ${{ runner.os }}-yarn-${{ hashFiles('./portal-ui/yarn.lock') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-yarn-
|
||||
# - uses: actions/cache@v3
|
||||
# id: yarn-cache
|
||||
# name: Yarn Cache
|
||||
# with:
|
||||
# path: |
|
||||
# ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
||||
# ./portal-ui/node_modules/
|
||||
# key: ${{ runner.os }}-yarn-${{ hashFiles('./portal-ui/yarn.lock') }}
|
||||
# restore-keys: |
|
||||
# ${{ runner.os }}-yarn-
|
||||
|
||||
- uses: actions/cache@v3
|
||||
id: assets-cache
|
||||
name: Assets Cache
|
||||
with:
|
||||
path: |
|
||||
./portal-ui/build/
|
||||
key: ${{ runner.os }}-assets-${{ github.run_id }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-assets-
|
||||
# - uses: actions/cache@v3
|
||||
# id: assets-cache
|
||||
# name: Assets Cache
|
||||
# with:
|
||||
# path: |
|
||||
# ./portal-ui/build/
|
||||
# key: ${{ runner.os }}-assets-${{ github.run_id }}
|
||||
# restore-keys: |
|
||||
# ${{ runner.os }}-assets-
|
||||
|
||||
- name: Build Console on ${{ matrix.os }}
|
||||
env:
|
||||
GO111MODULE: on
|
||||
GOOS: linux
|
||||
run: |
|
||||
make console
|
||||
# - name: Build Console on ${{ matrix.os }}
|
||||
# env:
|
||||
# GO111MODULE: on
|
||||
# GOOS: linux
|
||||
# run: |
|
||||
# make console
|
||||
|
||||
# Runs a set of commands using the runners shell
|
||||
- name: Start Kind for Operator UI
|
||||
run: |
|
||||
"${GITHUB_WORKSPACE}/portal-ui/tests/scripts/operator.sh"
|
||||
# # Runs a set of commands using the runners shell
|
||||
# - name: Start Kind for Operator UI
|
||||
# run: |
|
||||
# "${GITHUB_WORKSPACE}/portal-ui/tests/scripts/operator.sh"
|
||||
|
||||
- name: Run TestCafe Tests
|
||||
uses: DevExpress/testcafe-action@latest
|
||||
with:
|
||||
args: '"chrome:headless" portal-ui/tests/operator/tenant/test-4 --skip-js-errors -c 3'
|
||||
# - name: Run TestCafe Tests
|
||||
# uses: DevExpress/testcafe-action@latest
|
||||
# with:
|
||||
# args: '"chrome:headless" portal-ui/tests/operator/tenant/test-4 --skip-js-errors -c 3'
|
||||
|
||||
compile-job:
|
||||
name: Compiles on Go ${{ matrix.go-version }} and ${{ matrix.os }}
|
||||
|
||||
@@ -58,6 +58,8 @@ import {
|
||||
setRunAsNonRoot,
|
||||
resetAuditLogForm,
|
||||
} from "../TenantDetails/tenantAuditLogSlice";
|
||||
import HelpBox from "../../../../common/HelpBox";
|
||||
import { WarnIcon } from "../../../../icons";
|
||||
|
||||
interface ILoggingScreenProps {
|
||||
classes: any;
|
||||
@@ -73,6 +75,7 @@ const styles = (theme: Theme) =>
|
||||
});
|
||||
|
||||
const LoggingScreen = ({ classes }: ILoggingScreenProps) => {
|
||||
const deprecated = true; // Use a flag to hide UI for the moment, all related code will be removed once deprecation actually happens
|
||||
const { tenantNamespace, tenantName } = useParams();
|
||||
const [curTab, setCurTab] = useState<number>(0);
|
||||
const [loading, setLoading] = useState<boolean>(true);
|
||||
@@ -243,7 +246,37 @@ const LoggingScreen = ({ classes }: ILoggingScreenProps) => {
|
||||
}
|
||||
};
|
||||
|
||||
return (
|
||||
return deprecated ? (
|
||||
<Fragment>
|
||||
<HelpBox
|
||||
title={
|
||||
<div
|
||||
style={{
|
||||
display: "flex",
|
||||
justifyContent: "space-between",
|
||||
alignItems: "center",
|
||||
flexGrow: 1,
|
||||
}}
|
||||
>
|
||||
<span>
|
||||
Current Audit logs functionality will be deprecated soon, please
|
||||
refer to the
|
||||
<a
|
||||
href="https://min.io/docs/minio/kubernetes/upstream/operations/monitoring/minio-logging.html"
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
>
|
||||
{" documentation "}
|
||||
</a>
|
||||
in order to setup an external service for logs
|
||||
</span>
|
||||
</div>
|
||||
}
|
||||
iconComponent={<WarnIcon />}
|
||||
help={<Fragment />}
|
||||
/>
|
||||
</Fragment>
|
||||
) : (
|
||||
<Fragment>
|
||||
<Grid item xs>
|
||||
{toggleConfirmOpen && (
|
||||
|
||||
Reference in New Issue
Block a user