This repository was archived by the owner on Aug 12, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -92,15 +92,15 @@ func (c *PacketCluster) ValidateUpdate(oldRaw runtime.Object) error {
92
92
if len (c .Spec .Facility ) == 0 && len (c .Spec .Metro ) == 0 {
93
93
allErrs = append (allErrs ,
94
94
field .Invalid (field .NewPath ("spec" , "Metro" ),
95
- c .Spec .Metro , "field is required when Facility is not set" ),
95
+ c .Spec .Metro , "Metro is required when Facility is not set" ),
96
96
)
97
97
}
98
98
99
99
// Must have only one of Metro or Facility
100
100
if len (c .Spec .Facility ) > 0 && len (c .Spec .Metro ) > 0 {
101
101
allErrs = append (allErrs ,
102
- field .Invalid (field .NewPath ("spec" , "Metro " ),
103
- c .Spec .Metro , "field and Facility field are mutually exclusive" ),
102
+ field .Invalid (field .NewPath ("spec" , "Facility " ),
103
+ c .Spec .Facility , "Metro and Facility are mutually exclusive" ),
104
104
)
105
105
}
106
106
Original file line number Diff line number Diff line change @@ -63,8 +63,8 @@ func (m *PacketMachine) ValidateUpdate(old runtime.Object) error {
63
63
// Must have only one of Metro or Facility specified
64
64
if len (m .Spec .Facility ) > 0 && len (m .Spec .Metro ) > 0 {
65
65
allErrs = append (allErrs ,
66
- field .Invalid (field .NewPath ("spec" , "Metro " ),
67
- m .Spec .Metro , "field and Facility field are mutually exclusive" ),
66
+ field .Invalid (field .NewPath ("spec" , "Facility " ),
67
+ m .Spec .Facility , "Metro and Facility field are mutually exclusive" ),
68
68
)
69
69
}
70
70
You can’t perform that action at this time.
0 commit comments