You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Flag *Ref/*Refs fields that don't use KubernetesNameRef type
Fields ending in Ref or Refs should use KubernetesNameRef type to reference
ORC objects. This catches cases where the naming convention is correct but
the type is wrong (e.g., SecurityGroupRefs []OpenStackName should be
[]KubernetesNameRef).
CloudCredentialsRef is excluded as it intentionally uses a different type.
// WrongTypeRefsSpec tests that plural Refs fields with wrong type are flagged.
172
+
typeWrongTypeRefsSpecstruct {
173
+
// SecurityGroupRefs with []OpenStackName type is wrong - should use []KubernetesNameRef.
174
+
SecurityGroupRefs []OpenStackName`json:"securityGroupRefs,omitempty"`// want `field WrongTypeRefsSpec.SecurityGroupRefs has Ref suffix but does not use KubernetesNameRef type`
175
+
176
+
// NetworkRefs with []string type is wrong - should use []KubernetesNameRef.
177
+
NetworkRefs []string`json:"networkRefs,omitempty"`// want `field WrongTypeRefsSpec.NetworkRefs has Ref suffix but does not use KubernetesNameRef type`
178
+
179
+
// SubnetRefs is correct - uses []KubernetesNameRef.
0 commit comments