Skip to content

Commit

Permalink
Upgrade controller runtime 0.8.3 and K8s 1.20 (fluid-cloudnative#1207)
Browse files Browse the repository at this point in the history
* Build docker image for juice, To #37688693

Signed-off-by: cheyang <[email protected]>

* Update go mod, To #37688693

Signed-off-by: cheyang <[email protected]>

* Update go mod, To #37688693

Signed-off-by: cheyang <[email protected]>

* Update go mod, To #37688693

Signed-off-by: cheyang <[email protected]>

* Adopt the interface of controller runtime, To #37688693

Signed-off-by: cheyang <[email protected]>

* Adopt the interface of controller runtime, To #37688693

Signed-off-by: cheyang <[email protected]>

* Generate openapi, To #37688693

Signed-off-by: cheyang <[email protected]>

* Adopt the interface of controller runtime, To #37688693

Signed-off-by: cheyang <[email protected]>

* Adopt the interface of controller runtime, To #37688693

Signed-off-by: cheyang <[email protected]>

* Generate openapi, To #37688693

Signed-off-by: cheyang <[email protected]>

* Update crds, To #37688693

Signed-off-by: cheyang <[email protected]>

* Adopt the interface of controller runtime, To #37688693

Signed-off-by: cheyang <[email protected]>

* Adopt the testcase change of controller runtime, To #37688693

Signed-off-by: cheyang <[email protected]>

* Adopt the logger change of controller runtime, To #37688693

Signed-off-by: cheyang <[email protected]>

* Fix testcase failed, To #37688693

Signed-off-by: cheyang <[email protected]>

* Fix testcase failed, To #37688693

Signed-off-by: cheyang <[email protected]>

* Support CSI driver both v1 and v1beta1, To #37688693

Signed-off-by: cheyang <[email protected]>

* Support CSI driver both v1 and v1beta1, To #37688693

Signed-off-by: cheyang <[email protected]>

* Support CSI driver both v1 and v1beta1, To #37688693

Signed-off-by: cheyang <[email protected]>

* Support CSI driver both v1 and v1beta1, To #37688693

Signed-off-by: cheyang <[email protected]>

* Support CSI driver both v1 and v1beta1, To #37688693

Signed-off-by: cheyang <[email protected]>

* Update klog to klog v2, To #37688693

Signed-off-by: cheyang <[email protected]>

* Update go.mod, To #37688693

Signed-off-by: cheyang <[email protected]>

* Update for K8s version support, To #37688693

Signed-off-by: cheyang <[email protected]>
  • Loading branch information
cheyang authored Nov 29, 2021
1 parent 8606c91 commit 1a6ab9d
Show file tree
Hide file tree
Showing 1,774 changed files with 182,846 additions and 61,388 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Produce CRDs that work back to Kubernetes 1.11 (no version conversion)
CRD_OPTIONS ?= "crd:trivialVersions=true"
CRD_OPTIONS ?= "crd"

# The Image URL to use in docker build and push
# IMG_REPO ?= registry.aliyuncs.com/fluid
Expand Down Expand Up @@ -188,7 +188,7 @@ ifeq (, $(shell which controller-gen))
cd $$CONTROLLER_GEN_TMP_DIR ;\
export GO111MODULE=on ;\
go mod init tmp ;\
go get sigs.k8s.io/controller-tools/cmd/controller-gen@v0.3.0 ;\
go get sigs.k8s.io/controller-tools/cmd/controller-gen@v0.7.0 ;\
rm -rf $$CONTROLLER_GEN_TMP_DIR ;\
}
CONTROLLER_GEN=$(GOBIN)/controller-gen
Expand Down
2 changes: 1 addition & 1 deletion README-zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ Fluid是一个开源的Kubernetes原生的分布式数据集编排和加速引

## 先决条件

- Kubernetes version > 1.14, 支持CSI
- Kubernetes version > 1.16, 支持CSI
- Golang 1.12+
- Helm 3

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ Fluid can manage and schedule Alluxio Runtime to achieve dataset visibility, ela

## Prerequisites

- Kubernetes version > 1.14, and support CSI
- Kubernetes version > 1.16, and support CSI
- Golang 1.12+
- Helm 3

Expand Down
3 changes: 3 additions & 0 deletions api/v1alpha1/alluxioruntime_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,8 @@ type AlluxioRuntimeSpec struct {
// +kubebuilder:printcolumn:name="Fuse Phase",type="string",JSONPath=`.status.fusePhase`,priority=0
// +kubebuilder:printcolumn:name="API Gateway",type="string",JSONPath=`.status.apiGateway.endpoint`,priority=10
// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=`.metadata.creationTimestamp`,priority=0
// +kubebuilder:resource:scope=Namespaced
// +kubebuilder:resource:categories={fluid},shortName=alluxio
// +genclient

// AlluxioRuntime is the Schema for the alluxioruntimes API
Expand All @@ -266,6 +268,7 @@ type AlluxioRuntime struct {
}

// +kubebuilder:object:root=true
// +kubebuilder:resource:scope=Namespaced

// AlluxioRuntimeList contains a list of AlluxioRuntime
type AlluxioRuntimeList struct {
Expand Down
3 changes: 3 additions & 0 deletions api/v1alpha1/databackup_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ type DataBackupStatus struct {
// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=`.metadata.creationTimestamp`
// +kubebuilder:object:root=true
// +kubebuilder:subresource:status
// +kubebuilder:resource:scope=Namespaced
// +kubebuilder:resource:categories={fluid},shortName=backup
// +genclient

// DataBackup is the Schema for the backup API
Expand All @@ -73,6 +75,7 @@ type DataBackup struct {
}

// +kubebuilder:object:root=true
// +kubebuilder:resource:scope=Namespaced

// DataBackupList contains a list of DataBackup
type DataBackupList struct {
Expand Down
3 changes: 3 additions & 0 deletions api/v1alpha1/dataload_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ type DataLoadStatus struct {
// +kubebuilder:printcolumn:name="Duration",type="string",JSONPath=`.status.duration`
// +kubebuilder:object:root=true
// +kubebuilder:subresource:status
// +kubebuilder:resource:scope=Namespaced
// +kubebuilder:resource:categories={fluid},shortName=load
// +genclient

// DataLoad is the Schema for the dataloads API
Expand All @@ -85,6 +87,7 @@ type DataLoad struct {
}

// +kubebuilder:object:root=true
// +kubebuilder:resource:scope=Namespaced

// DataLoadList contains a list of DataLoad
type DataLoadList struct {
Expand Down
3 changes: 3 additions & 0 deletions api/v1alpha1/dataset_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,8 @@ type DatasetCondition struct {
// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=`.metadata.creationTimestamp`
// +kubebuilder:object:root=true
// +kubebuilder:subresource:status
// +kubebuilder:resource:scope=Namespaced
// +kubebuilder:resource:categories={fluid},shortName=dataset
// +genclient

// Dataset is the Schema for the datasets API
Expand All @@ -273,6 +275,7 @@ type Dataset struct {
}

// +kubebuilder:object:root=true
// +kubebuilder:resource:scope=Namespaced

// DatasetList contains a list of Dataset
type DatasetList struct {
Expand Down
3 changes: 3 additions & 0 deletions api/v1alpha1/goosefsruntime_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,8 @@ type GooseFSRuntimeSpec struct {
// +kubebuilder:printcolumn:name="Fuse Phase",type="string",JSONPath=`.status.fusePhase`,priority=0
// +kubebuilder:printcolumn:name="API Gateway",type="string",JSONPath=`.status.apiGateway.endpoint`,priority=10
// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=`.metadata.creationTimestamp`,priority=0
// +kubebuilder:resource:scope=Namespaced
// +kubebuilder:resource:categories={fluid},shortName=goose
// +genclient

// GooseFSRuntime is the Schema for the goosefsruntimes API
Expand All @@ -189,6 +191,7 @@ type GooseFSRuntime struct {
}

// +kubebuilder:object:root=true
// +kubebuilder:resource:scope=Namespaced

// GooseFSRuntimeList contains a list of GooseFSRuntime
type GooseFSRuntimeList struct {
Expand Down
3 changes: 3 additions & 0 deletions api/v1alpha1/jindoruntime_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,8 @@ type JindoRuntimeSpec struct {
// +kubebuilder:printcolumn:name="Desired Fuses",type="integer",JSONPath=`.status.desiredFuseNumberScheduled`,priority=10
// +kubebuilder:printcolumn:name="Fuse Phase",type="string",JSONPath=`.status.fusePhase`,priority=0
// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=`.metadata.creationTimestamp`,priority=0
// +kubebuilder:resource:scope=Namespaced
// +kubebuilder:resource:categories={fluid},shortName=jindo
// +genclient

// JindoRuntime is the Schema for the jindoruntimes API
Expand All @@ -180,6 +182,7 @@ type JindoRuntime struct {
}

// +kubebuilder:object:root=true
// +kubebuilder:resource:scope=Namespaced

// JindoRuntimeList contains a list of JindoRuntime
type JindoRuntimeList struct {
Expand Down
3 changes: 3 additions & 0 deletions api/v1alpha1/juicefsruntime_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ type JuiceFSFuseSpec struct {
// +kubebuilder:printcolumn:name="Ready Fuses",type="integer",JSONPath=`.status.fuseNumberReady`,priority=10
// +kubebuilder:printcolumn:name="Desired Fuses",type="integer",JSONPath=`.status.desiredFuseNumberScheduled`,priority=10
// +kubebuilder:printcolumn:name="Fuse Phase",type="string",JSONPath=`.status.fusePhase`,priority=0
// +kubebuilder:resource:scope=Namespaced
// +kubebuilder:resource:categories={fluid},shortName=juicefs
// +genclient

// JuiceFSRuntime is the Schema for the juicefsruntimes API
Expand All @@ -139,6 +141,7 @@ type JuiceFSRuntime struct {
}

//+kubebuilder:object:root=true
// +kubebuilder:resource:scope=Namespaced

// JuiceFSRuntimeList contains a list of JuiceFSRuntime
type JuiceFSRuntimeList struct {
Expand Down
1 change: 0 additions & 1 deletion api/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion charts/fluid/fluid/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ version: 0.7.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application.
appVersion: 0.7.0-2d63263
appVersion: 0.7.0-69f686b
home: https://github.com/fluid-cloudnative/fluid
keywords:
- category:data
Expand Down
Loading

0 comments on commit 1a6ab9d

Please sign in to comment.