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
fix(api): align deprecated field godoc with OpenShift conventions
Restructure serviceAccount and Name field godoc to start with the
JSON field name (lowercase) per OpenShift API conventions, with
DEPRECATED marker in the body. Suppress optionalfields lint for
deprecated fields where making them pointers would be a breaking
API change.
Co-Authored-By: Claude <noreply@anthropic.com>
ServiceAccountServiceAccountReference`json:"serviceAccount,omitzero"`//nolint:kubeapilinter // deprecated field uses omitzero per OpenShift convention; pointer would be a breaking API change
76
78
77
79
// source is required and selects the installation source of content for this ClusterExtension.
78
80
// Set the sourceType field to perform the selection.
// Deprecated: ServiceAccountReference is no longer used and will be removed in a future release.
381
+
// ServiceAccountReference was previously used to reference a service account for
382
+
// extension management.
383
+
// DEPRECATED: ServiceAccountReference is no longer used and will be removed in a future release.
380
384
typeServiceAccountReferencestruct {
381
-
// Deprecated: name is no longer used, but preserved for compatibility.
382
-
// It was a required, immutable reference to the name of the ServiceAccount used for installation
383
-
// and management of the content for the package specified in the packageName field.
385
+
// name was previously a required, immutable reference to the name of the
386
+
// ServiceAccount used for installation and management of the content for
387
+
// the package specified in the packageName field.
388
+
// DEPRECATED: name is no longer used and will be removed in a future release.
384
389
//
385
390
// The name field follows the DNS subdomain standard as defined in [RFC 1123].
386
391
// It must contain only lowercase alphanumeric characters, hyphens (-) or periods (.),
@@ -403,7 +408,7 @@ type ServiceAccountReference struct {
403
408
// +kubebuilder:validation:XValidation:rule="self == oldSelf || size(self) == 0",message="name is immutable once set, but may be cleared"
404
409
// +kubebuilder:validation:XValidation:rule="size(self) == 0 || self.matches(\"^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$\")",message="name must be a valid DNS1123 subdomain. It must contain only lowercase alphanumeric characters, hyphens (-) or periods (.), start and end with an alphanumeric character, and be no longer than 253 characters"
405
410
// +optional
406
-
Namestring`json:"name"`
411
+
Namestring`json:"name"`//nolint:kubeapilinter // deprecated field; empty string means unset, pointer would be a breaking API change
407
412
}
408
413
409
414
// PreflightConfig holds the configuration for the preflight checks. If used, at least one preflight check must be non-nil.
0 commit comments