Skip to content

Commit bf89f09

Browse files
authored
Removing Operator UI (#2692)
Signed-off-by: Daniel Valdivia <18384552+dvaldivia@users.noreply.github.com>
1 parent b8e14ee commit bf89f09

File tree

588 files changed

+143
-114607
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

588 files changed

+143
-114607
lines changed

.github/workflows/jobs.yaml

Lines changed: 1 addition & 260 deletions
Original file line numberDiff line numberDiff line change
@@ -717,154 +717,6 @@ jobs:
717717
run: |
718718
make cleanup-permissions
719719
720-
all-operator-tests-1:
721-
name: Operator UI Tests Part 1
722-
needs:
723-
- compile-binary
724-
runs-on: ${{ matrix.os }}
725-
strategy:
726-
matrix:
727-
go-version: [ 1.19.x ]
728-
os: [ ubuntu-latest ]
729-
steps:
730-
- name: Check out code
731-
uses: actions/checkout@v3
732-
- uses: actions/setup-node@v3
733-
with:
734-
node-version: ${{ env.NVMRC }}
735-
- name: Install MinIO JS
736-
working-directory: ./
737-
continue-on-error: false
738-
run: |
739-
yarn add minio
740-
# To build operator image, we need to clone the repository first
741-
- name: clone https://github.com/minio/operator
742-
uses: actions/checkout@master
743-
with:
744-
745-
# Repository name with owner. For example, actions/checkout
746-
# Default: ${{ github.repository }}
747-
repository: minio/operator
748-
749-
# Relative path under $GITHUB_WORKSPACE to place the repository
750-
# To have two repositories under the same test
751-
path: 'operator_repository'
752-
753-
- uses: actions/cache@v3
754-
name: Console Binary Cache
755-
with:
756-
path: |
757-
./console
758-
key: ${{ runner.os }}-binary-${{ github.run_id }}
759-
760-
# Runs a set of commands using the runners shell
761-
- name: Start Kind for Operator UI
762-
run: |
763-
"${GITHUB_WORKSPACE}/portal-ui/tests/scripts/operator.sh"
764-
765-
- name: Run TestCafe Tests
766-
uses: DevExpress/testcafe-action@latest
767-
with:
768-
args: '"chrome:headless" portal-ui/tests/operator/login --skip-js-errors -c 3'
769-
all-operator-tests-2:
770-
name: Operator UI Tests Part 2
771-
needs:
772-
- compile-binary
773-
runs-on: ${{ matrix.os }}
774-
strategy:
775-
matrix:
776-
go-version: [ 1.19.x ]
777-
os: [ ubuntu-latest ]
778-
steps:
779-
- name: Check out code
780-
uses: actions/checkout@v3
781-
- uses: actions/setup-node@v3
782-
with:
783-
node-version: ${{ env.NVMRC }}
784-
- name: Install MinIO JS
785-
working-directory: ./
786-
continue-on-error: false
787-
run: |
788-
yarn add minio
789-
# To build operator image, we need to clone the repository first
790-
- name: clone https://github.com/minio/operator
791-
uses: actions/checkout@master
792-
with:
793-
794-
# Repository name with owner. For example, actions/checkout
795-
# Default: ${{ github.repository }}
796-
repository: minio/operator
797-
798-
# Relative path under $GITHUB_WORKSPACE to place the repository
799-
# To have two repositories under the same test
800-
path: 'operator_repository'
801-
802-
- uses: actions/cache@v3
803-
name: Console Binary Cache
804-
with:
805-
path: |
806-
./console
807-
key: ${{ runner.os }}-binary-${{ github.run_id }}
808-
809-
# Runs a set of commands using the runners shell
810-
- name: Start Kind for Operator UI
811-
run: |
812-
"${GITHUB_WORKSPACE}/portal-ui/tests/scripts/operator.sh"
813-
814-
- name: Run TestCafe Tests
815-
uses: DevExpress/testcafe-action@latest
816-
with:
817-
args: '"chrome:headless" portal-ui/tests/operator/tenant/test-1 --skip-js-errors -c 3'
818-
all-operator-tests-3:
819-
name: Operator UI Tests Part 3
820-
needs:
821-
- compile-binary
822-
runs-on: ${{ matrix.os }}
823-
strategy:
824-
matrix:
825-
go-version: [ 1.19.x ]
826-
os: [ ubuntu-latest ]
827-
steps:
828-
- name: Check out code
829-
uses: actions/checkout@v3
830-
- uses: actions/setup-node@v3
831-
with:
832-
node-version: ${{ env.NVMRC }}
833-
- name: Install MinIO JS
834-
working-directory: ./
835-
continue-on-error: false
836-
run: |
837-
yarn add minio
838-
# To build operator image, we need to clone the repository first
839-
- name: clone https://github.com/minio/operator
840-
uses: actions/checkout@master
841-
with:
842-
843-
# Repository name with owner. For example, actions/checkout
844-
# Default: ${{ github.repository }}
845-
repository: minio/operator
846-
847-
# Relative path under $GITHUB_WORKSPACE to place the repository
848-
# To have two repositories under the same test
849-
path: 'operator_repository'
850-
851-
- uses: actions/cache@v3
852-
name: Console Binary Cache
853-
with:
854-
path: |
855-
./console
856-
key: ${{ runner.os }}-binary-${{ github.run_id }}
857-
858-
# Runs a set of commands using the runners shell
859-
- name: Start Kind for Operator UI
860-
run: |
861-
"${GITHUB_WORKSPACE}/portal-ui/tests/scripts/operator.sh"
862-
863-
- name: Run TestCafe Tests
864-
uses: DevExpress/testcafe-action@latest
865-
with:
866-
args: '"chrome:headless" portal-ui/tests/operator/tenant/test-2 --skip-js-errors -c 3'
867-
868720
cross-compile-1:
869721
name: Cross compile
870722
needs:
@@ -1094,44 +946,6 @@ jobs:
1094946
path: |
1095947
./restapi/coverage/
1096948
key: ${{ runner.os }}-coverage-restapi-2-${{ github.run_id }}
1097-
test-operatorapi-on-go:
1098-
name: Test Operatorapi on Go ${{ matrix.go-version }} and ${{ matrix.os }}
1099-
needs:
1100-
- lint-job
1101-
- ui-assets
1102-
- reuse-golang-dependencies
1103-
- semgrep-static-code-analysis
1104-
runs-on: ${{ matrix.os }}
1105-
strategy:
1106-
matrix:
1107-
go-version: [ 1.19.x ]
1108-
os: [ ubuntu-latest ]
1109-
steps:
1110-
- name: Check out code
1111-
uses: actions/checkout@v3
1112-
1113-
- name: Set up Go ${{ matrix.go-version }} on ${{ matrix.os }}
1114-
uses: actions/setup-go@v3
1115-
with:
1116-
go-version: ${{ matrix.go-version }}
1117-
cache: true
1118-
id: go
1119-
1120-
1121-
- name: Build on ${{ matrix.os }}
1122-
env:
1123-
GO111MODULE: on
1124-
GOOS: linux
1125-
run: |
1126-
make test-unit-test-operator
1127-
1128-
- uses: actions/cache@v3
1129-
id: coverage-cache-unittest-operatorapi
1130-
name: Coverage Cache unit test operatorAPI
1131-
with:
1132-
path: |
1133-
./operatorapi/coverage/
1134-
key: ${{ runner.os }}-coverage-unittest-operatorapi-2-${{ github.run_id }}
1135949
b-integration-tests:
1136950
name: Integration Tests with Latest Distributed MinIO
1137951
needs:
@@ -1351,68 +1165,11 @@ jobs:
13511165
path: |
13521166
./sso-integration/coverage/
13531167
key: ${{ runner.os }}-sso-coverage-2-${{ github.run_id }}
1354-
c-operator-api-tests:
1355-
1356-
name: Operator API Tests
1357-
needs:
1358-
- lint-job
1359-
- ui-assets
1360-
- reuse-golang-dependencies
1361-
- semgrep-static-code-analysis
1362-
runs-on: ubuntu-latest
1363-
1364-
strategy:
1365-
matrix:
1366-
go-version: [ 1.19.x ]
1367-
1368-
steps:
1369-
1370-
- uses: actions/checkout@v3
1371-
1372-
- name: Set up Go ${{ matrix.go-version }} on ${{ matrix.os }}
1373-
uses: actions/setup-go@v3
1374-
with:
1375-
go-version: ${{ matrix.go-version }}
1376-
cache: true
1377-
id: go
1378-
1379-
# To build operator image, we need to clone the repository first
1380-
- name: clone https://github.com/minio/operator
1381-
uses: actions/checkout@master
1382-
with:
1383-
1384-
# Repository name with owner. For example, actions/checkout
1385-
# Default: ${{ github.repository }}
1386-
repository: minio/operator
1387-
1388-
# Relative path under $GITHUB_WORKSPACE to place the repository
1389-
# To have two repositories under the same test
1390-
path: 'operator_repository'
1391-
1392-
1393-
- name: Operator API Tests
1394-
run: |
1395-
curl -sLO "https://dl.k8s.io/release/v1.23.1/bin/linux/amd64/kubectl" -o kubectl
1396-
chmod +x kubectl
1397-
mv kubectl /usr/local/bin
1398-
"${GITHUB_WORKSPACE}/tests/deploy-tenant.sh"
1399-
echo "start ---> make test-operator-integration";
1400-
make test-operator-integration;
1401-
1402-
- uses: actions/cache@v3
1403-
id: coverage-cache-operator
1404-
name: Coverage Cache Operator
1405-
with:
1406-
path: |
1407-
./operator-integration/coverage/
1408-
key: ${{ runner.os }}-coverage-2-operator-${{ github.run_id }}
14091168
coverage:
14101169
name: "Coverage Limit Check"
14111170
needs:
14121171
- b-integration-tests
14131172
- test-restapi-on-go
1414-
- test-operatorapi-on-go
1415-
- c-operator-api-tests
14161173
- test-pkg-on-go
14171174
- sso-integration
14181175
- replication
@@ -1460,14 +1217,6 @@ jobs:
14601217
./replication/coverage/
14611218
key: ${{ runner.os }}-replication-coverage-2-${{ github.run_id }}
14621219

1463-
- uses: actions/cache@v3
1464-
id: coverage-cache-operator
1465-
name: Coverage Cache Operator
1466-
with:
1467-
path: |
1468-
./operator-integration/coverage/
1469-
key: ${{ runner.os }}-coverage-2-operator-${{ github.run_id }}
1470-
14711220
- uses: actions/cache@v3
14721221
id: coverage-cache-restapi
14731222
name: Coverage Cache RestAPI
@@ -1476,14 +1225,6 @@ jobs:
14761225
./restapi/coverage/
14771226
key: ${{ runner.os }}-coverage-restapi-2-${{ github.run_id }}
14781227

1479-
- uses: actions/cache@v3
1480-
id: coverage-cache-unittest-operatorapi
1481-
name: Coverage Cache unit test operatorAPI
1482-
with:
1483-
path: |
1484-
./operatorapi/coverage/
1485-
key: ${{ runner.os }}-coverage-unittest-operatorapi-2-${{ github.run_id }}
1486-
14871228
- uses: actions/cache@v3
14881229
id: coverage-cache-pkg
14891230
name: Coverage Cache Pkg
@@ -1509,7 +1250,7 @@ jobs:
15091250
echo "go build gocoverage.go"
15101251
go build gocovmerge.go
15111252
echo "put together the outs for final coverage resolution"
1512-
./gocovmerge ../integration/coverage/system.out ../replication/coverage/replication.out ../sso-integration/coverage/sso-system.out ../restapi/coverage/coverage.out ../pkg/coverage/coverage-pkg.out ../operator-integration/coverage/operator-api.out ../operatorapi/coverage/coverage-unit-test-operatorapi.out > all.out
1253+
./gocovmerge ../integration/coverage/system.out ../replication/coverage/replication.out ../sso-integration/coverage/sso-system.out ../restapi/coverage/coverage.out ../pkg/coverage/coverage-pkg.out > all.out
15131254
echo "Download mc for Ubuntu"
15141255
wget -q https://dl.min.io/client/mc/release/linux-amd64/mc
15151256
echo "Change the permissions to execute mc command"

0 commit comments

Comments
 (0)