uint64/int64 fields in Istio CRDs cannot be set via apimachinery
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
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- go
- Área
- api, networking
Línea de trabajo
Comienza con el mensaje ConsistentHashLB en destination_rule.proto y rastrea cómo se representan sus campos int64/uint64 en la CRD generada. Reproduce el problema creando el recurso con Kubernetes client-go e inspecciona el error de validación del servidor de API. Se considera terminado cuando el recurso CRD afectado se puede crear sin el error de validación de tipos indicado.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Bug description
If a CRD defined via protobuf contains a primitive int64/uint64 field, it will be impossible to set using kubernetes client-go. The API server will log a validation error along these lines:
spec.subsets[0].trafficPolicy.loadBalancer.consistentHash.maglev.tableSize: Invalid value: "string": spec.subsets[0].trafficPolicy.loadBalancer.consistentHash.maglev.tableSize in body must be of type integer: "string""
Affected product area (please put an X in all that apply)
[ ] Configuration Infrastructure
[ ] Docs
[ ] Installation
[x] Networking
[ ] Performance and Scalability
[ ] Policies and Telemetry
[ ] Security
[ ] Test and Release
[x] User Experience
Expected behavior
The expected behavior is that the resource will be created without API errors.
I would suggest either of the following solutions:
- Add the cue-gen:DestinationRule:intOrString:xxx option
- Change the uint64 to uint32 in the destination_rule.proto file, specifically in the ConsistentHashLB message:
message ConsistentHashLB {
message RingHash {
// The minimum number of virtual nodes to use for the hash
// ring. Defaults to 1024. Larger ring sizes result in more granular
// load distributions. If the number of hosts in the load balancing
// pool is larger than the ring size, each host will be assigned a
// single virtual node.
uint32 minimum_ring_size = 1;
};
message MagLev {
// The table size for Maglev hashing. This helps in controlling the
// disruption when the backend hosts change.
// Increasing the table size reduces the amount of disruption.
// The table size must be prime number less than 5000011.
// If it is not specified, the default is 65537.
uint32 table_size = 1;
};
...
}
Steps to reproduce the bug
- Define a CRD using protobuf that includes primitive int64 or uint64 fields.(e.g. tableSize field of DestinationRule)
- Attempt to create an instance of this CRD using kubernetes client-go.
- Observe the validation error in the API server logs.
Version (include the output of istioctl version --remote and kubectl version)
- istioctl version --remote: 1.16.1
- kubectl version: v1.25.2
How was Istio installed?
istioctl
Environment where bug was observed (cloud vendor, OS, etc)
MacOS sequoia v15.1.1
Additionally, please consider attaching a cluster state archive by attaching
the dump file to this issue.
- 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