Skip to content

Commit cc9b155

Browse files
committed
Merge branch 'main' into support/hscale-in-its
2 parents f510c8b + 6c83bd7 commit cc9b155

35 files changed

+39
-35
lines changed

apis/workloads/v1/instance_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ type InstanceStatus2 struct {
183183
// +optional
184184
Role string `json:"role,omitempty"`
185185

186-
// Represents if the instance is in volume expansion.
186+
// Represents whether the instance is in volume expansion.
187187
//
188188
// +optional
189189
VolumeExpansion bool `json:"volumeExpansion,omitempty"`

apis/workloads/v1/instanceset_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ type InstanceStatus struct {
535535
// +optional
536536
Role string `json:"role,omitempty"`
537537

538-
// Represents if the instance is in volume expansion.
538+
// Represents whether the instance is in volume expansion.
539539
//
540540
// +optional
541541
VolumeExpansion bool `json:"volumeExpansion,omitempty"`

config/crd/bases/workloads.kubeblocks.io_instances.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11263,7 +11263,7 @@ spec:
1126311263
the Instance used to generate pod.
1126411264
type: string
1126511265
volumeExpansion:
11266-
description: Represents if the instance is in volume expansion.
11266+
description: Represents whether the instance is in volume expansion.
1126711267
type: boolean
1126811268
type: object
1126911269
type: object

config/crd/bases/workloads.kubeblocks.io_instancesets.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13017,7 +13017,7 @@ spec:
1301713017
description: Represents the role of the instance observed.
1301813018
type: string
1301913019
volumeExpansion:
13020-
description: Represents if the instance is in volume expansion.
13020+
description: Represents whether the instance is in volume expansion.
1302113021
type: boolean
1302213022
required:
1302313023
- podName

controllers/dataprotection/backuprepo_controller.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -776,7 +776,6 @@ func (r *BackupRepoReconciler) runPreCheckJobForMounting(reconCtx *reconcileCont
776776
}},
777777
SecurityContext: &corev1.SecurityContext{
778778
AllowPrivilegeEscalation: boolptr.False(),
779-
RunAsNonRoot: boolptr.True(),
780779
},
781780
}},
782781
Volumes: []corev1.Volume{{
@@ -788,6 +787,9 @@ func (r *BackupRepoReconciler) runPreCheckJobForMounting(reconCtx *reconcileCont
788787
},
789788
}},
790789
ServiceAccountName: saName,
790+
SecurityContext: &corev1.PodSecurityContext{
791+
RunAsNonRoot: boolptr.True(),
792+
},
791793
},
792794
},
793795
BackoffLimit: pointer.Int32(2),
@@ -856,10 +858,12 @@ datasafed rm %s`, precheckFilePath, precheckFilePath, precheckFilePath),
856858
},
857859
SecurityContext: &corev1.SecurityContext{
858860
AllowPrivilegeEscalation: boolptr.False(),
859-
RunAsNonRoot: boolptr.True(),
860861
},
861862
}},
862863
ServiceAccountName: saName,
864+
SecurityContext: &corev1.PodSecurityContext{
865+
RunAsNonRoot: boolptr.True(),
866+
},
863867
},
864868
},
865869
BackoffLimit: pointer.Int32(2),

deploy/helm/crds/workloads.kubeblocks.io_instances.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11263,7 +11263,7 @@ spec:
1126311263
the Instance used to generate pod.
1126411264
type: string
1126511265
volumeExpansion:
11266-
description: Represents if the instance is in volume expansion.
11266+
description: Represents whether the instance is in volume expansion.
1126711267
type: boolean
1126811268
type: object
1126911269
type: object

deploy/helm/crds/workloads.kubeblocks.io_instancesets.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13017,7 +13017,7 @@ spec:
1301713017
description: Represents the role of the instance observed.
1301813018
type: string
1301913019
volumeExpansion:
13020-
description: Represents if the instance is in volume expansion.
13020+
description: Represents whether the instance is in volume expansion.
1302113021
type: boolean
1302213022
required:
1302313023
- podName

docs/developer_docs/api-reference/cluster.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33330,7 +33330,7 @@ bool
3333033330
</td>
3333133331
<td>
3333233332
<em>(Optional)</em>
33333-
<p>Represents if the instance is in volume expansion.</p>
33333+
<p>Represents whether the instance is in volume expansion.</p>
3333433334
</td>
3333533335
</tr>
3333633336
<tr>
@@ -33474,7 +33474,7 @@ bool
3347433474
</td>
3347533475
<td>
3347633476
<em>(Optional)</em>
33477-
<p>Represents if the instance is in volume expansion.</p>
33477+
<p>Represents whether the instance is in volume expansion.</p>
3347833478
</td>
3347933479
</tr>
3348033480
</tbody>

pkg/controller/component/workload_utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ import (
3535
workloads "github.com/apecloud/kubeblocks/apis/workloads/v1"
3636
"github.com/apecloud/kubeblocks/pkg/constant"
3737
"github.com/apecloud/kubeblocks/pkg/controller/instanceset"
38-
"github.com/apecloud/kubeblocks/pkg/controller/instanceset/instancetemplate"
38+
"github.com/apecloud/kubeblocks/pkg/controller/instancetemplate"
3939
"github.com/apecloud/kubeblocks/pkg/generics"
4040
)
4141

pkg/controller/instanceset/in_place_update_util.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import (
3030

3131
workloads "github.com/apecloud/kubeblocks/apis/workloads/v1"
3232
"github.com/apecloud/kubeblocks/pkg/constant"
33-
"github.com/apecloud/kubeblocks/pkg/controller/instanceset/instancetemplate"
33+
"github.com/apecloud/kubeblocks/pkg/controller/instancetemplate"
3434
intctrlutil "github.com/apecloud/kubeblocks/pkg/controllerutil"
3535
viper "github.com/apecloud/kubeblocks/pkg/viperx"
3636
)

0 commit comments

Comments
 (0)