Skip to content

Commit 450e5be

Browse files
authored
Fix validation message to say ControllerRing (#445)
1 parent 6258ed9 commit 450e5be

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

config/crds/sharding.timebertt.dev_controllerrings.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ spec:
238238
type: object
239239
type: object
240240
x-kubernetes-validations:
241-
- message: ClusterRing name must not be longer than 63 characters
241+
- message: ControllerRing name must not be longer than 63 characters
242242
rule: size(self.metadata.name) <= 63
243243
served: true
244244
storage: true

pkg/apis/sharding/v1alpha1/types_controllerring.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import (
2828
//+kubebuilder:printcolumn:name="Available",type=string,JSONPath=`.status.availableShards`
2929
//+kubebuilder:printcolumn:name="Shards",type=string,JSONPath=`.status.shards`
3030
//+kubebuilder:printcolumn:name="Age",type="date",JSONPath=`.metadata.creationTimestamp`
31-
//+kubebuilder:validation:XValidation:rule="size(self.metadata.name) <= 63",message="ClusterRing name must not be longer than 63 characters"
31+
//+kubebuilder:validation:XValidation:rule="size(self.metadata.name) <= 63",message="ControllerRing name must not be longer than 63 characters"
3232

3333
// ControllerRing declares a virtual ring of sharded controller instances. Objects of the specified resources are
3434
// distributed across shards of this ring. Objects in all namespaces are considered unless a namespaceSelector is

0 commit comments

Comments
 (0)