Skip to content

Commit

Permalink
add thinRuntime (fluid-cloudnative#2098)
Browse files Browse the repository at this point in the history
* add thinruntime

Signed-off-by: zwwhdls <zww@hdls.me>

* update thinruntime & add thinprofile

Signed-off-by: zwwhdls <zww@hdls.me>

* transform fuse

Signed-off-by: zwwhdls <zww@hdls.me>

* rename profile

Signed-off-by: zwwhdls <zww@hdls.me>

* update ufs in thin

Signed-off-by: zwwhdls <zww@hdls.me>

* implement sync runtime

Signed-off-by: zwwhdls <zww@hdls.me>

* fix static check

Signed-off-by: zwwhdls <zww@hdls.me>

* add dockerfile etc.

Signed-off-by: zwwhdls <zww@hdls.me>

* update thinruntime

Signed-off-by: zwwhdls <zww@hdls.me>

* fix staticcheck

Signed-off-by: zwwhdls <zww@hdls.me>

* update thinruntime

Signed-off-by: zwwhdls <zww@hdls.me>

* add test

Signed-off-by: zwwhdls <zww@hdls.me>

* add test

Signed-off-by: zwwhdls <zww@hdls.me>

* add test

Signed-off-by: zwwhdls <zww@hdls.me>

* update yaml

Signed-off-by: zwwhdls <zww@hdls.me>

* update precheck

Signed-off-by: zwwhdls <zww@hdls.me>

* fix static check

Signed-off-by: zwwhdls <zww@hdls.me>

* update crd

Signed-off-by: zwwhdls <zww@hdls.me>

* fix resource build

Signed-off-by: zwwhdls <zww@hdls.me>

* fix typo & fix container name

Signed-off-by: zwwhdls <zww@hdls.me>

* delete global in fuse

Signed-off-by: zwwhdls <zww@hdls.me>

* udpate crd

Signed-off-by: zwwhdls <zww@hdls.me>

* udpate crd

Signed-off-by: zwwhdls <zww@hdls.me>

Signed-off-by: zwwhdls <zww@hdls.me>
  • Loading branch information
zwwhdls authored Sep 16, 2022
1 parent cb92231 commit 5ae714b
Show file tree
Hide file tree
Showing 97 changed files with 25,669 additions and 57 deletions.
17 changes: 17 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ ALLUXIORUNTIME_CONTROLLER_IMG ?= ${IMG_REPO}/alluxioruntime-controller
JINDORUNTIME_CONTROLLER_IMG ?= ${IMG_REPO}/jindoruntime-controller
GOOSEFSRUNTIME_CONTROLLER_IMG ?= ${IMG_REPO}/goosefsruntime-controller
JUICEFSRUNTIME_CONTROLLER_IMG ?= ${IMG_REPO}/juicefsruntime-controller
THINRUNTIME_CONTROLLER_IMG ?= ${IMG_REPO}/thinruntime-controller
CSI_IMG ?= ${IMG_REPO}/fluid-csi
LOADER_IMG ?= ${IMG_REPO}/fluid-dataloader
INIT_USERS_IMG ?= ${IMG_REPO}/init-users
Expand Down Expand Up @@ -50,6 +51,7 @@ BINARY_BUILD += application-controller-build
BINARY_BUILD += alluxioruntime-controller-build
BINARY_BUILD += jindoruntime-controller-build
BINARY_BUILD += juicefsruntime-controller-build
BINARY_BUILD += thinruntime-controller-build
BINARY_BUILD += csi-build
BINARY_BUILD += webhook-build

Expand All @@ -62,6 +64,7 @@ DOCKER_BUILD += docker-build-goosefsruntime-controller
DOCKER_BUILD += docker-build-csi
DOCKER_BUILD += docker-build-webhook
DOCKER_BUILD += docker-build-juicefsruntime-controller
DOCKER_BUILD += docker-build-thinruntime-controller
DOCKER_BUILD += docker-build-init-users
DOCKER_BUILD += docker-build-crd-upgrader

Expand All @@ -74,6 +77,7 @@ DOCKER_PUSH += docker-push-csi
DOCKER_PUSH += docker-push-webhook
DOCKER_PUSH += docker-push-goosefsruntime-controller
DOCKER_PUSH += docker-push-juicefsruntime-controller
DOCKER_PUSH += docker-push-thinruntime-controller
DOCKER_PUSH += docker-push-init-users
DOCKER_PUSH += docker-push-crd-upgrader

Expand All @@ -86,6 +90,7 @@ DOCKER_BUILDX_PUSH += docker-buildx-push-goosefsruntime-controller
DOCKER_BUILDX_PUSH += docker-buildx-push-csi
DOCKER_BUILDX_PUSH += docker-buildx-push-webhook
DOCKER_BUILDX_PUSH += docker-buildx-push-juicefsruntime-controller
DOCKER_BUILDX_PUSH += docker-buildx-push-thinruntime-controller
DOCKER_BUILDX_PUSH += docker-buildx-push-init-users
DOCKER_BUILDX_PUSH += docker-buildx-push-crd-upgrader

Expand Down Expand Up @@ -129,6 +134,9 @@ goosefsruntime-controller-build: generate gen-openapi fmt vet
juicefsruntime-controller-build: generate gen-openapi fmt vet
CGO_ENABLED=0 GOOS=linux GOARCH=${ARCH} GO111MODULE=${GO_MODULE} go build ${GC_FLAGS} -a -o bin/juicefsruntime-controller -ldflags '-s -w ${LDFLAGS}' cmd/juicefs/main.go

thinruntime-controller-build: generate gen-openapi fmt vet
CGO_ENABLED=0 GOOS=linux GOARCH=${ARCH} GO111MODULE=${GO_MODULE} go build ${GC_FLAGS} -a -o bin/thinruntime-controller -ldflags '-s -w ${LDFLAGS}' cmd/thin/main.go

webhook-build: generate fmt vet
CGO_ENABLED=0 GOOS=linux GOARCH=${ARCH} GO111MODULE=${GO_MODULE} go build ${GC_FLAGS} -a -o bin/fluid-webhook -ldflags '${LDFLAGS}' cmd/webhook/main.go

Expand Down Expand Up @@ -198,6 +206,9 @@ docker-build-goosefsruntime-controller: generate gen-openapi fmt vet
docker-build-juicefsruntime-controller: generate gen-openapi fmt vet juicefsruntime-controller-build
docker build --no-cache --build-arg TARGETARCH=${ARCH} . -f docker/Dockerfile.juicefsruntime -t ${JUICEFSRUNTIME_CONTROLLER_IMG}:${GIT_VERSION}

docker-build-thinruntime-controller: generate gen-openapi fmt vet thinruntime-controller-build
docker build --no-cache --build-arg TARGETARCH=${ARCH} . -f docker/Dockerfile.thinruntime -t ${THINRUNTIME_CONTROLLER_IMG}:${GIT_VERSION}

docker-build-csi: generate fmt vet
docker build --no-cache . -f docker/Dockerfile.csi -t ${CSI_IMG}:${GIT_VERSION}

Expand Down Expand Up @@ -232,6 +243,9 @@ docker-push-goosefsruntime-controller: docker-build-goosefsruntime-controller
docker-push-juicefsruntime-controller: docker-build-juicefsruntime-controller
docker push ${JUICEFSRUNTIME_CONTROLLER_IMG}:${GIT_VERSION}

docker-push-thinruntime-controller: docker-build-thinruntime-controller
docker push ${THINRUNTIME_CONTROLLER_IMG}:${GIT_VERSION}

docker-push-csi: docker-build-csi
docker push ${CSI_IMG}:${GIT_VERSION}

Expand Down Expand Up @@ -266,6 +280,9 @@ docker-buildx-push-goosefsruntime-controller: generate gen-openapi fmt vet
docker-buildx-push-juicefsruntime-controller: generate gen-openapi fmt vet juicefsruntime-controller-build
docker buildx build --push --platform linux/amd64,linux/arm64 --no-cache . -f docker/Dockerfile.juicefsruntime -t ${JUICEFSRUNTIME_CONTROLLER_IMG}:${GIT_VERSION}

docker-buildx-push-thinruntime-controller: generate gen-openapi fmt vet thinruntime-controller-build
docker buildx build --push --platform linux/amd64,linux/arm64 --no-cache . -f docker/Dockerfile.thinruntime -t ${THINRUNTIME_CONTROLLER_IMG}:${GIT_VERSION}

docker-buildx-push-csi: generate fmt vet
docker buildx build --push --platform linux/amd64,linux/arm64 --no-cache . -f docker/Dockerfile.csi -t ${CSI_IMG}:${GIT_VERSION}

Expand Down
17 changes: 17 additions & 0 deletions PROJECT
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,21 @@ resources:
kind: DataBackup
path: github.com/fluid-cloudnative/fluid/api/v1alpha1
version: v1alpha1
- api:
crdVersion: v1
namespaced: true
controller: true
domain: fluid.io
group: data
kind: ThinRuntime
path: github.com/fluid-cloudnative/fluid/api/v1alpha1
version: v1alpha1
- api:
crdVersion: v1
namespaced: false
domain: fluid.io
group: data
kind: ThinRuntimeProfile
path: github.com/fluid-cloudnative/fluid/api/v1alpha1
version: v1alpha1
version: "3"
Loading

0 comments on commit 5ae714b

Please sign in to comment.