Integrate kube-api-linter (KAL) for Kubernetes API type validation in feast-operator

Abierto
#6,062 2 comentarios 2 reacciones 1 asignado Ver en GitHub

Los mantenedores suelen responder en 1 día

@yash2189 ya está trabajando en esto.

Desde el 6/3/2026.

  • #6068 de @fanyadan — cerrado sin fusionar
  • #6070 de @fanyadan — cerrado sin fusionar

Evaluación

Este issue todavía no se ha evaluado.

Descripción

good first issue Operator starter-ticket

The feast-operator defines custom Kubernetes API types (FeatureStore CRD) in infra/feast-operator/api/v1/ and infra/feast-operator/api/v1alpha1/, but currently does not lint these types against the Kubernetes API Conventions. The kube-api-linter (KAL) from kubernetes-sigs can catch common mistakes and enforce best practices for Kubernetes API types automatically.

The feast-operator already uses golangci-lint (configured in infra/feast-operator/.golangci.yml), but none of the enabled linters are specific to Kubernetes API conventions.

KAL checks for issues like:

  • Required/optional field markers
  • Status subresource conventions
  • Condition and phase best practices
  • Proper use of metav1.Condition types
  • JSON tag and marker validation

Integrating KAL would catch API design issues early and reduce the manual review burden for API changes.

Proposed Changes

  • Add kube-api-linter as a golangci-lint module or plugin in the feast-operator.
  • Create a .custom-gcl.yml configuration to build a custom golangci-lint binary with KAL included.
  • Update infra/feast-operator/.golangci.yml to enable and configure kubeapilinter, scoped to the api/ directory.
  • Fix any existing violations surfaced by the linter.
  • Integrate the linter into CI to prevent future regressions.

References
kube-api-linter repository: https://github.com/kubernetes-sigs/kube-api-linter

Lenguaje dominante
Python
Estrellas
7.4k
Forks
1.5k
Merge medio
2 d 6 h
PR fusionados (30 d)
107

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de feast-dev/feast

Todos los issues de feast-dev/feast

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.