Skip to content

cleanup: move away from proto style getters for kubebuilder type #12227

@npolshakova

Description

@npolshakova

Currently our kube_types in the GatewayParameter types follow this pattern:

func (in *Pod) GetExtraVolumeMounts() []corev1.VolumeMount {
	if in == nil {
		return nil
	}
	return in.ExtraVolumeMounts
}

We should move away from this proto-style getters and have a consistent style for the API.

Context: #12117 (comment)

Metadata

Metadata

Assignees

Labels

kind/cleanupCategorizes issue or PR as related to cleaning up code, process, or technical debt.

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions