-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Feature][scaleph-ui-react] update flink job detail web (#708)
* feature: update kubernetes resource watch * feature: update kubernetes resource watch * feature: update security resource web * feature: add license header * feature: add license header * feature: add license header * feature: add license header * feature: update kubernetes resource event source * feature: add paimon dockerfile * feature: update kubernetes resource event source * feature: update oam and add mysql schema * feature: update oam and add mysql schema * feature: add oam mapper * feature: add oam model * feature: add paimon dockerfile * feature: add oam controller * feature: add oam controller * feature: add oam controller * feature: add oam definition web * feature: remove snapshot repository * feature: remove snapshot repository * fix: flink job error * feature: prepare release 2.0.3 --------- Co-authored-by: wangqi <[email protected]>
- Loading branch information
Showing
131 changed files
with
4,004 additions
and
494 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The ASF licenses this file | ||
# to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
name: Release-Docker-Paimon | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
flinkVersion: | ||
description: 'flink version' | ||
required: true | ||
default: '1.18' | ||
type: choice | ||
options: | ||
- 1.18 | ||
flinkCDCVersion: | ||
description: 'flink-cdc version' | ||
required: true | ||
default: '3.0.1' | ||
type: choice | ||
options: | ||
- 3.0.1 | ||
paimonVersion: | ||
description: 'paimon version' | ||
required: true | ||
default: '0.7.0-incubating' | ||
type: choice | ||
options: | ||
- 0.7.0-incubating | ||
env: | ||
HUB: ghcr.io/flowerfine/scaleph-paimon | ||
FLINK_VERSION: ${{ inputs.flinkVersion }} | ||
FLINK_CDC_VERSION: ${{ inputs.flinkCDCVersion }} | ||
PAIMON_VERSION: ${{ inputs.paimonVersion }} | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
packages: write | ||
timeout-minutes: 360 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 1 | ||
- name: Log in to the Container registry | ||
uses: docker/login-action@3 | ||
with: | ||
registry: ${{ env.HUB }} | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
with: | ||
platforms: amd64,arm64 | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
- name: Build image | ||
uses: docker/build-push-action@v5 | ||
with: | ||
no-cache: false | ||
cache-from: type=gha | ||
cache-to: type=gha | ||
push: true | ||
context: . | ||
build-args: | | ||
FLINK_VERSION=${{ env.FLINK_VERSION }} | ||
FLINK_CDC_VERSION=${{ env.FLINK_CDC_VERSION }} | ||
PAIMON_VERSION=${{ env.PAIMON_VERSION }} | ||
platforms: linux/amd64,linux/arm64 | ||
file: tools/docker/build/scaleph-paimon/Dockerfile | ||
tags: ${{ env.HUB }}:${{ env.PAIMON_VERSION }}-flink-${{ env.FLINK_VERSION }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
80 changes: 80 additions & 0 deletions
80
scaleph-api/src/main/java/cn/sliew/scaleph/api/controller/oam/OamDefinitionController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The ASF licenses this file | ||
* to you under the Apache License, Version 2.0 (the | ||
* "License"); you may not use this file except in compliance | ||
* with the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package cn.sliew.scaleph.api.controller.oam; | ||
|
||
import cn.sliew.scaleph.api.annotation.Logging; | ||
import cn.sliew.scaleph.application.oam.model.definition.ComponentDefinition; | ||
import cn.sliew.scaleph.application.oam.model.definition.PolicyDefinition; | ||
import cn.sliew.scaleph.application.oam.model.definition.TraitDefinition; | ||
import cn.sliew.scaleph.application.oam.service.OamComponentDefinitionService; | ||
import cn.sliew.scaleph.application.oam.service.OamPolicyDefinitionService; | ||
import cn.sliew.scaleph.application.oam.service.OamTraitDefinitionService; | ||
import cn.sliew.scaleph.application.oam.service.OamWorkloadDefinitionService; | ||
import cn.sliew.scaleph.system.model.PaginationParam; | ||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; | ||
import io.swagger.v3.oas.annotations.Operation; | ||
import io.swagger.v3.oas.annotations.tags.Tag; | ||
import org.springframework.beans.factory.annotation.Autowired; | ||
import org.springframework.http.HttpStatus; | ||
import org.springframework.http.ResponseEntity; | ||
import org.springframework.web.bind.annotation.GetMapping; | ||
import org.springframework.web.bind.annotation.RequestMapping; | ||
import org.springframework.web.bind.annotation.RestController; | ||
|
||
import javax.validation.Valid; | ||
|
||
@Tag(name = "OAM管理-Definition管理") | ||
@RestController | ||
@RequestMapping(path = "/api/oam/definition") | ||
public class OamDefinitionController { | ||
|
||
@Autowired | ||
private OamComponentDefinitionService oamComponentDefinitionService; | ||
@Autowired | ||
private OamPolicyDefinitionService oamPolicyDefinitionService; | ||
@Autowired | ||
private OamTraitDefinitionService oamTraitDefinitionService; | ||
@Autowired | ||
private OamWorkloadDefinitionService oamWorkloadDefinitionService; | ||
|
||
@Logging | ||
@GetMapping("components") | ||
@Operation(summary = "查询 ComponentDefinition 列表", description = "查询 ComponentDefinition 列表") | ||
public ResponseEntity<Page<ComponentDefinition>> listComponents(@Valid PaginationParam param) { | ||
Page<ComponentDefinition> result = oamComponentDefinitionService.listByPage(param); | ||
return new ResponseEntity<>(result, HttpStatus.OK); | ||
} | ||
|
||
@Logging | ||
@GetMapping("policies") | ||
@Operation(summary = "查询 PolicyDefinition 列表", description = "查询 PolicyDefinition 列表") | ||
public ResponseEntity<Page<PolicyDefinition>> listPolicies(@Valid PaginationParam param) { | ||
Page<PolicyDefinition> result = oamPolicyDefinitionService.listByPage(param); | ||
return new ResponseEntity<>(result, HttpStatus.OK); | ||
} | ||
|
||
|
||
@Logging | ||
@GetMapping("traits") | ||
@Operation(summary = "查询 TraitDefinition 列表", description = "查询 TraitDefinition 列表") | ||
public ResponseEntity<Page<TraitDefinition>> listTraits(@Valid PaginationParam param) { | ||
Page<TraitDefinition> result = oamTraitDefinitionService.listByPage(param); | ||
return new ResponseEntity<>(result, HttpStatus.OK); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.