Skip to content

Commit 91277b5

Browse files
authored
Merge pull request #8630 from dalees/comment_grammar
📖 Minor documentation grammar changes for code comments.
2 parents c36f4c0 + 3a5cbb9 commit 91277b5

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

exp/addons/api/v1beta1/clusterresourceset_webhook.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ func (m *ClusterResourceSet) ValidateDelete() error {
7171

7272
func (m *ClusterResourceSet) validate(old *ClusterResourceSet) error {
7373
// NOTE: ClusterResourceSet is behind ClusterResourceSet feature gate flag; the web hook
74-
// must prevent creating new objects new case the feature flag is disabled.
74+
// must prevent creating new objects when the feature flag is disabled.
7575
if !feature.Gates.Enabled(feature.ClusterResourceSet) {
7676
return field.Forbidden(
7777
field.NewPath("spec"),

exp/api/v1beta1/machinepool_webhook.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ func (m *MachinePool) ValidateDelete() error {
9595

9696
func (m *MachinePool) validate(old *MachinePool) error {
9797
// NOTE: MachinePool is behind MachinePool feature gate flag; the web hook
98-
// must prevent creating new objects new case the feature flag is disabled.
98+
// must prevent creating new objects when the feature flag is disabled.
9999
specPath := field.NewPath("spec")
100100
if !feature.Gates.Enabled(feature.MachinePool) {
101101
return field.Forbidden(

internal/webhooks/clusterclass.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ func (webhook *ClusterClass) ValidateDelete(ctx context.Context, obj runtime.Obj
129129

130130
func (webhook *ClusterClass) validate(ctx context.Context, oldClusterClass, newClusterClass *clusterv1.ClusterClass) error {
131131
// NOTE: ClusterClass and managed topologies are behind ClusterTopology feature gate flag; the web hook
132-
// must prevent creating new objects new case the feature flag is disabled.
132+
// must prevent creating new objects when the feature flag is disabled.
133133
if !feature.Gates.Enabled(feature.ClusterTopology) {
134134
return field.Forbidden(
135135
field.NewPath("spec"),

0 commit comments

Comments
 (0)