@@ -22,7 +22,7 @@ func TestClusterExtensionTypeRegistration(t *testing.T) {
2222 }
2323
2424 for _ , tt := range types {
25- if ! slices .Contains (conditionsets .ConditionTypes , tt ) && ! slices . Contains ( conditionsets . ExtensionConditionTypes , tt ) {
25+ if ! slices .Contains (conditionsets .ConditionTypes , tt ) {
2626 t .Errorf ("append Type%s to conditionsets.ConditionTypes in this package's init function" , tt )
2727 }
2828 }
@@ -32,11 +32,6 @@ func TestClusterExtensionTypeRegistration(t *testing.T) {
3232 t .Errorf ("there must be a Type%[1]s string literal constant for type %[1]q (i.e. 'const Type%[1]s = %[1]q')" , tt )
3333 }
3434 }
35- for _ , tt := range conditionsets .ExtensionConditionTypes {
36- if ! slices .Contains (types , tt ) {
37- t .Errorf ("there must be a Type%[1]s string literal constant for type %[1]q (i.e. 'const Type%[1]s = %[1]q')" , tt )
38- }
39- }
4035}
4136
4237func TestClusterExtensionReasonRegistration (t * testing.T ) {
@@ -46,7 +41,7 @@ func TestClusterExtensionReasonRegistration(t *testing.T) {
4641 }
4742
4843 for _ , r := range reasons {
49- if ! slices .Contains (conditionsets .ConditionReasons , r ) && ! slices . Contains ( conditionsets . ExtensionConditionReasons , r ) {
44+ if ! slices .Contains (conditionsets .ConditionReasons , r ) {
5045 t .Errorf ("append Reason%s to conditionsets.ConditionReasons in this package's init function." , r )
5146 }
5247 }
@@ -55,11 +50,6 @@ func TestClusterExtensionReasonRegistration(t *testing.T) {
5550 t .Errorf ("there must be a Reason%[1]s string literal constant for reason %[1]q (i.e. 'const Reason%[1]s = %[1]q')" , r )
5651 }
5752 }
58- for _ , r := range conditionsets .ExtensionConditionReasons {
59- if ! slices .Contains (reasons , r ) {
60- t .Errorf ("there must be a Reason%[1]s string literal constant for reason %[1]q (i.e. 'const Reason%[1]s = %[1]q')" , r )
61- }
62- }
6353}
6454
6555// parseConstants parses the values of the top-level constants in the current
0 commit comments