You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// MountPath must be an absolute path. support use environment : ${DORIS_HOME}, ${DORIS_HOME} is /opt/apache-doris/fe/ in fe container, /opt/apache-doris/be in be container.
65
+
// if the MountPath conflict to the MountPath in BaseSpec.PersistentVolumes config, this MountPath will have high priority, and the MountPath will attach the shard pvc.
66
+
MountPathstring`json:"mountPath,omitempty"`
67
+
68
+
// the shared PersistentVolumeClaim's name
69
+
// PersistentVolumeClaim AccessModes must include ReadWriteMany, Please create the ReadWriteMany pvc before deploying doris cluster.
70
+
// Doris Operator will check the pvc exists or not, the AccessMode is ReadWriteMany or not.
Copy file name to clipboardExpand all lines: config/crd/bases/crds.yaml
+24Lines changed: 24 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -8869,6 +8869,30 @@ spec:
8869
8869
description: Krb5ConfigMap is the name of configmap within 'krb5.conf'
8870
8870
type: string
8871
8871
type: object
8872
+
sharedPersistentVolumeClaims:
8873
+
description: SharedPersistentVolumeClaims used to configure the shared
8874
+
pvc that needs to be mounted on the pod
8875
+
items:
8876
+
properties:
8877
+
mountPath:
8878
+
description: |-
8879
+
MountPath must be an absolute path. support use environment : ${DORIS_HOME}, ${DORIS_HOME} is /opt/apache-doris/fe/ in fe container, /opt/apache-doris/be in be container.
8880
+
if the MountPath conflict to the MountPath in BaseSpec.PersistentVolumes config, this MountPath will have high priority, and the MountPath will attach the shard pvc.
8881
+
type: string
8882
+
persistentVolumeClaimName:
8883
+
description: |-
8884
+
the shared PersistentVolumeClaim's name
8885
+
PersistentVolumeClaim AccessModes must include ReadWriteMany, Please create the ReadWriteMany pvc before deploying doris cluster.
8886
+
Doris Operator will check the pvc exists or not, the AccessMode is ReadWriteMany or not.
8887
+
type: string
8888
+
supportComponents:
8889
+
description: the components of need config the pvc, if empty,
8890
+
all deployment component will config the pvc.
8891
+
items:
8892
+
type: string
8893
+
type: array
8894
+
type: object
8895
+
type: array
8872
8896
type: object
8873
8897
status:
8874
8898
description: DorisClusterStatus defines the observed state of DorisCluster
Copy file name to clipboardExpand all lines: config/crd/bases/doris.apache.com_dorisclusters.yaml
+24Lines changed: 24 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -8869,6 +8869,30 @@ spec:
8869
8869
description: Krb5ConfigMap is the name of configmap within 'krb5.conf'
8870
8870
type: string
8871
8871
type: object
8872
+
sharedPersistentVolumeClaims:
8873
+
description: SharedPersistentVolumeClaims used to configure the shared
8874
+
pvc that needs to be mounted on the pod
8875
+
items:
8876
+
properties:
8877
+
mountPath:
8878
+
description: |-
8879
+
MountPath must be an absolute path. support use environment : ${DORIS_HOME}, ${DORIS_HOME} is /opt/apache-doris/fe/ in fe container, /opt/apache-doris/be in be container.
8880
+
if the MountPath conflict to the MountPath in BaseSpec.PersistentVolumes config, this MountPath will have high priority, and the MountPath will attach the shard pvc.
8881
+
type: string
8882
+
persistentVolumeClaimName:
8883
+
description: |-
8884
+
the shared PersistentVolumeClaim's name
8885
+
PersistentVolumeClaim AccessModes must include ReadWriteMany, Please create the ReadWriteMany pvc before deploying doris cluster.
8886
+
Doris Operator will check the pvc exists or not, the AccessMode is ReadWriteMany or not.
8887
+
type: string
8888
+
supportComponents:
8889
+
description: the components of need config the pvc, if empty,
8890
+
all deployment component will config the pvc.
8891
+
items:
8892
+
type: string
8893
+
type: array
8894
+
type: object
8895
+
type: array
8872
8896
type: object
8873
8897
status:
8874
8898
description: DorisClusterStatus defines the observed state of DorisCluster
Copy file name to clipboardExpand all lines: config/crd/bases/doris.selectdb.com_dorisclusters.yaml
+24Lines changed: 24 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -8869,6 +8869,30 @@ spec:
8869
8869
description: Krb5ConfigMap is the name of configmap within 'krb5.conf'
8870
8870
type: string
8871
8871
type: object
8872
+
sharedPersistentVolumeClaims:
8873
+
description: SharedPersistentVolumeClaims used to configure the shared
8874
+
pvc that needs to be mounted on the pod
8875
+
items:
8876
+
properties:
8877
+
mountPath:
8878
+
description: |-
8879
+
MountPath must be an absolute path. support use environment : ${DORIS_HOME}, ${DORIS_HOME} is /opt/apache-doris/fe/ in fe container, /opt/apache-doris/be in be container.
8880
+
if the MountPath conflict to the MountPath in BaseSpec.PersistentVolumes config, this MountPath will have high priority, and the MountPath will attach the shard pvc.
8881
+
type: string
8882
+
persistentVolumeClaimName:
8883
+
description: |-
8884
+
the shared PersistentVolumeClaim's name
8885
+
PersistentVolumeClaim AccessModes must include ReadWriteMany, Please create the ReadWriteMany pvc before deploying doris cluster.
8886
+
Doris Operator will check the pvc exists or not, the AccessMode is ReadWriteMany or not.
8887
+
type: string
8888
+
supportComponents:
8889
+
description: the components of need config the pvc, if empty,
8890
+
all deployment component will config the pvc.
8891
+
items:
8892
+
type: string
8893
+
type: array
8894
+
type: object
8895
+
type: array
8872
8896
type: object
8873
8897
status:
8874
8898
description: DorisClusterStatus defines the observed state of DorisCluster
Copy file name to clipboardExpand all lines: helm-charts/doris-operator/crds/doris.apache.com_dorisclusters.yaml
+24Lines changed: 24 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -8869,6 +8869,30 @@ spec:
8869
8869
description: Krb5ConfigMap is the name of configmap within 'krb5.conf'
8870
8870
type: string
8871
8871
type: object
8872
+
sharedPersistentVolumeClaims:
8873
+
description: SharedPersistentVolumeClaims used to configure the shared
8874
+
pvc that needs to be mounted on the pod
8875
+
items:
8876
+
properties:
8877
+
mountPath:
8878
+
description: |-
8879
+
MountPath must be an absolute path. support use environment : ${DORIS_HOME}, ${DORIS_HOME} is /opt/apache-doris/fe/ in fe container, /opt/apache-doris/be in be container.
8880
+
if the MountPath conflict to the MountPath in BaseSpec.PersistentVolumes config, this MountPath will have high priority, and the MountPath will attach the shard pvc.
8881
+
type: string
8882
+
persistentVolumeClaimName:
8883
+
description: |-
8884
+
the shared PersistentVolumeClaim's name
8885
+
PersistentVolumeClaim AccessModes must include ReadWriteMany, Please create the ReadWriteMany pvc before deploying doris cluster.
8886
+
Doris Operator will check the pvc exists or not, the AccessMode is ReadWriteMany or not.
8887
+
type: string
8888
+
supportComponents:
8889
+
description: the components of need config the pvc, if empty,
8890
+
all deployment component will config the pvc.
8891
+
items:
8892
+
type: string
8893
+
type: array
8894
+
type: object
8895
+
type: array
8872
8896
type: object
8873
8897
status:
8874
8898
description: DorisClusterStatus defines the observed state of DorisCluster
klog.Errorf("GenerateEveryoneMountPathDorisPersistentVolume SharedPersistentVolumeClaim.MountPath (%s) conflicts with the MountPath configured in BaseSpec.PersistentVolumes, "+
112
+
"and the SharedPersistentVolumeClaims configuration takes precedence, skipping the processing of the BaseSpec.PersistentVolumes for the PVC. "+
113
+
"If it does not meet expectations, please handle the conflict and rebuild the cluster.", path)
114
+
}
106
115
} else {
107
116
template= (&spec.PersistentVolumes[i]).DeepCopy()
108
117
}
109
118
}
110
119
111
120
iftemplate==nil {
112
-
returnpvs, nil
121
+
returndorisPersistentVolumes, nil
113
122
}
114
123
115
124
// Processing pvc template
@@ -124,13 +133,13 @@ func GenerateEveryoneMountPathPersistentVolume(spec *dorisv1.BaseSpec, config ma
124
133
dataPathKey="storage_root_path"
125
134
dataDefaultPath=dorisHome+"/storage"
126
135
default:
127
-
klog.Infof("GenerateEveryoneMountPathPersistentVolume the componentType: %s is not supported, PersistentVolume template will not work ", componentType)
128
-
returnpvs, nil
136
+
klog.Infof("GenerateEveryoneMountPathDorisPersistentVolume the componentType: %s is not supported, PersistentVolume template will not work ", componentType)
137
+
returndorisPersistentVolumes, nil
129
138
}
130
139
131
140
dataPathValue, dataExist:=config[dataPathKey]
132
141
if!dataExist {
133
-
klog.Infof("GenerateEveryoneMountPathPersistentVolume: dataPathKey '%s' not found in config, default value will effect", dataPathKey)
142
+
klog.Infof("GenerateEveryoneMountPathDorisPersistentVolume: dataPathKey '%s' not found in config, default value will effect", dataPathKey)
klog.Errorf("GenerateEveryoneMountPathDorisPersistentVolume SharedPersistentVolumeClaims.MountPath (%s) conflicts with the MountPath configured in BaseSpec.PersistentVolumes, "+
155
+
"and the SharedPersistentVolumeClaims configuration takes precedence, skipping the processing of the BaseSpec.PersistentVolumes for the PVC. "+
156
+
"If it does not meet expectations, please handle the conflict and rebuild the cluster.", dataPaths[0])
klog.Errorf("GenerateEveryoneMountPathDorisPersistentVolume SharedPersistentVolumeClaims.MountPath (%s) conflicts with the MountPath configured in BaseSpec.PersistentVolumes, "+
168
+
"and the SharedPersistentVolumeClaims configuration takes precedence, skipping the processing of the BaseSpec.PersistentVolumes for the PVC. "+
169
+
"If it does not meet expectations, please handle the conflict and rebuild the cluster.", dataPaths[i])
0 commit comments