Skip to content

Commit eff58e2

Browse files
author
Your Name
committed
Add Notation to UpdateDatasetStatus in pkg/ddc/goosefs/api_gateway.go.
Signed-off-by: Your Name <you@example.com>
1 parent c5368c7 commit eff58e2

File tree

6,187 files changed

+1992389
-1992383
lines changed

Some content is hidden

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

6,187 files changed

+1992389
-1992383
lines changed

.circleci/config.yml

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
1-
# Golang CircleCI 2.1 configuration file
2-
#
3-
# Check https://circleci.com/docs/2.1/language-go/ for more details
4-
version: 2.1
5-
jobs:
6-
build:
7-
docker:
8-
# specify the version
9-
- image: cimg/go:1.23.7
10-
working_directory: ~/project/src/github.com/fluid-cloudnative/fluid
11-
environment:
12-
TEST_FLAGS: '-race -coverprofile=coverage.txt -covermode=atomic'
13-
steps:
14-
- checkout
15-
- setup_remote_docker:
16-
docker_layer_caching: false
17-
- run:
18-
name: run tests
19-
command: |
20-
test -z "$(go fmt ./... 2>/dev/null | tee /dev/stderr)" || (echo "please format Go code with 'gofmt'")
21-
go vet ./...
22-
- run: docker build --build-arg TARGETARCH=amd64 --build-arg HELM_VERSION=helm-v3.11.3 . -f docker/Dockerfile.dataset -t dataset-controller:${CIRCLE_BUILD_NUM}
23-
- run: docker build --build-arg TARGETARCH=amd64 --build-arg HELM_VERSION=helm-v3.11.3 . -f docker/Dockerfile.alluxioruntime -t alluxioruntime-controller:${CIRCLE_BUILD_NUM}
24-
- run: docker build --build-arg TARGETARCH=amd64 --build-arg HELM_VERSION=helm-v3.11.3 . -f docker/Dockerfile.csi -t fluid-csi:${CIRCLE_BUILD_NUM}
25-
26-
# maybe later we need to upload output to helm repository
1+
# Golang CircleCI 2.1 configuration file
2+
#
3+
# Check https://circleci.com/docs/2.1/language-go/ for more details
4+
version: 2.1
5+
jobs:
6+
build:
7+
docker:
8+
# specify the version
9+
- image: cimg/go:1.23.7
10+
working_directory: ~/project/src/github.com/fluid-cloudnative/fluid
11+
environment:
12+
TEST_FLAGS: '-race -coverprofile=coverage.txt -covermode=atomic'
13+
steps:
14+
- checkout
15+
- setup_remote_docker:
16+
docker_layer_caching: false
17+
- run:
18+
name: run tests
19+
command: |
20+
test -z "$(go fmt ./... 2>/dev/null | tee /dev/stderr)" || (echo "please format Go code with 'gofmt'")
21+
go vet ./...
22+
- run: docker build --build-arg TARGETARCH=amd64 --build-arg HELM_VERSION=helm-v3.11.3 . -f docker/Dockerfile.dataset -t dataset-controller:${CIRCLE_BUILD_NUM}
23+
- run: docker build --build-arg TARGETARCH=amd64 --build-arg HELM_VERSION=helm-v3.11.3 . -f docker/Dockerfile.alluxioruntime -t alluxioruntime-controller:${CIRCLE_BUILD_NUM}
24+
- run: docker build --build-arg TARGETARCH=amd64 --build-arg HELM_VERSION=helm-v3.11.3 . -f docker/Dockerfile.csi -t fluid-csi:${CIRCLE_BUILD_NUM}
25+
26+
# maybe later we need to upload output to helm repository

.github/ISSUE_TEMPLATE/bug-report.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
---
2-
name: Bug Report
3-
about: Report a bug to help us improve
4-
title: '[BUG]'
5-
labels: bug
6-
assignees: ''
7-
8-
---
9-
10-
**What is your environment(Kubernetes version, Fluid version, etc.)**
11-
12-
**Describe the bug**
13-
14-
**What you expect to happen:**
15-
16-
**How to reproduce it**
17-
18-
**Additional Information**
1+
---
2+
name: Bug Report
3+
about: Report a bug to help us improve
4+
title: '[BUG]'
5+
labels: bug
6+
assignees: ''
7+
8+
---
9+
10+
**What is your environment(Kubernetes version, Fluid version, etc.)**
11+
12+
**Describe the bug**
13+
14+
**What you expect to happen:**
15+
16+
**How to reproduce it**
17+
18+
**Additional Information**

.github/ISSUE_TEMPLATE/docs-defect.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
---
2-
name: Document Defect
3-
about: Report a documentation defect
4-
title: '[DOC]'
5-
labels: documentation
6-
assignees: ''
7-
8-
---
9-
10-
**Provide a link to that doc page:**
11-
1+
---
2+
name: Document Defect
3+
about: Report a documentation defect
4+
title: '[DOC]'
5+
labels: documentation
6+
assignees: ''
7+
8+
---
9+
10+
**Provide a link to that doc page:**
11+
1212
**What is the defect and your suggestions on improvement:**
Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
---
2-
name: Feature Request
3-
about: Suggest an idea for this project
4-
title: '[FEATURES]'
5-
labels: features
6-
assignees: ''
7-
8-
---
9-
10-
**What feature you'd like to add:**
11-
1+
---
2+
name: Feature Request
3+
about: Suggest an idea for this project
4+
title: '[FEATURES]'
5+
labels: features
6+
assignees: ''
7+
8+
---
9+
10+
**What feature you'd like to add:**
11+
1212
**Why is this feature needed:**

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
<!--
2-
Please make sure you have read and understood the contributing guidelines;
3-
https://github.com/fluid-cloudnative/fluid/blob/master/CONTRIBUTING.md-->
4-
5-
### Ⅰ. Describe what this PR does
6-
7-
8-
### Ⅱ. Does this pull request fix one issue?
9-
<!--If so, add "fixes #xxxx" so that the issue will be closed when this PR is merged (for example, "fixes #15" to close Issue #15). Otherwise, add "NONE" -->
10-
fixes #XXXX
11-
12-
### Ⅲ. List the added test cases (unit test/integration test) if any, please explain if no tests are needed.
13-
14-
15-
### Ⅳ. Describe how to verify it
16-
17-
1+
<!--
2+
Please make sure you have read and understood the contributing guidelines;
3+
https://github.com/fluid-cloudnative/fluid/blob/master/CONTRIBUTING.md-->
4+
5+
### Ⅰ. Describe what this PR does
6+
7+
8+
### Ⅱ. Does this pull request fix one issue?
9+
<!--If so, add "fixes #xxxx" so that the issue will be closed when this PR is merged (for example, "fixes #15" to close Issue #15). Otherwise, add "NONE" -->
10+
fixes #XXXX
11+
12+
### Ⅲ. List the added test cases (unit test/integration test) if any, please explain if no tests are needed.
13+
14+
15+
### Ⅳ. Describe how to verify it
16+
17+
1818
### Ⅴ. Special notes for reviews

.github/dependabot.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
# To get started with Dependabot version updates, you'll need to specify which
2-
# package ecosystems to update and where the package manifests are located.
3-
# Please see the documentation for all configuration options:
4-
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5-
6-
version: 2
7-
updates:
8-
- package-ecosystem: github-actions
9-
directory: /
10-
schedule:
11-
interval: weekly
12-
- package-ecosystem: gomod
13-
directory: /
14-
schedule:
15-
interval: daily
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: github-actions
9+
directory: /
10+
schedule:
11+
interval: weekly
12+
- package-ecosystem: gomod
13+
directory: /
14+
schedule:
15+
interval: daily

.github/scripts/build-all-images.sh

Lines changed: 54 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,54 @@
1-
#!/bin/bash
2-
set -e
3-
4-
function get_image_tag() {
5-
version=$(grep "^VERSION := " ./Makefile)
6-
version=${version#VERSION := }
7-
8-
git_sha=$(git rev-parse --short HEAD || echo "HEAD")
9-
export IMAGE_TAG=${version}-${git_sha}
10-
}
11-
12-
function build_images() {
13-
images=(
14-
${IMG_REPO}/dataset-controller:${IMAGE_TAG}
15-
${IMG_REPO}/application-controller:${IMAGE_TAG}
16-
${IMG_REPO}/alluxioruntime-controller:${IMAGE_TAG}
17-
${IMG_REPO}/jindoruntime-controller:${IMAGE_TAG}
18-
${IMG_REPO}/goosefsruntime-controller:${IMAGE_TAG}
19-
${IMG_REPO}/juicefsruntime-controller:${IMAGE_TAG}
20-
${IMG_REPO}/thinruntime-controller:${IMAGE_TAG}
21-
${IMG_REPO}/efcruntime-controller:${IMAGE_TAG}
22-
${IMG_REPO}/vineyardruntime-controller:${IMAGE_TAG}
23-
${IMG_REPO}/fluid-csi:${IMAGE_TAG}
24-
${IMG_REPO}/fluid-webhook:${IMAGE_TAG}
25-
${IMG_REPO}/fluid-crd-upgrader:${IMAGE_TAG}
26-
)
27-
28-
make docker-build-all
29-
30-
for img in ${images[@]}; do
31-
echo "Loading image $img to kind cluster..."
32-
kind load docker-image $img --name ${KIND_CLUSTER}
33-
done
34-
}
35-
36-
function cleanup_docker_caches() {
37-
echo ">>> System disk usage after building fluid images"
38-
df -h
39-
echo ">>> Cleaning docker caches..."
40-
docker system df
41-
docker ps
42-
docker container prune -f
43-
docker images
44-
docker image prune -a -f
45-
docker builder prune -a -f
46-
docker buildx prune -a -f
47-
echo ">>> docker caches cleaned up"
48-
echo ">>> System disk usage after cleaning up docker caches"
49-
df -h
50-
}
51-
52-
get_image_tag
53-
build_images
54-
cleanup_docker_caches
1+
#!/bin/bash
2+
set -e
3+
4+
function get_image_tag() {
5+
version=$(grep "^VERSION := " ./Makefile)
6+
version=${version#VERSION := }
7+
8+
git_sha=$(git rev-parse --short HEAD || echo "HEAD")
9+
export IMAGE_TAG=${version}-${git_sha}
10+
}
11+
12+
function build_images() {
13+
images=(
14+
${IMG_REPO}/dataset-controller:${IMAGE_TAG}
15+
${IMG_REPO}/application-controller:${IMAGE_TAG}
16+
${IMG_REPO}/alluxioruntime-controller:${IMAGE_TAG}
17+
${IMG_REPO}/jindoruntime-controller:${IMAGE_TAG}
18+
${IMG_REPO}/goosefsruntime-controller:${IMAGE_TAG}
19+
${IMG_REPO}/juicefsruntime-controller:${IMAGE_TAG}
20+
${IMG_REPO}/thinruntime-controller:${IMAGE_TAG}
21+
${IMG_REPO}/efcruntime-controller:${IMAGE_TAG}
22+
${IMG_REPO}/vineyardruntime-controller:${IMAGE_TAG}
23+
${IMG_REPO}/fluid-csi:${IMAGE_TAG}
24+
${IMG_REPO}/fluid-webhook:${IMAGE_TAG}
25+
${IMG_REPO}/fluid-crd-upgrader:${IMAGE_TAG}
26+
)
27+
28+
make docker-build-all
29+
30+
for img in ${images[@]}; do
31+
echo "Loading image $img to kind cluster..."
32+
kind load docker-image $img --name ${KIND_CLUSTER}
33+
done
34+
}
35+
36+
function cleanup_docker_caches() {
37+
echo ">>> System disk usage after building fluid images"
38+
df -h
39+
echo ">>> Cleaning docker caches..."
40+
docker system df
41+
docker ps
42+
docker container prune -f
43+
docker images
44+
docker image prune -a -f
45+
docker builder prune -a -f
46+
docker buildx prune -a -f
47+
echo ">>> docker caches cleaned up"
48+
echo ">>> System disk usage after cleaning up docker caches"
49+
df -h
50+
}
51+
52+
get_image_tag
53+
build_images
54+
cleanup_docker_caches
Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
1-
#!/bin/bash
2-
set -e
3-
4-
function get_image_tag() {
5-
version=$(grep "^VERSION := " ./Makefile)
6-
version=${version#VERSION := }
7-
8-
git_sha=$(git rev-parse --short HEAD || echo "HEAD")
9-
export IMAGE_TAG=${version}-${git_sha}
10-
}
11-
12-
function deploy_fluid() {
13-
echo "Replacing image tags in values.yaml with $IMAGE_TAG"
14-
sed -i -E "s/version: &defaultVersion v[0-9]\.[0-9]\.[0-9]-[a-z0-9]+$/version: \&defaultVersion $IMAGE_TAG/g" charts/fluid/fluid/values.yaml
15-
kubectl create ns fluid-system
16-
helm install --create-namespace --set runtime.jindo.smartdata.imagePrefix=registry.cn-hongkong.aliyuncs.com/jindofs --set runtime.jindo.fuse.imagePrefix=registry.cn-hongkong.aliyuncs.com/jindofs fluid charts/fluid/fluid
17-
}
18-
19-
function main() {
20-
get_image_tag
21-
if [[ -z "$IMAGE_TAG" ]];then
22-
echo "Failed to get image tag, exiting..."
23-
exit 1
24-
fi
25-
26-
deploy_fluid
27-
}
28-
29-
main
1+
#!/bin/bash
2+
set -e
3+
4+
function get_image_tag() {
5+
version=$(grep "^VERSION := " ./Makefile)
6+
version=${version#VERSION := }
7+
8+
git_sha=$(git rev-parse --short HEAD || echo "HEAD")
9+
export IMAGE_TAG=${version}-${git_sha}
10+
}
11+
12+
function deploy_fluid() {
13+
echo "Replacing image tags in values.yaml with $IMAGE_TAG"
14+
sed -i -E "s/version: &defaultVersion v[0-9]\.[0-9]\.[0-9]-[a-z0-9]+$/version: \&defaultVersion $IMAGE_TAG/g" charts/fluid/fluid/values.yaml
15+
kubectl create ns fluid-system
16+
helm install --create-namespace --set runtime.jindo.smartdata.imagePrefix=registry.cn-hongkong.aliyuncs.com/jindofs --set runtime.jindo.fuse.imagePrefix=registry.cn-hongkong.aliyuncs.com/jindofs fluid charts/fluid/fluid
17+
}
18+
19+
function main() {
20+
get_image_tag
21+
if [[ -z "$IMAGE_TAG" ]];then
22+
echo "Failed to get image tag, exiting..."
23+
exit 1
24+
fi
25+
26+
deploy_fluid
27+
}
28+
29+
main

0 commit comments

Comments
 (0)