Make AuthorizationPolicy spec usable with controller-gen
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 35/100
Línea de trabajo
Lee security/v1beta1/authorization_policy.pb.go, centrándote en la propiedad exportada ActionDetail y su método GetActionDetail existente. Reproduce el fallo con kubebuilder o controller-tools usando una spec de AuthorizationPolicy embebida y determina un enfoque que permita a controller-gen procesarla sin requerir un tipo copiado, teniendo en cuenta la compatibilidad para los consumidores de la propiedad pública.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Describe the feature request
The AuthorizationPolicy spec (security/v1beta1/authorization_policy.pb.go) go type can't be used with controller-tools
If I try to create a CRD with kubebuilder / controller-tools that embeds an AuthorizationPolicy spec as part of my CRD object, I have to create my own copy of the existing type, which adds more work to translate it to an actual AuthorizationPolicy later on.
The reason this fails is that the type has an ActionDetail property which lacks any json tag.
This is because this property is not part of the CRD itself I believe. However, controller-tools at best allows to ignore private properties from a type but not public properties. So it fails to create the CRD object.
One option would be to make ActionDetail private (actionDetail - there is already a GetActionDetail method defined) but this is an interface change that would likely introduce breakages in existing code if they access that property directly
Describe alternatives you've considered
Alternative is to create a "copy" of the type and create methods to get an istio AuthorizationPolicy object out of the clone type
Affected product area (please put an X in all that apply)
[ ] Configuration Infrastructure
[ ] Docs
[ ] Installation
[ ] Networking
[ ] Performance and Scalability
[ ] Policies and Telemetry
[ ] Security
[ ] Test and Release
[ ] User Experience
Additional context
- Lenguaje dominante
- Go
- Estrellas
- 523
- Forks
- 623
- Merge medio
- 5 d 20 h
- PR fusionados (30 d)
- 4
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de istio/api
-
Gateway CRD accepts both credentialName and tlsCertificates in server TLS settingsPosiblemente ocupada @RaphaelFakhri la tomó hace 23 días. Abiertoarea/networking area/user experience
Dificultad 2/5 1-3 horas Aptitud para principiantes 35/100
Los mantenedores suelen responder en 1 día
-
area/user experience kind/docs kind/enhancement
Dificultad 5/5 Más de una semana Aptitud para principiantes 40/100
Los mantenedores suelen responder en 1 día
-
area/networking area/user experience kind/docs kind/enhancement
Dificultad 5/5 Más de una semana Aptitud para principiantes 45/100
Los mantenedores suelen responder en 1 día
-
[release-1.29] change default of statsCompression to trueQuizá libre de nuevo @keithmattix la tomó hace 304 días y no hay ningún pull request abierto. Abierto
Los mantenedores suelen responder en 1 día
-
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
istio/api#3638 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
Issues similares
-
bug raised-by:verifier to:worker
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
medici-finance/assay#7835 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
golang-malawi/qatarina#496 ·
Los mantenedores suelen responder en 2 días
-
hive size:simple
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
janitor: 2026-11-27 hygieneAbiertodocumentation stage:review
Dificultad 1/5 1-3 horas Aptitud para principiantes 70/100
Los mantenedores suelen responder en 1 día
-
Type/Bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
wso2/identity-customer-data-service#430 ·
Los mantenedores suelen responder en 1 día