Skip to content

Commit 1e15620

Browse files
committed
Merge branch 'main' into support/volume-expansion-status-in-its
2 parents a942abd + 370e09b commit 1e15620

33 files changed

+36
-32
lines changed

apis/workloads/v1/instance_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ type InstanceStatus2 struct {
188188
// +optional
189189
Role string `json:"role,omitempty"`
190190

191-
// Represents if the instance is in volume expansion.
191+
// Represents whether the instance is in volume expansion.
192192
//
193193
// +optional
194194
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
@@ -540,7 +540,7 @@ type InstanceStatus struct {
540540
// +optional
541541
Role string `json:"role,omitempty"`
542542

543-
// Represents if the instance is in volume expansion.
543+
// Represents whether the instance is in volume expansion.
544544
//
545545
// +optional
546546
VolumeExpansion bool `json:"volumeExpansion,omitempty"`

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11299,7 +11299,7 @@ spec:
1129911299
description: Represents the role of the instance observed.
1130011300
type: string
1130111301
volumeExpansion:
11302-
description: Represents if the instance is in volume expansion.
11302+
description: Represents whether the instance is in volume expansion.
1130311303
type: boolean
1130411304
required:
1130511305
- 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_instancesets.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11299,7 +11299,7 @@ spec:
1129911299
description: Represents the role of the instance observed.
1130011300
type: string
1130111301
volumeExpansion:
11302-
description: Represents if the instance is in volume expansion.
11302+
description: Represents whether the instance is in volume expansion.
1130311303
type: boolean
1130411304
required:
1130511305
- podName

docs/developer_docs/api-reference/cluster.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33378,7 +33378,7 @@ bool
3337833378
</td>
3337933379
<td>
3338033380
<em>(Optional)</em>
33381-
<p>Represents if the instance is in volume expansion.</p>
33381+
<p>Represents whether the instance is in volume expansion.</p>
3338233382
</td>
3338333383
</tr>
3338433384
<tr>

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
)

pkg/controller/instanceset/instance_util.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ import (
4242
workloads "github.com/apecloud/kubeblocks/apis/workloads/v1"
4343
"github.com/apecloud/kubeblocks/pkg/constant"
4444
"github.com/apecloud/kubeblocks/pkg/controller/builder"
45-
"github.com/apecloud/kubeblocks/pkg/controller/instanceset/instancetemplate"
45+
"github.com/apecloud/kubeblocks/pkg/controller/instancetemplate"
4646
"github.com/apecloud/kubeblocks/pkg/controller/model"
4747
intctrlutil "github.com/apecloud/kubeblocks/pkg/controllerutil"
4848
)

pkg/controller/instanceset/instance_util_test.go

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

4141
var _ = Describe("instance util test", func() {

0 commit comments

Comments
 (0)